How can I test a PDF document if it is PDF/A compliant? [closed]
Asked Answered
R

5

67

We write a software that create PDF files. How we can check if the resulting pdf files are PDF/A compatible? Are there any test suite for it available?

Rabin answered 20/2, 2009 at 10:58 Comment(5)
Some context for people unfamiliar with PDF/A: en.wikipedia.org/wiki/PDF/ANanceynanchang
Related: #465039Substantiate
access-for-all.ch/en/pdf-lab/pdf-accessibility-checker-pac/… is a tool that validates lots of aspects and explains why things have failed.Anglo
"Moved" to softwarerecs.stackexchange.com/questions/18161/…Texas
verapdf.org is in the process of creating one.Unideaed
B
45

A list of PDF/A validators is on the pdfa.org web site here:

verapdf

A free online PDF/A validator is available here:

http://www.validatepdfa.com/

A report on the accuracy of many of these PDF/A validators is available from PDFLib:

https://www.pdflib.com/fileadmin/pdflib/pdf/pdfa/2009-05-04-Bavaria-report-on-PDFA-validation-accuracy.pdf

Se as well:

https://www.pdflib.com/knowledge-base/pdfa/

Brookes answered 2/3, 2010 at 21:55 Comment(3)
This one is open source github.com/gba-awl/padafDonor
Now known as PDFBox Preflight pdfbox.apache.org/downloads.html#recentDygall
Unfortunately the link at pdf.org is not available any more. At verapdf.org you will probably find the most "official" online tool for PDF validation. It is quite new and afaik in Beta. Until this changes I also stick with the preflight-validation of Adobe AcrobatDiphtheria
S
21

The 3-Heights™ PDF Validator Online Tool provides good feedback for different PDF/A conformance levels and versions.

  • PDF/A1-a
  • PDF/A2-a
  • PDF/A2-b
  • PDF/A1-b
  • PDF/A2-u
Shepherd answered 28/1, 2013 at 2:29 Comment(6)
pdf-tools.com/pdf/pdf-validateur-pdfa-valider-iso.aspxNortheasterly
Very nice. This gives me a list of "violations" of PDF/A for my file, such as The value of the key Parent is 271 0 R but must be 208 0 R. But I have no idea how to "fix" these. I tried saving in the free adobe acrobat but it doesn't help.Lavelle
Here is something that just worked for me on my mac laptop: I opened my (ordinary) PDF file in the mac "Preview" software. I "printed" it as a .ps file. I then re-opened the .ps file in Preview and saved as PDF. It now passes the pdf/a compliance.Lavelle
Thanks @Michael, that was helpful! For those on Linux, I tried something similar which also worked: I opened the file on evince, and printed it to a PDF file. The resulting file passed PDF/A validation! Note that simply doing "File > Save as" was not sufficient; I had to use the Print menu for this to work.Toreador
The link seems dead unfortunately...Disloyal
@Disloyal Unfortunately the product is no longer available for free and requires a 30-day trial license. I will try to find another link that is similarly useful. Unfortunately I haven't been able to find one yet.Shepherd
S
9

pdf validation with OPEN validator:

DROID (Digital Record Object Identification) https://github.com/digital-preservation/droid/

JHOVE - JSTOR/Harvard Object Validation Environment https://jhove.openpreservation.org/

Sneak answered 9/7, 2012 at 8:51 Comment(5)
DROID doesn't validate, it only identifies. JHOVE does validate PDFs, but not PDF/A.Limitative
Jhove does validate PDF/A. Check there site: link....Carrack
Ibn Saeed: citing from the linked doc: Note that the PDF module does not parse the contents on streams, so it cannot determine conformance to PDF/A to the degree required by the ISO standard.Delastre
@Delastre «That is not possible, since parts of the PDF/A rules are not machine-checkable AFAIK (like "metadata matches data" -- jhove is unable to understand the semantics of your document).» konradvoelkel.com/2013/03/scan-to-pdfa/#comment-2705Texas
Jhove's PDF/A module is quite buggy. Its output is nearly meaningless.Amp
S
6

Do you have Adobe PDFL or Acrobat Professional? You can use preflight operation if you do.

Sheen answered 20/2, 2009 at 11:11 Comment(0)
G
-6

If you download the latest version of Adobe Acrobat Reader, it will tell you if your pdf is PDF/A compliant. Just open the PDF file and a big blue marking should appear.

OpenOffice supports PDF/A. For some reason "PDF/A-1" is called

"SelectPdfVersion"
internally in OpenOffice. Just add 1 to that value and your output should be PDF/A.

The different values can be

0 = PDFXNONE
1 = PDFX1A2001
2 = PDFX32002
3 = PDFA1A
4 = PDFA1B

You set

FilterData
to be a
HashMap('SelectPdfVersion',1) //1 for PDFX1A2001
Gaius answered 17/3, 2010 at 11:46 Comment(3)
This is wrong. The Reader show only if the PDF/A signature is available. Not if it is a valid PDF/A file.Rabin
@Rabin can you site your sources for this? How do you know this? I have used a few API's that generate PDF/A and non PDF/A compliant files. When I produce a PDF/A file, Adobe Reader 10 will launch with an informational bar at top:O "The file you have opened complies with the PDF/A standard and has been opened read-only to prevent modification". Can you share what you know about this?LBohlen
We have write a software that generate PDF and PDF/A files (see my original posting). That I know that also not PDF/A compliance files was show as PDF/A file in Adobe Reader. We need only write the PDF/A signature.Rabin

© 2022 - 2024 — McMap. All rights reserved.