India's GST portal enforces strict file size caps. Most upload fields accept PDFs up to 5 MB. Tally-exported invoices, CA-certified audit reports, and scanned ledgers routinely exceed these caps.
Browser-based PDF compression solves this without sending your files to any server.
Why File Size Matters for GST Filers
Rule 36 of the CGST Rules requires taxpayers to retain GST records for at least 72 months (6 years). That is a long time to accumulate PDFs. A single month's consolidated invoice PDF from a mid-size retailer can reach 8–12 MB. Multiply that across annual returns, credit notes, and audit trails, and storage costs climb fast.
Consider Priya, a Bengaluru CA filing monthly returns for 60 clients. Each client generates at least one invoice bundle per return cycle. Uncompressed, her archive grows by hundreds of megabytes every quarter. Compression at even 20–30% meaningfully reduces that burden.
GST portal upload limit: The GSTN portal typically restricts supporting document uploads to 1–5 MB per file. Exceeding this limit causes upload failures, not warnings.
Government portals, university application systems, and insurance claim portals share this constraint. Compression keeps your files compliant with portal rules without altering any content.
How PDF Compression Works
Re-serialisation: pdf-lib reads every object in a PDF (pages, fonts, images, metadata) and writes them back to a fresh binary stream. The output has a clean object tree and a regenerated cross-reference table.
A PDF file is not a single block of data. Each edit appends new object versions and marks old ones as deleted, without physically removing them. The cross-reference table grows with every save. Incremental updates add content to the end of the file rather than rewriting it.
pdf-lib resolves all references and discards obsolete versions. A fresh binary output is written with a single compact cross-reference table. The result is a smaller, cleaner file. Content stays identical.
PDFs exported from word processors, ERP systems, or older PDF generators often contain redundant objects from repeated saves. Re-serialisation removes these. Text-heavy PDFs, such as those exported from Tally Prime or Zoho Books, benefit most. Reduction ranges from 10% to 40% for such files.
What PDF Compression Cannot Do
pdf-lib does not re-encode images. A PDF dominated by embedded JPEG or PNG scans will not shrink much. Image data is untouched, so image quality is fully preserved.
For heavy size reduction on scanned documents or photo books, a tool that re-encodes images at lower quality is more appropriate.
PDFs already optimised by Adobe Acrobat's Reduce File Size command will show minimal improvement. The same cleanup has already been done. Password-protected PDFs cannot be processed without the password. The tool returns an error for encrypted files.
Compressing a GST Invoice PDF: Step by Step
Follow the steps below to get a portal-ready file:
- Open the PDF compressor tool on ToolDekho.
- Upload your invoice PDF using the file picker.
- The tool displays the original size and the compressed size side by side.
- If the compressed size meets the portal limit, click Download.
- Upload the compressed file to the GST portal or email it to your auditor.
No account is needed. No file leaves your browser.
PDF Compressor
Reduce PDF file size in your browser using pdf-lib re-serialisation, with size comparison and download.
Because no data is sent to a server, confidential GST documents, PAN-linked invoices, and auditor reports stay private. The FileReader API loads the PDF into browser memory. pdf-lib processes it entirely client-side.
Storage Best Practices for GST Archives
A business filing monthly returns generates roughly 72 invoice PDFs per year at minimum. At 2 MB average per file, that is 144 MB annually. Compression at 30% saves around 43 MB per year per entity. Across a CA firm managing 200 clients, savings become significant.
Here is a quick reference for common archive scenarios:
| Scenario | Typical Original Size | Expected Reduction |
|---|---|---|
| Tally Prime invoice export | 3–8 MB | 15–35% |
| Scanned ledger (image-heavy) | 10–25 MB | Under 5% |
| Zoho Books monthly bundle | 2–6 MB | 10–30% |
| Already Acrobat-optimised PDF | 1–3 MB | Under 5% |
Compressing archived invoices before storing them on Google Drive or an office NAS reduces long-term storage costs. Even modest per-file savings compound over a 72-month retention window.
For more on working with PDFs in your workflow, see our guides on merging PDF files and converting PDFs for portal submissions. You can also explore the full PDF tools category on ToolDekho.