Why an upload portal rejects your PDF: we measured it with phone photos (and how to fix each cause)

2026-10-06
9 min read

You photograph a document with your phone, turn it into a PDF, upload it to the portal that asked for it, and get back a red message: "invalid file", "the file exceeds the maximum size", or simply "could not process the document". The message rarely says which rule you broke. In practice almost every rejection comes from one of a short list of causes, and each has a specific fix. The most common one by far is size, so we started there and measured it instead of guessing.

Cause 1: the file is too big, and it is almost always the photos

Most upload forms set a limit of a few megabytes per file, and the form usually states it next to the upload button. A typed document exported from a word processor rarely gets near that limit; a photographed one goes past it immediately. To see by how much, we built a realistic test case: a three-page printed contract, each page photographed at the resolution of a typical 12-megapixel phone camera (3024 × 4032 pixels), with the page lying slightly crooked on a desk, light coming from one side, and the grain a phone sensor adds in ordinary indoor light. Each photo came out at about 3 MB, which is normal for a phone JPEG of that size.

Then we took every route to a PDF that our own tools offer and measured the result in bytes. All of it ran locally in the browser; nothing was uploaded.

  • Photos straight into a PDF (image to PDF, A4, no margin): 9,040,298 bytes, about 8.6 MB, for three pages. The PDF is barely larger than the three photos added together (9,035,848 bytes), because the converter places each JPEG in the page untouched. That is the correct behaviour for quality, and it is exactly why the file is so big.
  • That same PDF through lossless compression ("Basic"): 9,037,649 bytes. A reduction of 0.03 percent. There is no structural waste to remove in a file that is 99.9 percent photograph, and lossless compression does not touch image data by design.
  • Through "Recommended" compression, which renders each page again as a new JPEG: 138,321 bytes, a 98.5 percent reduction. Each page is now a 595 × 841 pixel image, which on an A4 sheet works out at about 72 pixels per inch.
  • Through "Extreme" compression: 27,223 bytes, a 99.7 percent reduction. Each page is now 297 × 420 pixels, about 36 pixels per inch. At that resolution the body text of our contract was no longer readable at all; only the bold heading could still be made out.
  • Through the scan tool instead, cropping each photo to the edges of the sheet, correcting the perspective and applying the black-and-white filter: 2,088,005 bytes, about 2 MB, a 77 percent reduction against the direct conversion. The pages came out at roughly 1,370 × 2,000 pixels, about 168 pixels per inch on A4, and the text was crisp.
  • The scanned version through "Recommended" compression: 208,671 bytes, a 97.7 percent reduction against the direct conversion and comfortably under any limit we know of. Text remained readable on screen at normal zoom, with clearly more contrast than the photo compressed the same way, because the background and the shadows had already been removed.

What the numbers say

Three things stand out. First, "compressing" a photographed document losslessly does nothing, and that is not a fault of the tool: the size is in the pixels, and the only way to make it smaller is to keep fewer of them or encode them more coarsely. Second, the most aggressive setting gets the smallest number but can produce a document nobody can read, which a portal will accept and a human reviewer will reject a week later. Third, and least obvious, the order of operations matters more than the strength of the compression. Cropping away the desk, straightening the page and turning a grey, unevenly lit photo into clean black text on white removes information the reader never needed, and everything after that step has less to carry.

So for a photographed document the sequence that worked best was: scan with crop and the black-and-white filter (or grayscale if the document has stamps, photos or coloured seals that matter), check the size, and only if it is still over the limit run "Recommended" compression on the result. Avoid the extreme setting for anything with ordinary-sized text. Then open the final file and read the smallest print in it at 100 percent zoom: an identity number, a date, a footnote. If you can read those, the reviewer can too.

One caveat about our numbers: they come from generated test photos, so a real photo of a real document will land somewhere different. A page with photos, coloured letterhead or handwriting compresses less than plain text; a page photographed in good light with the sheet filling the frame compresses more. The proportions, though, are the point, and they held for every page we tried.

Cause 2: it is not really a PDF

A file is not a PDF because its name ends in ".pdf". Renaming "photo.jpg" to "photo.pdf" changes the label, not the content, and some upload systems check the first bytes of the file, where a real PDF always begins with the characters "%PDF-". A phone can also produce formats that look like images in the gallery but are not what the portal expects: iPhones save photos as HEIC by default, and a portal that asks for a PDF or a JPEG will not take one. Likewise a Word document attached where a PDF was requested is rejected even though it shows the same text.

The fix is to convert, not rename. Turn images into a PDF with an image-to-PDF or scan tool, export office documents with the application's own "Save as PDF" or with a converter, and if you are unsure what a file really is, open it in a PDF viewer: if it opens as a document with pages, it is a PDF.

Cause 3: the PDF has a password

A portal that processes documents automatically (to check the page count, extract text or stamp a receipt number on it) cannot do any of that if the file needs a password to open. Bank statements, payslips and tax certificates often arrive encrypted, and uploading them as received is a common cause of "could not process the document". Even a file that opens without a password can carry owner restrictions that forbid modification, and a system that tries to add a stamp or a signature page may refuse it.

If the document is yours and you know the password, remove the protection before uploading and keep the protected original for your records. Our guide on what "unlocking" a PDF actually does explains the two kinds of password and why removing a known one is a different operation from breaking an unknown one.

Cause 4: the portal wants PDF/A

Courts, registries and universities sometimes require PDF/A, the archival variant of the format, and their portals run a validator on every upload. An ordinary PDF exported with default settings usually fails it for predictable reasons: fonts not embedded, colour defined without a profile, no metadata declaring the PDF/A level. If the rejection mentions PDF/A, ISO 19005 or "archive format", the fix is to export from the original document with the PDF/A option switched on, not to compress or rename the file. Our guide on what PDF/A is goes through the requirements and how to check a file for free.

Cause 5: wrong number of files, pages or orientation

Many forms have one upload field per requirement: "identity document, both sides, in a single file". Uploading the front and the back as two separate PDFs fails that requirement even though both files are fine. Others limit the number of pages, or expect the pages in a specific order. And a page photographed sideways may be rejected by a reviewer even if the system accepts it.

  • Several files where one is expected: merge them into one PDF, in the order the form lists them.
  • Too many pages, or pages that should not be there: remove the extra pages or extract only the ones requested.
  • Pages in the wrong order: reorder them before uploading, not after a reviewer complains.
  • A page lying on its side: rotate it. Rotation in a PDF is a flag on the page, so it costs nothing in quality.

Cause 6: the file name

This one sounds trivial and still causes rejections. Some older upload systems handle accented letters, "ñ", spaces, symbols or very long names badly: the upload fails, or the file arrives with a garbled name that a reviewer cannot match to your application. A name like "Cédula de ciudadanía (frente y reverso) FINAL v2.pdf" is asking for trouble. A short name with plain letters, numbers, hyphens or underscores, such as "id_document_john_smith.pdf", avoids the problem entirely and also tells the reviewer what the file is.

A checklist before you press upload

  1. Read the form: the maximum size, the accepted formats, whether it asks for one file or several, and whether it mentions PDF/A.
  2. If the document is a photo, scan it with crop and the black-and-white or grayscale filter instead of converting the raw photo.
  3. Check the size. If it is over the limit, use moderate compression, never the most aggressive setting for text.
  4. Open the final file and read the smallest text in it at 100 percent zoom.
  5. Make sure it opens without a password.
  6. Combine, reorder or rotate pages so the file matches what the form asks for.
  7. Give it a short name without accents, spaces or symbols.

A note on where you process these documents

The documents people upload to portals are, almost by definition, the sensitive ones: identity cards, contracts, payslips, medical certificates, bank statements. Fixing a size problem by sending the file to yet another online service adds a copy of your identity document to a server you know nothing about, before it even reaches the portal that asked for it. Every measurement in this guide was taken with tools that run entirely in the browser, which is the reason we build them that way: you can shrink, merge or unlock the file on your own device and upload it exactly once, to the place that needs it.

Turn phone photos into a clean, small PDF on your own device.

Open the scanner