A PDF can fail to reach a target size when the file is dominated by text, vector artwork, or unsupported images rather than embedded JPG images.

Targeting a size also creates a tradeoff: a file may satisfy the byte limit by recompressing eligible JPG images, but passing the size check does not mean the document is visually identical or losslessly optimized. A reliable workflow must distinguish a verified size result from a quality guarantee.

With Compress PDF to Size, a download appears only when an actual saved candidate is at or below the requested target. That prevents an estimated result from being presented as a finished file, but safe JPG recompression can still involve a visible quality tradeoff.

what can go wrong when i compress pdf to size
What Can Go Wrong When You Compress a PDF to Size?

What can make the target unreachable

Compression can fail for three separate reasons: the PDF has little eligible image data, the requested ceiling is lower than the bounded settings can achieve, or the document falls outside the local processing limits.

  • There is not enough eligible JPG content to reduce. The method changes only embedded JPG streams that can be safely replaced: unmasked DCTDecode DeviceRGB or DeviceGray images with no decode parameters. Unsupported image objects are preserved rather than converted or discarded.
  • The target requires more reduction than the available profiles can provide. The tool tries a fixed sequence of browser JPEG quality and maximum-dimension settings. It does not keep searching indefinitely. If every resulting PDF remains over the target, no download is offered.
  • The source exceeds a supported limit. The local job handles one PDF, and the source file cannot exceed 25 MB. The decoded-image workload is also capped, so a large collection of eligible images can exceed the job boundary even when the PDF itself is within the file-size limit.

The entered value is a ceiling, not a requirement to produce an identically sized file. An actual saved PDF below the target is still a valid result because the download gate is “at or below” the requested number. Conversely, lowering the target makes the requirement harder to satisfy rather than forcing the tool to continue reducing the file.

What different PDF contents mean

The composition of the source determines how much room the target-aware process has to work with. Some content can be recompressed, while other content remains untouched because changing it could damage document structure or require whole-page rasterization.

PDF content What the target-aware method can change Likely outcome
JPG-heavy PDF Eligible embedded JPG images can be recompressed. This is the best-suited type for the method, although image quality still needs review.
Scanned PDF Scans stored as eligible JPG images may be reduced. A scanned document may reach a much lower target, but fine scan detail may become harder to distinguish.
Text-only PDF There is usually no eligible JPG payload for this method to reduce. It may not reach the requested size, so no download appears if the saved result is still too large.
Vector-heavy PDF Vector artwork remains untouched. An aggressive target may be unreachable without changing the document structure.
Unsupported-image-heavy PDF Unsupported image objects are preserved. The PDF may remain above the target because its largest objects cannot be changed by this workflow.

Even within an eligible image, the tool leaves the original stream untouched when the newly encoded JPG would be larger. This prevents an attempted “compression” from increasing that object. The result can therefore have less room for improvement than the number of images initially suggests.

Eligible JPG recompression can reduce visual detail, so it is not a general lossless PDF optimization method. The tool does not rasterize entire pages: page structure, selectable text, links, forms, vectors, and unsupported objects remain untouched. That protects document structure, but it does not guarantee that photographs or scans will look exactly as they did before recompression.

Compress a PDF to a target size

Use the following workflow for a local, target-aware result:

  1. Choose one local PDF. Confirm that the source is no larger than 25 MB, and keep an original copy for comparison.
  2. Enter the target size. The value must be from 0.1 MB through 25 MB and must be smaller than the source file. Treat it as the maximum size you will accept.
  3. Select “Compress to target size.” The browser tries the fixed, bounded sequence of JPG quality and maximum-dimension profiles. It does not continue indefinitely after those profiles are exhausted.
  4. Wait for verification. The tool compares the bytes of each real saved PDF with the target. A passing candidate is reopened with PDF.js and checked against the original page count. If the result remains too large, no download link appears.
  5. Download and review the verified PDF. Open it alongside the original and inspect every page, with particular attention to photographs, scanned pages, and fine visual details. A missing download is a safety signal that the target could not be reached safely, not proof that the source file was damaged.

Limits that can stop the job

Check the source, target, and image workload before starting because all of the relevant limits apply to the same local job.

Condition Verified rule Practical consequence
Source file One local PDF, up to 25 MB A larger source is outside this workflow.
Target value 0.1–25 MB and smaller than the source An out-of-range or non-smaller value does not define a valid target for this tool.
Eligible image count Up to 80 eligible images A larger eligible-image workload is beyond the local job limit.
Decoded image workload Up to 100 megapixels across decoded images The job does not process an unlimited collection of high-resolution images.
Processing location PDF reading, JPG encoding, measurement, and verification remain in the browser The source file is not uploaded to a server.
Download rule Actual saved bytes must be at or below the target, and page count must match No file is exposed when the target cannot be reached safely.

Check the result before relying on it

The automated verification answers two separate questions: whether the saved PDF meets the requested size and whether its page count matches the original. It does not judge whether every pixel still looks correct. Matching page counts cannot detect changed detail inside an eligible JPG image.

  • Compare all pages. Open the downloaded PDF in a viewer and check that the expected pages, graphics, stamps, and background elements are present.
  • Inspect recompressed images closely. Zoom into photographs, scans, fine lines, and small marks. Recompression can make subtle detail less distinct even though the file passed the size test.
  • Check document functions. Select text and review any links or forms that matter. These objects remain untouched by the target-aware JPG workflow.
  • Confirm the saved file size. Check the downloaded file’s properties and compare its size with the target you entered. The tool verifies the actual saved bytes rather than estimating from the source.
  • Retain the original. Keep the source file intact so you can compare it with the compressed copy or return to it if visual fidelity is unacceptable.

When to change the document instead

Sometimes no safe, single PDF at the requested size is the right deliverable. If the tool produces no download, consider the requirement rather than assuming that repeated attempts will eventually work.

  • Ask for a higher file-size allowance when document fidelity cannot be reduced.
  • Reduce the source content by removing pages, reducing the number of embedded images, or obtaining a version created with lighter assets.
  • Submit separate documents only when the recipient accepts multiple files. Splitting changes the delivery structure and does not create one smaller PDF.
  • Keep the original when the size target is met but the visible result is not acceptable.

The tool deliberately avoids whole-page rasterization as a shortcut, so it will not solve every oversized-document problem while retaining text, links, and forms. For a broader assessment before repeating the operation, review how to decide whether to compress a PDF to a size.

The safest interpretation is straightforward: a verified download proves that the actual PDF meets the requested ceiling and retains the expected page count. It does not prove that the compression was lossless. Set a realistic target, preserve the original, and review the pages that matter before relying on the result.

If you're weighing options, PDF Size Splitting Compared: Targets, Pages, and Privacy covers this in detail.