30 captures
10 Jan 2015 - 31 Dec 2019
About this capture
Ensuring long-term access: PDF validation with JHOVE?
by Yvonne Friese, ZBW - Leibniz Information Centre for Economics
PDF Association | December 17, 2014
JHOVE is an open source tool for identifying, characterizing and validating common formats such as pdf, tiff, jpeg, aiff and wave.  JHOVE includes validation modules for twelve different file formats, including PDF.
The PDF format is widely used by memory institutions and is one of the most commonly used long term archiving formats. However, because of the wide variety of potential source formats, conversion tools and PDF readers in use, a large percentage of PDF files fail to actually meet the PDF standard.
Naturally, many memory institutions use JHOVE’s PDF module on a daily basis for digital long term archiving. I wish to discuss the extent to which JHOVE’s PDF validation tools can be used for risk management and quality assurance when seeking to assure long term access to documents. Here, a “valid PDF” means that the PDF meets all criteria of the specification – that it is correct, in other words. “Invalid”, on the other hand, means that the file fails to meet at least one point of the specification and is therefore incorrect.
Incorrectly classified as invalid: Page Tree
During the OPF (Open Preservation Foundation)’s PDF Hackathon in Hamburg, together with the ZBW (the German National Library of Economics) and Goportis (the Leibniz Library Network for Research Information), the PDF Association’s Olaf Drummer reported an error message from JHOVE which incorrectly identifies a breach of the PDF specification.
Pages within a PDF file are usually stored as a page tree, allowing the user to reach a given page as quickly as possible. This is often represented as a balanced page tree. Although the PDF standard references this option, it does not by any means prescribe it.
Pages can alternatively be stored as a simple array of pages, while still meeting the PDF standard. The only drawback is that this makes it less efficient to access a given page (making for slower navigation through the document), particularly when dealing with a PDF containing a particularly large number of pages. JHOVE, however, reports an error if pages are stored in a field (array) instead of a page tree. As this is not an error and does not present a risk to long-term archiving, the message can be ignored.
A digression: PDF/A validation with JHOVE?
Common advice for long-term archiving is to preferentially use the PDF/A format. However, this no longer matches to the day-to-day reality of many workflows which use JHOVE for validation tests.
JHOVE’s PDF module is certainly capable of validating PDF/A files. According to JHOVE’s developer, however, this feature was implemented late, is unstable, and does not work well.  Additionally, the process does not analyze the content of the data streams, meaning that it cannot validate PDF/A compliance in line with ISO standards.
The PDF/A format differs from the standard PDF format in that it explicitly forbids or requires certain options considered essential for long-term archiving. A PDF/A-1b file forbids the following:
A PDF/A file also requires the following:
Additionally, PDF/A-1 is based on PDF 1.4. All functions introduced from PDF 1.5 onwards, including JPEG2000 compression and layering, are lost when converting to PDF/A-1 format. PDF/A-2, in contrast, is based on PDF 1.7.
The Isartor Test Suite provided by the PDF Association consists of 204 invalid PDF/A files, only one of which was recognized by JHOVE as invalid. JHOVE failed to identify 51 of these as PDF/A files at all. As a result, JHOVE only checked to see whether these files met the PDF 1.4 standard.
These tests are more than sufficient to prove that JHOVE is not suited to PDF/A validation. Since JHOVE is a component in several out-of-the-box long term archiving solutions, however, it is still interesting to know what JHOVE does deliver in terms of PDF/A, to allow well informed decision making.
JHOVE’s PDF module checks to see whether a file is a PDF/A, in which case it uses the PDF/A profile subcategory.  In this case, JHOVE tests whether a file identified as a PDF/A contains:
If so, the file is identified as invalid. JHOVE also checks whether the file contains:
If not, then the PDF/A file will again be recognized as invalid.
A quick test of 670 invalid PDF/A files as identified by PDF Box shows that JHOVE identifies only five files as not well formed (4) or invalid (1). These are all breaches of the standard PDF specification, however: in these cases, JHOVE failed to identify the PDF/A files correctly and therefore only tested their validity as standard PDFs.
Modern conversion tools make it difficult to integrate components into a PDF/A file which JHOVE’s PDF module would test and identify as errors. In fact, I am not aware of any currently available PDF/A conversion tool which would even permit it. For example, the protection applied to encrypted PDF files means that either they cannot be converted to PDF/A at all, or the encryption is identified and removed by the tool during the conversion process. The same applies for other components which are forbidden in PDF/A and checked by JHOVE.
JHOVE’s PDF/A validation tools are therefore so rudimentary that I am unsure if any PDF/A files at all would break its rules and be detected by JHOVE as invalid.
JHOVE is not suited to PDF/A validation. I know of no alternative to JHOVE for validating standard PDFs. As many memory institutions primarily use the PDF format and the quality of their files is not always enough of an argument for converting them to PDF/A, I believe that a standard PDF validator remains as necessary as it always has been. In general, JHOVE will continue to be used, despite its limitations, and decisions regarding the archivability of a given file will be dependent on the results JHOVE gives.
JHOVE can still be useful, provided users understand its error reports and are aware of ways to resolve them. So far there is not a great deal of documentation on this issue. Both nestor (AG Format Recognition) and the Open Preservation Foundation aim to do their part to improve this situation soon.
Some JHOVE errors, such as “Invallid PDF trailer”, have proven to be a very useful part of day to day work. PDF files which trigger this error can usually not be opened. This is because the file has not been fully up- or downloaded, resulting in an incomplete file. The ability to automatically recognize such serious errors and report them to the data provider for correction is very useful when working with large archives. Other errors  affecting a PDF’s structure can also be identified using JHOVE and easily fixed.
Even before taking into account the meaning and the effects of a JHOVE error report – to say nothing of the resolution options – JHOVE remains an excellent option for providing initial guidance. Since JHOVE developer Gary McGath himself warns against using JHOVE as the final word on the matter, we will continue to avoid making our decisions and workflows dependent on JHOVE alone.
Ensuring long-term access: PDF validation with JHOVE?
About PDF Association
Founded in 2006 as the PDF/A Competence Center, the PDF Association exists to promote the adoption and implementation of International Standards for PDF technology.
More about PDF Association »
Tags: JHOVE, Validation
« PDF Day: The ROI
Who will be first to support reading tagged PDF on mobile devices? »
Leave a Reply
You must be logged in to post a comment.
3rd International PDF/A Conference4th PDF/A Conference2012 PDF Technical Conference​accessibility​accessible​accessible PDFAIIM archive​Archiving​assistive technology​barrierefrei Color​compression​conversion​convert digital signature DMSDMS Expodocument conversion ECMencryption ISO Standard long-term archiving​metadata OCROutput Management​PDF PDF/A-3​PDF/UA PDF/VTPDF Day PDF viewer​print​Proceedings​scan Section 508security TIFF Universal Accessibility validateVariable data printing VDPWCAG 2.0 XMLXMP
LuraDocument PDF SDK
LuraTech Europe GmbH
software development kit
dmstools Add-In for Lotus Notes
dmstools AG
Saves any Notes document and/or attachment as a PDF, PDF/A or TIFF file.
3-Heights™ PDF Printer
PDF Tools AG
About the PDF AssociationCompetence CentersNews & EventsChaptersMembers
 English  Deutsch
Members’ NewsProductsDownloadsVideosDiscussion ForumsLogin
What will PDF 2.0 bring?PDF Technical Conference 2015: ProgramPDF Days Europe 2015 established as Europe’s leading PDF standards eventPDF is an (invisible) 800 pound gorilla in the room