Download 2 MB PDF file for testing
Open the single page and check document-upload behavior. The preset is 2 MiB (2,097,152 bytes); choose MB for decimal megabytes.
1 MB = 1,000,000 B · 1 MiB = 1,048,576 B
Advanced: test an upload limit
Enter the byte limit above, then choose one byte below, the exact limit or one byte above. Each choice uses the same base: 2,097,152 B. Generate and download each file to test your endpoint.
What to test with this PDF fixture
- Open the PDF and check its one-page count, then compare saved bytes with your endpoint’s cap. Decimal 2 MB means 2,000,000 bytes.
- Testing a WordPress or Laravel site on stock php.ini values before you change hosting settings.
- Reproducing "The uploaded file exceeds the upload_max_filesize directive" so support can see the real message.
- Benchmarking document previews where a 2 MB attachment is a realistic office scan.
Limits it lands on
- PHP: upload_max_filesize defaults to 2M. A file of exactly this size is the largest a default PHP setup accepts, so it is the ideal boundary case.
- Django: FILE_UPLOAD_MAX_MEMORY_SIZE is 2.5 MB by default, so this PDF is still handled in memory rather than spooled to a temporary file.
What is inside the file
Under the hood it is the same one-page A4 document as every PDF here, but the padding stream is 2,096,432 bytes long.
No images or fonts are embedded beyond the base Helvetica reference, which keeps the parse cheap even at this size.
Questions
Will WordPress accept this file?
On an unmodified PHP configuration it is right at the 2M upload limit. If your host raised upload_max_filesize, it will pass; if they lowered it, this file shows the error immediately.
Can I print it?
Yes, it prints as one mostly empty A4 page.
Does 2 MB on this page mean 2000000 bytes?
This legacy URL selects 2 MiB: 2,097,152 bytes. A decimal 2 MB cap is 2,000,000 bytes. Select decimal MB or enter exact bytes on the PDF format page.
Reference and checks
Format reference: PDF 32000-1.
Preset target: 2 MiB (2,097,152 bytes). Verify the downloaded file's byte count.
Generate another size in this format · Technical notes for every format · Guide to testing file upload limits · Data processing and privacy
Related tools: Merge PDF · Compress PDF.
Noticed an issue with this test file? Report an issue →
