Back to Blog
Guidespdfcompressionoptimization

The Complete Guide to Working with PDFs: Edit, Optimize, and Organize

How to merge, split, annotate, compress, and reorganize PDFs with free browser-based tools, and what each operation does to your file. No software to install.

LoopalooPublished February 8, 202614 min read

PDF has become the universal document format, but working with PDFs well doesn't require expensive desktop software. Modern browser-based tools built on JavaScript and WebAssembly can handle most PDF tasks directly on your device, with nothing to upload and no subscription to pay for. This guide covers the everyday jobs, from merging and splitting to compression and optimization, along with what's going on inside the file while you do them.

Why Browser-Based PDF Tools?

For years, PDF editing meant buying Adobe Acrobat or a similar desktop application. That has changed. JavaScript and WebAssembly can now run serious document processing entirely inside your browser, and that brings real advantages.

There's no software to install or update, so the tools work the same way on Windows, Mac, Linux, and Chromebooks. Because the processing happens locally, your files never leave your device, which matters for legal documents, medical records, financial statements, or anything else sensitive. And with no upload step or server queue, even large documents start processing right away.

The tradeoff is simple. Browser-based tools cover the bulk of what most people need to do with PDFs, while specialized desktop software is still better for advanced work like OCR with custom dictionaries, complex form creation, or batch processing thousands of files.

Understanding PDF Structure

To optimize and edit PDFs effectively, it helps to know what's inside them. A PDF is essentially a collection of objects (page definitions, content streams, fonts, images, and metadata) bundled together with a cross-reference table that indexes everything.

Objects and Streams

Every element in a PDF is an object. Page objects define dimensions and reference content streams, which contain the actual drawing instructions (text placement, line drawing, image positioning). Fonts and images are stored as separate resource objects that pages point to, so a font used on every page can be stored once and shared rather than duplicated.

This architecture explains why some PDFs are surprisingly large: if the authoring software doesn't properly share resources, you can end up with duplicate copies of fonts and images throughout the file.

How Compression Works in PDFs

PDFs support multiple compression methods, each suited to different content types:

MethodBest ForCompression Ratio
JPEGPhotographsHigh (lossy)
JPEG2000High-quality imagesVery high
CCITT Group 4Black & white scansExcellent
Flate (ZIP)Text, vector graphicsModerate
LZWGeneral purposeModerate

A single PDF can use different compression methods for different objects: photographs compressed with JPEG while text and vector graphics use Flate. Because each object is compressed on its own terms, good optimization treats each kind of content differently.

Merging PDFs: Combining Documents

Combining several PDFs into a single file is one of the most common document tasks. Assembling a report from several contributors, packaging application materials (resume, cover letter, references), and archiving related documents together all get easier when there's one file to share and store.

Best Practices for Merging

A clean merge depends mostly on preparation. Before combining documents, make sure every source file is final, because merging drafts creates confusion when you later need to update one section. Check that page orientations are consistent across documents, and confirm that no password protection blocks the merge.

Arrange the documents in a logical reading order before you start. For long combined documents, consider whether a table of contents or bookmarks would help readers find their way around. Use consistent page sizes when you can, since mixing Letter and A4 pages in one document makes for an uneven reading experience.

File size is the primary constraint to be aware of. The merged result is roughly the sum of all source file sizes, so combining twenty 500KB documents produces approximately a 10MB file. For merges that produce very large files, apply compression after merging to bring the size back down to a manageable level.

Splitting PDFs: Extracting What You Need

Splitting breaks a large PDF into smaller, more focused pieces. This serves multiple purposes: extracting specific chapters for distribution, removing confidential appendices to create a shareable version, or simply reducing file size to meet email attachment limits.

Splitting Strategies

The right approach depends on what you need from the document.

Single page extraction pulls individual pages for reference or sharing. It's useful for forms, certificates, or specific diagrams that need to be sent separately from the larger document.

Range extraction pulls out a continuous section, such as pages 10 through 25. This works well for chapters or report sections that need to be distributed independently.

Split at intervals divides a document every N pages, creating consistent-sized chunks. This is particularly useful for splitting a long manual into manageable sections for printing, or breaking a large scanned document into smaller files for easier processing.

Custom selection lets you pick non-contiguous pages, such as pages 1, 5, and 12 through 15. This is ideal for creating customized compilations from longer documents, pulling together just the pages relevant to a particular audience.

Page Manipulation: Reordering, Rotating, and Removing

Beyond splitting, you often need to reorganize pages within a document.

Reordering Pages

Page reordering addresses a surprisingly common problem. Scanned documents often arrive with pages in the wrong order, especially when scanning double-sided originals. Presentations may need restructuring after review. Reports compiled from multiple sources may need their sections rearranged.

Visual reordering, where you drag page thumbnails to new positions, is the most intuitive approach. Some tools also support reversing page order (fixing documents scanned back-to-front) and interleaving (combining odd and even pages that were scanned separately on a single-sided scanner).

Rotating Pages

Scanned documents frequently have rotation issues. A page fed sideways through a scanner needs a 90° correction; an upside-down page needs 180°. The trick is to rotate selectively, fixing only the problem pages rather than turning the whole document and knocking the correct pages out of alignment.

Removing Pages

Removing pages gives you a clean version of a document without blank pages, draft pages, or sections that shouldn't go to a particular audience. Always work on a copy rather than the original, because once the pages are removed and the file is saved, they're gone.

PDF Annotation: Adding Notes and Markup

Annotation turns a static PDF into something a team can review together. Unlike editing, which changes the underlying content, annotation adds a layer on top, leaving the original document intact while carrying comments, highlights, and markup.

The Annotation Toolkit

Text annotations include sticky notes for brief comments, text boxes for longer explanations, and callout arrows that point to specific areas of concern. Markup tools let you highlight important passages in yellow, underline key points, or strike through text that should be removed. Drawing tools add freehand sketches, arrows, shapes, and stamps for approval workflows.

Annotation vs. Editing: An Important Distinction

The difference matters for legal and archival purposes. Annotation preserves the original document completely: the underlying text stays unchanged, and annotations can be shown or hidden. Editing actually modifies content, replacing original text with new text. For document review, contracts, and compliance workflows, annotation is almost always the correct approach because it maintains an auditable trail of comments on top of an unaltered original.

Best Practices for Document Review

When using annotations for collaborative review, establish a consistent color scheme: red for errors that must be fixed, yellow for questions or suggestions, green for approvals. Keep comments short and actionable: "Revise this paragraph to include Q3 data" is more useful than "Needs work." Reference specific text or line numbers, and date your annotations when collaborating over multiple review cycles.

Optimizing PDF File Size

A simple 10-page document with a few photos dropped in at full camera resolution can run to tens of megabytes, which means bounced email attachments, slow uploads, and storage that fills up fast. Knowing what makes a PDF large is most of the work of making it smaller.

Why PDFs Get Large

Five factors account for most PDF bloat. High-resolution images are the primary culprit: a single high-resolution photograph can add 5-10MB. Embedded fonts contribute 1-2MB per font family when the full character set is included rather than just the characters actually used. Complex vector graphics with thousands of paths add up quickly. Hidden metadata and attachments accumulate over time, especially in documents that have been through multiple editing cycles. And redundant objects, meaning duplicate copies of resources that should be shared, inflate the file for no benefit.

Image Optimization

Image downsampling delivers the biggest savings in image-heavy PDFs, because most images are embedded at far higher resolution than their intended use requires.

For documents viewed only on screen, 72-150 DPI is enough. Standard office printing needs 150-200 DPI. Only high-quality print production needs the full 300 DPI that many images are embedded at. Halving the resolution from 300 DPI to 150 DPI halves both dimensions, so a 4000×3000 pixel image (12 megapixels) becomes 2000×1500 (3 megapixels), a 75% cut in image data.

Recompression further reduces file size by converting images to more efficient formats. Color photographs compress well with JPEG at quality 60-80. Grayscale images benefit from JPEG at quality 70-85. Black and white scanned pages compress remarkably well with CCITT Group 4 encoding, which is lossless and achieves excellent compression ratios on high-contrast content.

Font Subsetting

Font subsetting replaces embedded full font files with subsets containing only the characters actually used in the document. A full font file might be 1.2MB, but if the document only uses 50 unique characters, the subset shrinks to roughly 50KB. The savings are largest for documents using decorative or non-standard fonts, which tend to have the biggest font files.

Removing Unnecessary Elements

PDFs accumulate metadata and objects that inflate file size without adding anything for the reader. Page thumbnails (small preview images of each page) are often embedded but rarely needed, since modern PDF viewers generate their own previews. Comments and form fields from review cycles add weight to finalized documents. Embedded JavaScript, which is rare in typical documents, adds both size and potential security concerns. Even metadata like author information, creation dates, and edit history adds up across hundreds of pages.

Optimization Levels

Different use cases demand different balance points between file size and visual quality:

Screen quality targets the smallest possible file size by downsampling images to 72 DPI and applying aggressive JPEG compression at quality 40-60. This typically reduces file size by 70-90% and is appropriate for email attachments and quick digital sharing where print quality is irrelevant.

eBook quality balances readability and size with 150 DPI images and moderate compression. Files shrink by 50-70% while remaining comfortable to read on tablets and laptops.

Print quality preserves enough detail for office printing with 200-300 DPI images and conservative compression. Expect 30-50% reduction while maintaining quality that looks good on standard laser and inkjet printers.

Prepress quality applies minimal optimization, mostly removing redundant objects and subsetting fonts, to preserve maximum fidelity for professional printing. Reductions of 10-30% are typical.

Working with Scanned PDFs

Scanned documents are a special case because each page is a large image wrapped in a PDF. A full-color scan of a letter-size page at 300 DPI is about 25MB of raw pixel data, so a 50-page document would pass a gigabyte without compression.

Improving Scanned Documents

Beyond file size reduction, several processing steps improve the usability of scanned PDFs. Deskewing straightens pages that were fed through the scanner at a slight angle. Despeckling removes the dots and artifacts that scanners introduce, particularly on aged or low-quality originals. Binarization converts grayscale scans to pure black and white, which dramatically reduces file size for text-only documents while actually improving readability by increasing contrast.

For documents that need to be searchable, OCR (Optical Character Recognition) adds a hidden text layer behind the scanned image. This enables text search, copy-paste, and accessibility features while preserving the visual appearance of the original scanned page.

Resolution Recommendations for Scans

Not all scans need maximum resolution. Text-only documents are perfectly readable at 150 DPI and compress to a fraction of the size of 300 DPI scans. Documents containing photographs or detailed graphics benefit from 200-300 DPI. Only archival scans of historical documents or artwork justify resolutions above 300 DPI.

Security and Permissions

PDFs can carry security settings that control what recipients are allowed to do with them, and it helps to know how they work before you run into one.

Common Restrictions

PDFs can require a password to open (document-level encryption), a separate password to change permissions, or specific restrictions such as no printing, no copying text, or no adding annotations. These restrictions usually exist for good reasons, such as protecting intellectual property, keeping a document intact, or meeting legal requirements.

When you encounter a protected PDF, the correct approach is to check whether you have the password (often provided by the document creator), request an unrestricted version if you need editing capability, or work within the allowed permissions. Most protected documents still permit viewing and printing even when editing is restricted.

PDF/A: Archival Format

PDF/A is an ISO-standardized variant designed for long-term document preservation. It imposes strict requirements: every font must be embedded (a subset is fine as long as it contains every glyph used), JavaScript and multimedia are prohibited, encryption is not allowed, and colors must be device-independent or tied to an embedded output intent (an ICC color profile).

These constraints narrow your optimization options. You can still remove redundant objects, subset fonts, and recompress images, but some changes, such as stripping the embedded color profile or the required XMP metadata, will break compliance. Some versions also restrict compression methods: PDF/A-1 forbids JPEG2000 and LZW. If archival compliance matters, check that your optimized output still validates as PDF/A.

Workflow Best Practices

Organizing Your PDFs

Consistent naming conventions save time over the long run. Include dates for version tracking and use descriptive names: 2024-01-15_Contract_ClientName.pdf is far more useful than Document_Final_v2_FINAL.pdf. Avoid special characters that cause trouble across operating systems, and stick to letters, numbers, hyphens, and underscores.

Maintain a folder structure that separates originals from edited versions. When you compress or modify a PDF, save the result as a new file rather than overwriting the original. This preserves your ability to re-process from the source if your optimization settings were too aggressive or if you need to extract content at full quality later.

Batch Processing Workflows

When working with many PDFs, plan your workflow before starting. List all the operations you need, then process similar documents together; applying the same rotation, compression level, or extraction range to a batch is faster than handling each file individually. Always check results before deleting originals, and use consistent settings across related documents to maintain quality uniformity.

Common Mistakes to Avoid

Over-compression is the most frequent error: making images illegible to save a few kilobytes. Always preview optimized output at the size it will actually be viewed. Ignoring the use case leads to mismatched quality: a document destined for professional printing needs different settings than one being emailed as a reference. Flattening form fields on documents that still need to be filled out, or applying lossy compression to a document that will be further edited, creates irreversible problems. And repeated lossy compression, where an already-compressed PDF goes through another optimization pass, degrades the images further with each generation.

Using Browser-Based PDF Tools

Loopaloo has free PDF tools for the everyday jobs covered here, and they work without uploading your files:

  • PDF Merger: add your files, drag them into order, and join them into one document with a bookmark for each file
  • PDF Splitter: split into single pages, fixed-size batches, or the page ranges you type
  • PDF Page Remover: drop unwanted pages, or keep only the ones you choose
  • PDF Page Reorder: rearrange pages by dragging thumbnails or typing an order
  • PDF Compressor: shrink a file losslessly, or resample its pictures at a resolution and quality you choose

The processing runs in your browser, so your documents never leave your device. That makes the tools a comfortable fit for contracts, medical records, financial documents, and other sensitive material.

Bringing It Together

Day-to-day PDF work comes down to two skill sets: editing operations (merging, splitting, extracting, annotating, and reorganizing pages) and optimization (reducing file size through image compression, font subsetting, and metadata cleanup). Between them, they cover the vast majority of real-world PDF tasks without expensive desktop software.

Match your approach to your use case. Documents for email need aggressive compression; documents for print need quality preservation. Collaborative documents benefit from annotation rather than direct editing. And in all cases, keeping unmodified originals ensures you can always go back to the source.

Related Tools

Related Articles