In short
- Every real PDF starts with the characters %PDF- and a version number. If the reader does not find them at the very beginning, it says the header is missing.
- Most of the time the file is not a PDF at all, or it was cut short during a download or an email. Get the file again, or ask the sender for it, and the error usually goes away.
- Open a PDF on EditFlip to see if it reads
You double-click a file called invoice.pdf and get an error: header not found, not a PDF, failed to load, file is damaged. The wording changes from one program to the next, but the meaning is the same. The reader opened the file, read the first bytes, and they were not the ones a PDF begins with.
That tells you something useful. The name of a file is only a label, and a label can be wrong. This guide shows what is really inside such a file, the five usual reasons, a quick check that needs nothing installed, and the ways to get a working copy. It also says where EditFlip can help and where it cannot, because a file that is truly empty or cut off cannot be rebuilt by anyone.
On EditFlip, step by step
- Step 1
Look at the size first
Before you try anything on EditFlip, check the file on your device. A size of 0 KB, or a few KB for a document that should be pages long, means the download or the attachment failed. In that case skip to the next section of this guide and get the file again, because there is nothing inside to open.
- Step 2
Choose the file on editflip.com
If the size looks believable, go to editflip.com and press Choose files, or drop the file on the page. The site reads it on your device, so nothing is sent anywhere. If it is a PDF that can be read, the Options panel opens with the file in it.
- Step 3
Press Preview
Preview shows the pages. If you see them, the file is fine and the error came from the program you used before. Press Edit, then Done, or use Compress, and download the result. It is a fresh PDF written from the pages that were read, which some readers accept when they refuse the first copy.
- Step 4
If the site cannot read it either
Then the file is not a usable PDF, whatever its name says. Rename a copy to .docx or .jpg only if you know where the file came from, and try the site again with that type. Otherwise ask for the file again or download it again, using a different way of sending.
What the header actually is
A PDF is not plain text, but it begins with a line that is. The first bytes read %PDF- followed by a version number such as 1.4 or 1.7. A reader looks for that mark before anything else. It is how a program tells a PDF from a spreadsheet or a photo without trusting the file name.
The word header here has nothing to do with the page header, the line of text at the top of each printed page. It is a signature at the start of the file, invisible to you in normal use. When it is missing or buried under other bytes, the reader stops straight away.
Some readers are forgiving and accept a little junk in front of the mark. Others are strict. That is why a file can open in your browser and fail in a different program on the same computer.
Reason one: it was never a PDF
The most common cause is a file that only has .pdf in its name. A web page that says access denied, or that you have to log in, can be saved by a download button as invoice.pdf. Inside is HTML, not a PDF. The same happens when a website hands out an error page instead of the document.
Another case is a photo or a Word file renamed by hand or by a badly made program. Someone changes photo.jpg to photo.pdf, and it still is a JPG. A zip file renamed in the same way starts with the two letters PK.
You can check this without installing anything. Make a copy of the file and rename the copy to .txt. Open it in Notepad or TextEdit. A real PDF shows %PDF- in the first line, followed by unreadable symbols. A saved web page shows words like html or doctype. Never change the original file, work on the copy.
Reason two: a download or an email that did not finish
A download that is interrupted leaves a file that has the right name and only part of the data. A weak connection, a phone that went to sleep, a browser that was closed too early, all of these do it. The file can be much smaller than it should be, or exactly empty.
Email can cut things too. Some mail services and security programs block or strip attachments, and a few replace them with a small note file that keeps the name. If the size of the file you received is very different from what the sender sees on their side, this is the likely cause.
The fix is always the same: get the file again. Download it a second time on a stable connection, ask the sender to send it again, or ask them to share it as a link. If it came by WhatsApp or a similar chat, ask for it to be sent as a document, since photos and documents are handled differently.
Reason three: the file is protected, damaged or synced halfway
Some files are real PDFs that are damaged. A disk error, a USB stick pulled out too early or a crash while saving can break the middle or the end of a file. If the header is still there, the reader may say something else, like the file is damaged. If the damage is at the start, you get the header message.
Cloud folders on a computer sometimes show a placeholder for a file that is not fully on the disk yet. Opening the placeholder in a program that does not wait for the download can give odd errors. Let the folder finish syncing, or open the file from the cloud service in your browser.
A PDF protected with a password is a different thing. It still starts with the right mark, and the reader asks for the password. On EditFlip you can type the password once and get a copy without it. It cannot guess a password you do not know.
Ways to get a working copy
Work from the easiest to the hardest. First, open the file in a second program, for example your browser and then your usual reader. A file that opens in one of them is fine, and you can save a clean copy from there with Print and Save as PDF, or by using EditFlip.
Second, get the file again from the source. For a document from a website, log in in the same browser first, then use the real download link. For an invoice from a shop or a bank, open the message in a browser and download from there, not from a phone preview.
Third, if you have the program that made the document, such as Word, open the original and export it again. A new export is better than any repair. Fourth, if you know the file is a photo or a Word file with a wrong name, give it back its real ending and open it as that. A converter on EditFlip can then turn it into a PDF properly.
What not to do
Do not keep clicking Retry. If the first bytes are wrong, the tenth try will fail in the same way. Do not trust a program that offers to repair the file for money before you have tried to download it again. Most cases are a failed download.
Do not open a file you did not expect, only because it says PDF in its name. A file that pretends to be a PDF but is something else can be a warning sign. If you got it from someone you do not know, delete it. If it came from a bank or a shop, ask them through a way you already trust.
Do not edit the file in a text editor and save it. A PDF keeps a table of positions of its parts, and a single changed byte can break it for good. Looking is safe, saving is not.
On a phone and on a computer
On a phone the cause is nearly always the way the file arrived. Mail apps and chat apps show a preview, and the real file may not have been downloaded yet. Open the attachment fully, save it to the device, and try again from the saved copy. If you open it on a computer, a second download often works where the phone failed.
On a computer, check the size and the ending in the folder window. Show file extensions if you cannot see .pdf at the end of the name. Windows and Mac both have a setting for this. Once you see the true ending, odd cases like invoice.pdf.html become clear.
EditFlip works the same on both. It runs in the browser on your own device, files stay with you, and it takes PDFs, Word, Excel, PowerPoint and photos. That helps when the real problem was a wrong file type.
Choose the file, press Preview, and you will know in a few seconds whether it is a PDF that can be read. If it is, save a fresh copy with Edit and Done. If it is not, you know the next step is a new download, and you did not upload the file anywhere to learn that.
Open a PDF on EditFlip and see if it reads →Questions
What does PDF header not found mean?
The program did not find the characters %PDF- at the start of the file. It means the file is not a PDF, is cut short, or is damaged at the very beginning.
Can I repair a PDF that says header not found?
Only sometimes. If the file was cut off during a download, nothing can bring back the missing part, so get it again. If it is a different file type with a wrong name, give it the right ending. If you have the original document, export it again.
Why does the file open in my browser but not in my PDF reader?
Readers differ in how strict they are. One may accept a little extra data before the header and another may not. Open it in the browser and save a clean copy from there.
Why is my PDF 0 KB?
The download or the save failed and left an empty file with the right name. Download it again, or ask the sender to send it again.
Is a file with PDF header not found dangerous?
Not by itself. Most are failed downloads or web pages saved with the wrong name. But if you did not expect the file, or you do not know the sender, do not open it.
How can I check what is inside a file that ends in .pdf?
Copy it, rename the copy to .txt and open it in a text editor. A real PDF begins with %PDF-. If you see html or doctype, it is a web page. If you see PK, it is a zip or a Word file.
Does EditFlip upload my file when I try to open it?
No. Files are read on your own device, in the browser.
