Powered by OPF
OPF WIKI STATIC ARCHIVE
2,681 pages · 153 spaces · 776 tags · 4,025 history records · 96.2% of the original wiki recovered
Archived copy. This page was recovered from the Internet Archive snapshot of /pages/viewpage.action?pageId=39223341 taken on 2021-02-24. The original wiki at wiki.opf-labs.org is being decommissioned.

Not valid PDF

Added by Johan van der Knijff · last edited by Johan van der Knijff · on Mar 03, 2014

Description

Some software applications produce PDFs that do not conform to the PDF format specification ( PDF 1.7 /ISO 32000-1 or the earlier pre-ISO specifications).

Risks

Assessment

Validation is problematic for PDF, mainly because of the complexity of the format and the lack of reliable tools.

Apache Preflight (part of Apache PDFBox) does not validate against the PDF format specification. However, it does include a Processing error category, which is described as "not necessarily a specific PDF/A validation error but a PDF specification requirement that isn't respected". Also, if Preflight raises an exception this may also indicate a malformed file.

Reference file Description Error Code(s) Details
sample file needed Malformed PDF 8 Processing error – replace with actual error message
sample file needed Malformed PDF 8.1 Mandatory element missing (possibly malformed PDF)
sample file needed Malformed PDF Exception  

References