Home › Blog › Check a PDF before uploading
How to Check PDF Size, Page Count and Dimensions Before Uploading
Every upload form has an invisible rulebook: a megabyte cap, a page limit, a page size it expects, sometimes all three at once. None of them tell you the rules before you fail. A thirty-second pre-flight check on your own file catches almost every rejection before it happens.

What portals actually validate
Across exam forms, bank KYC flows and job portals, the checks cluster into four: total file size (usually 100 KB to 1 MB for forms, higher for attachments), page count (often 1 to 5 for documents that "should be one page"), page dimensions (A4 expected, sometimes enforced in points), and whether the PDF is text-bearing or a pure scan, because some validators run OCR and reject files with no image layer or no text layer at all.
The cruel part is the feedback: most portals say only "invalid file". Knowing which rule you broke is your job, which is why checking before uploading is cheaper than guessing after.
The thirty-second pre-flight
- Open the file in PdfPixel's PDF Stats Analyzer. It runs in your browser and reports size in KB and MB, page count, and each page's dimensions in points and millimetres.
- Read the three numbers against the form's rules: size under the cap with room to spare, pages within the limit, dimensions matching the expected sheet.
- If the form states a DPI or a scan quality, check the image layer too: a 300 DPI scan of one page should sit around 100 to 500 KB, and a one-page file weighing 8 KB is usually a broken scan, not a good one.
When size and rules disagree
Too heavy is the common failure and the easiest: compress with a tool that keeps the text layer, because re-scanning a scan is where quality goes to die. PdfPixel's Compress PDF targets exact sizes, which matters when the cap is 200 KB and your scan is 2.1 MB.
Too many pages is usually a scanning habit: four sides of one document scanned as four pages when the form expects two double-sided, or a cover sheet nobody asked for. Remove or merge before uploading, not after rejection.
Wrong dimensions is the silent one, covered in our page sizes guide: the file looks fine on screen and fails in validation because the page box is Letter in an A4 pipeline.
Scanned versus native: why weight differs 100x
A native PDF (exported from Word or a bank statement generator) is text and vectors: one page can weigh 20 KB. A scanned PDF is photographs of paper: the same page weighs 300 KB to 2 MB depending on DPI and colour. When a form caps at 100 KB and you have a scan, you must choose: greyscale and lower DPI, or crop the margins, because both attack the pixels that make up the weight.
Check the three numbers before the form checks them for you.
A checklist you can keep
- Size: under the stated cap, with 10 percent headroom for re-saves.
- Pages: within the limit, no blank stragglers at the end.
- Dimensions: every page the expected sheet, not just the first.
- Layer: text selectable if the form expects digital text; image present if it expects a scan.
- Name: some validators reject filenames with spaces or symbols, boring but true.
Frequently asked questions
Does checking a PDF upload it anywhere?
Not with an in-browser analyzer. The file is parsed in your device's memory and never transmitted, which is the whole point of client-side tools for document hygiene.
My file is under the cap but still rejected, why?
Usually page count or dimensions, occasionally the filename. Re-run the pre-flight and read all three numbers, not just size.
Is a smaller file always better?
No. Under-compressed scans fail OCR and look muddy in review. Aim inside the stated band, not as far below it as possible.
We build and test free, in-browser PDF and image tools. Every guide is written from hands-on testing with real files, and updated whenever browsers or formats change.
PDF Stats Analyzer toolAll articles →Do it now, in your browser
Nothing is uploaded. The file is processed on your device and never leaves it.
Open PDF Stats Analyzer →