jesparza / peepdf

Powerful Python tool to analyze PDF documents
http://peepdf.eternal-todo.com
GNU General Public License v3.0
1.31k stars 240 forks source link

"save" operation with modified stream creates broken PDF #40

Open abysas opened 9 years ago

abysas commented 9 years ago

I wanted to replace the stream with content from the file. I performed the following operations:

peePDF creates broken PDF: simple overview reveals that the document has no trailer after xref table and no %%EOF marker, while Adobe Preflight complains with the following errors:

abysas commented 9 years ago

Here is the link to the sample PDF, stream data, the resulted PDF and Preflight report: http://www.filehosting.org/file/details/504975/peepdf_issue_40_files.zip