Skip to content

A PDF file with a corrupted header

100% Free No signup Instant download Browser-only 5 languages
Free download(10 KB)

broken-pdf-header.pdf

File info

File Format PDF
File Size 10 KB(10,240 bytes)
MIME Type application/pdf
MD5 3fa0c7a24dafc19a719148903af55854
SHA-1 69152ff8ef37ae6638940f502ce16d30fe916b8d
SHA-256 2130fae55ad8450a1434fb60856e30bc2b13c722f882368bec4107964ef6b1a9

Download via command line

curl
curl -O https://devlab.itlibra.com/files/broken/pdf/broken-pdf-header.pdf
wget
wget https://devlab.itlibra.com/files/broken/pdf/broken-pdf-header.pdf
PowerShell
Invoke-WebRequest -Uri "https://devlab.itlibra.com/files/broken/pdf/broken-pdf-header.pdf" -OutFile "broken-pdf-header.pdf"

About this file

A deliberately corrupted file, for verifying that your error handling and validation actually work.

In production you will genuinely receive files cut off mid-transfer, files partially lost to storage faults, and files whose extension is simply a lie. The question that matters is not only whether you detect the damage, but whether the application behaves safely once it has.

What to verify

  • Validation detects the corruption and surfaces it as a handled error rather than an uncaught exception
  • The message shown to the user does not leak an internal stack trace
  • Temporary files and database rows are not left half-written when processing fails midway
  • The log retains enough to diagnose the cause — file name, size, and what kind of anomaly was detected

FAQ

Is this file free to use?
Yes — fully free and no signup required. Use it for any commercial or non-commercial test/verification purpose.
What is inside the file?
Dummy data generated for testing — sized to match the listed size exactly.
What are the hash values for?
Verify integrity after download or use them as test data for hashing libraries.