Compress a PDF for ANEF: fit under the size limit
ANEF imposes size limits for PDF uploads. Method to compress without losing readability, with or without OCR, for free.
One of the most frequent blockers at deposit time on ANEF: your civil-status or address PDF weighs 18 MB, the portal accepts much less, and every brutal compression attempt blurs the text or makes stamps unreadable. This guide explains where the weight of a poorly-optimized PDF comes from, how to compress smartly without degrading, and in which order to act if you combine OCR and compression — a point that often inverts the result when handled wrong.
The context applies to all three procedures covered by the same 2026 reform: multi-year residence permit (CSP), long-term resident card (CR), naturalization. All three go through ANEF, all impose size constraints, and all demand the same PDF categories. See our comparison of CSP, CR and naturalization differences if you are unsure of your procedure.
Why your PDF weighs 18 MB (instead of 4)
A heavy PDF is almost always a question of excessive image resolution or inadequate image format. Vectorized text pages (a digital civil-status document, a digital criminal record) weigh 50-200 KB per page, so even 30 pages of text fit under 6 MB. When the total explodes, the scans are the cause.
Three typical culprits:
- Scans at 600 DPI instead of 200 or 300 DPI. Doubling resolution multiplies weight by 4, with no readability gain once printed. For screen, 150 DPI is enough; for an administrative deposit, 200-300 DPI is the optimum.
- Unrecompressed phone photos. A recent iPhone produces 12-megapixel JPEGs at 3-5 MB. A 4-page ID PDF with raw photos weighs 20 MB for no good reason. Smart PNG or JPG recompression brings it down to 200-400 KB per page.
- Color everywhere. A color 300 DPI scanned payslip can weigh 4 MB; the same in grayscale weighs 800 KB, with zero useful information loss.
The full anatomy of a heavy PDF is well dissected in this guide on the causes of bloated PDFs, with concrete cases of files dropping from 32 MB to 4 MB through smart compression — exactly what you need for ANEF.
Compress cleanly: 3 levers in the right order
Effective compression is not a magic button. Three levers stack, each with distinct effect and risk. Activate them in order, verify after each step.
Lever 1 — Reduce the resolution of embedded images
The most powerful lever. A 600 DPI scanned image dropped to 200 DPI loses 89% of its weight while remaining perfectly readable on screen. Concretely, you ask your compression tool to "downsample images above 200 DPI to 200 DPI". Default option in most serious tools.
If your documents were digitized with a 600 DPI scanner or shot in very high definition, this single lever brings most dossiers under the ANEF limit.
Lever 2 — Choose the right internal image formats
PDFs embed images as JPEG, PNG, or JBIG2. For your administrative justifications:
- JPEG quality 80 for pages with color photos, stamps, or signatures.
- PNG for pure black-and-white text pages, because JPEG creates halos around characters.
- JBIG2 for strictly bitonal pages (black text on white background), if the tool offers it: it is the most efficient format, up to 10× lighter than JPEG on text.
This logic inverts for source images you convert yourself. From a phone photo, exporting to PDF directly from the Photos app can produce a heavy PDF. The right reflex is to go through a controlled image-to-PDF conversion, which lets you choose compression at the source.
Lever 3 — Strip the surplus
Many PDFs carry invisible but accounted content: multiple layers (Acrobat editing), hidden comments, fully embedded fonts, preview thumbnails. An "optimize for web" or "linearize" option removes those parasites and gains 10-30% additional weight.
At this stage, the PDF that weighed 18 MB should weigh 3-5 MB, well under the ANEF limit.
The OCR / compression order trap
If your foreign documents need OCR for searchability (useful for translated civil-status documents, see our complete guide to sworn translation and OCR), the order in which you apply OCR and compression changes everything.
Correct order: high-quality scan → OCR → compression. OCR adds an invisible text layer over the scanned image, making the PDF searchable without touching the visual image. Once OCR is laid down, you can freely compress the images without losing the text layer.
Incorrect order: scan → compression → OCR. Compression degrades the image resolution, which then degrades OCR precision. The OCR engine needs 300 DPI minimum to reach 99% precision, as detailed in this PDF OCR technical guide. Compressing first makes OCR shaky, with text full of errors.
Practical rule: if you know you want a searchable PDF, scan at 300 DPI minimum, run OCR, then compress with a "screen" target at 150-200 DPI. You get both functional search and reasonable weight.
ANEF-side compression: what to know
The ANEF portal itself sometimes applies compression on receipt. This does not exempt you from compressing upstream: upload is rejected before that step if the size exceeds the limit. Server-side compression only applies at storage, not acceptance.
Another important point: ANEF generally accepts PDF/A for long-term archiving (10 years for naturalization). If you want to signal that your dossier is designed for long-term archiving, exporting to PDF/A is a good practice but not mandatory. Standard PDF is enough.
To position your dossier in the global procedure, start from the 2026 naturalization steps guide, and for the upstream merge phase, see our guide to merging justifications into a single PDF.
Quick-reference matrix: what DPI for what use
This table condenses the typical trade-offs. Keep it open while configuring export or compression — it avoids 90% of setting errors.
| Final use | Target DPI | Internal image format | Estimated weight per page |
|---|---|---|---|
| Screen reading only | 150 DPI | JPEG quality 80 | 80-150 KB |
| ANEF deposit (balance readability/weight) | 200 DPI | JPEG quality 85 or PNG | 150-300 KB |
| Administrative or pro printing | 300 DPI | JPEG quality 90 | 300-500 KB |
| Long-term PDF/A archiving | 300 DPI | JBIG2 (if bitonal) | 200-400 KB |
| Avoid for ANEF | 600 DPI | Uncompressed TIFF | 1-3 MB |
The "ANEF deposit" line is the equilibrium point most candidates should target. It accepts 200% zoom without visible degradation (zoom test), stays readable on the screen of a prefecture officer, and leaves you 5-10× margin under the typical ANEF limit.
Verifications before upload
Once the PDF is compressed, do not submit immediately: verify. Three quick tests in two minutes, to do systematically before upload.
Test 1 — The 200% zoom. Open the PDF, zoom to 200% on the ID card, passport number, payslips. Every digit must remain unambiguous. A 0 and an O confused, that is over-aggressive compression: bring DPI back to 250 and redo.
Test 2 — The full-text search. If the PDF contains OCR, hit Ctrl+F on "naissance" or "salary" — a word you know is present. If nothing comes up, OCR was lost during compression: you compressed before OCR instead of the reverse. Redo in the right order.
Test 3 — Mobile open. Email the PDF to yourself and open on your phone. If opening takes more than 5 seconds or the app crashes, the PDF is still too heavy or poorly mobile-optimized. The case officer will sometimes open your dossier on a tablet — better that it flow smoothly.
Once these three tests pass, you can deposit serenely.
Special case: compressing an already-merged dossier
If you merged all your documents into one big PDF before realizing the size exceeded, do not redo everything. Compressing a merged PDF works as well as on a source PDF. Apply the 3 levers above on the final file, and the result equals piece-by-piece compression.
The single limit: if some pieces are over-compressed (blurry text) and others under-compressed (heavy color images), global compression smooths everything to the same level, which can worsen already-compressed pieces' readability. In that case, restart from the uncompressed version, act piece by piece, then merge.
FAQ
What is the exact ANEF size limit?
It varies by procedure and portal evolution. Count on a few megabytes per file (often 5 MB, sometimes 10 MB depending on category) and a total quota per dossier. The upload page shows the exact limit at deposit time. Systematically aim below half the displayed limit to keep margin if you must add a piece later.
Does compression degrade the legal value of the document?
No. Well-done compression preserves all textual information. Stamps, signatures, handwritten notes stay readable. The legal value of a PDF lies in the presence of the information, not in the DPI used. The case officer will never refuse a compressed PDF for that reason; they will refuse an unreadable PDF, which is different.
Can I use a free tool for compression?
Yes, and you should even avoid paid tools for this need. Serious free tools (notably those that process locally in your browser via WebAssembly) do the work as well as paid software, without sending your personal data to a third-party server. Two criteria to verify: no watermark on the result, no account required.
Should I compress even if the PDF fits under the limit?
Yes, by hygiene. A light PDF opens faster on the case officer's side, takes less storage, and passes better through any relays (mail attachments, prefectoral advisor). A 1.8 MB well-optimized dossier will be handled better than a 4.9 MB one that just fits under the limit.
What if ANEF refuses my PDF despite compression?
Check three things before panicking. First, the format: ANEF accepts PDF, sometimes JPG, sometimes PDF/A — verify the instruction for the specific piece. Second, the file name: no accent, no space, no special character (a name like civil-status-2026.pdf works everywhere, État Civil (2026).pdf may block). Third, the browser: ANEF works better on recent Chrome or Firefox than on old Safari or Edge. If everything is OK and the rejection persists, it may be a temporary portal outage: retry 30 minutes later.
Prepare the civic exam alongside your dossier
Your PDF weighs 4 MB, the 200% zoom test passes, OCR works, mobile open is smooth: you can deposit on ANEF in serenity. The dossier needs the civic exam attestation. To pass with margin, register for free for a timed practice exam, or activate the 1-month Sprint Pass at €14.90 for the 1,000+ questions, native FR audio, and spaced repetition that make the difference on D-day.
Start today:
- Free instant trial — 5 lessons per topic to measure your initial score, no credit card
- 1-month preparation plan if your prefecture interview is approaching
- Pass €14.90 / €24.90 / €39.90 depending on your timeline, one-shot payment, 14 days to change your mind
- Free practice exam in real conditions at the official 40-question / 45-minute format
Over 80% of Cocorico users pass on first attempt. Naturalization should not fail on a quiz: prepare it as it deserves.
Official sources
- service-public.fr — Naturalization application
- ANEF — Digital portal for foreign nationals
- ISO 19005 — Specification of the PDF/A format for long-term archiving
- French Civil Code, articles 21-14 to 21-27 (naturalization conditions)
Read next
Official civic exam PDF: download, extract, print
Download, extract and print the official civic exam PDF. Method to revise on tablet or print a 2-up booklet for the 2026 French citizenship test.
Free French Citizenship Practice Test in Real Exam Conditions
Take a free French citizenship practice test in the official 2026 format: 40 questions, 45 minutes, 80 % pass mark. Instant score breakdown and readiness estimate.
ANEF naturalization dossier: merge your justifications into one PDF
Build your ANEF dossier as one clean PDF: order, merge, size, security. Practical method for the 2026 French naturalization.