{"inline_business":{"pdf-merge-split-tool":{"announce_added":"Pages added: {{n}}","announce_left":"Pages left: {{n}}","announce_moved":"Page moved to position {{n}}","announce_removed":"Page {{n}} deleted","announce_rotated":"Page {{n}} rotated: {{deg}}°","announce_undone":"Last change undone","building":"Building the PDF…","choose_files":"Add PDFs or images","clear_all":"Remove all","delete_btn":"Delete these pages","download_pdf":"Download PDF","dpi_label":"PNG resolution","dpi_option":"{{dpi}} dpi","drop_hint":"PDF (up to {{pdf}}), JPEG or PNG (up to {{img}}). Pages are added at the end.","drop_title":"Drop your PDFs or photos here","empty":"No pages yet. Add one or more PDFs, or photos to gather into a single PDF.","err_encrypted":"\"{{name}}\" is password-protected or encrypted, so it cannot be edited here.","err_heic":"\"{{name}}\": HEIC is not supported, convert the photo to JPEG first.","err_invalid":"\"{{name}}\" could not be read: the file is damaged or invalid.","err_memory":"Not enough memory: remove some pages or lower the resolution, then try again.","err_too_large":"\"{{name}}\" is larger than {{max}}.","err_unsupported":"\"{{name}}\": unsupported format (PDF, JPEG or PNG).","image_size_a4":"A4, image fitted","image_size_image":"Image size","image_size_label":"Pages for photos","keep_btn":"Keep only these pages","loading":"Reading \"{{name}}\"…","margin_label":"1 cm margins","move_down_aria":"Move page {{n}} later","move_up_aria":"Move page {{n}} earlier","output_hint":"The PDF follows the order and rotation shown, and text stays selectable. Range numbers are the thumbnail numbers.","page_label":"{{name}}, p. {{page}}","pages_count":"Pages: {{n}}","png_all":"All pages as PNG","png_capped":"Resolution reduced by the tool on at least one page ({{mp}} megapixels maximum).","png_hint":"One image per page. Your browser may ask permission to download several files.","png_one_aria":"Download page {{n}} as PNG","png_progress":"Image {{done}} of {{total}}…","privacy":"Your files stay in your browser: nothing is uploaded to a server.","range_err_empty":"Enter page numbers, for example 1-3, 7.","range_err_out_of_range":"Number out of range: the list has {{n}} pages.","range_err_syntax":"Format not recognized: write numbers and ranges separated by commas, for example 1-3, 7.","range_hint":"Thumbnail numbers: \"1-3, 7\"; \"5-\" runs to the end.","range_label":"Pages to keep or delete","range_placeholder":"1-3, 7","remove_aria":"Delete page {{n}}","rotate_left_aria":"Rotate page {{n}} left","rotate_right_aria":"Rotate page {{n}} right","thumb_alt":"Preview of page {{n}}","thumb_wait":"Preview…","undo":"Undo"}},"docs_business":{"tools":{"pdf-merge-split-tool":{"content":{"title":"How to merge, split and rotate a PDF in your browser","intro":"To merge PDFs, the tool copies their pages into a new document in the order shown, using the pdf-lib library, so text stays selectable because pages are not turned into images. To split a PDF, enter a range such as \"1-3, 7\", then keep or delete those pages. Your files stay in your browser and nothing is uploaded.","details":"

Method

Each PDF you add is read by PDF.js, which draws one thumbnail per page. On export, pdf-lib loads each source file once and copies all the pages it needs in a single copyPages call, so shared fonts and images are not duplicated. A PDF page rotation is a multiple of 90° and it is absolute: the tool adds your rotation to the one the page already had, so a page saved at 90° and turned right once comes out at 180°. A JPEG or PNG photo becomes an A4 page, landscape if it is wider than tall, centred with a 1 cm margin, or a page the size of the image (1 pixel per point). A JPEG whose EXIF orientation is not 1 is first redrawn the right way up.

Example

On a 10-page PDF, the range \"1-3, 7\" with \"Keep only these pages\" leaves 4 pages (1, 2, 3 and 7); \"Delete these pages\" leaves the other 6. An A4 page measures 595.28 × 841.89 points, which is 210 × 297 mm at 72 points per inch. Exported as PNG at 300 dpi it gives 2,480 × 3,508 pixels (8.7 megapixels); at 150 dpi, 1,240 × 1,754 pixels.

Limits

Sources and dates: pdf-lib (MIT licence), copying pages and JPEG/PNG images; pdf-lib, PDFPage.setRotation and getRotation; pdf-lib, PageSizes (A4); Mozilla PDF.js (Apache 2.0 licence) (checked on 28/11/2026).

"},"faqs":[{"question":"How do I merge several PDFs into one?","answer":"Add the files in the order you want: their pages are placed one after another. Reorder them with the arrows on each thumbnail, then click \"Download PDF\". pdf-lib copies the pages as they are, so text stays selectable."},{"question":"How do I extract certain pages from a PDF?","answer":"Type the numbers in the range field, for example \"1-3, 7\", then click \"Keep only these pages\": a 10-page PDF keeps 4 pages. \"Delete these pages\" does the opposite and leaves the other 6. \"Undo\" takes you back if you make a mistake."},{"question":"How do I turn JPG photos into one PDF?","answer":"Add the JPEG or PNG photos: each becomes an A4 page (landscape if the photo is wider than tall), centred with a 1 cm margin, or a page at its exact size. A photo taken sideways is turned upright from its EXIF orientation. iPhone HEIC files are not read, so convert them to JPEG first."},{"question":"How do I convert a PDF page to a PNG image?","answer":"Click the image icon on a thumbnail for that page alone, or \"All pages as PNG\". At 150 dpi an A4 page gives 1,240 × 1,754 pixels; at 300 dpi, 2,480 × 3,508 pixels. The tool caps each image at 40 megapixels."}]}}}}