openhtmltopdf
openhtmltopdf copied to clipboard
Why i can't verify conformance succesfully
Hi guys
- I use this code to genernate pdf.
- I open pdf file with Adobe Acrobat Pro DC.
- I click on Verifify Conformance and the result is failed.
- I click on Open Preflight and let them analyze my file.
There are 2 error display and the problem is i don't understand them anyway.
Can anyone explain what's going and how i gonna fix it. Thank you
Hi @PanithanK,
Could you confirm you have title, subject, author, description and lang in your document as demonstrated by the following sample?
<html lang="EN-US">
<head>
<title>All-in-one PDF/UA Testcase</title>
<meta name="subject" content="PDF/UA all-in-one"/>
<meta name="author" content="openhtmltopdf.com team"/>
<meta name="description" content="An example containing everything for easy testing"/>
Hi @PanithanK,
Could you confirm you have title, subject, author, description and lang in your document as demonstrated by the following sample?
<html lang="EN-US"> <head> <title>All-in-one PDF/UA Testcase</title> <meta name="subject" content="PDF/UA all-in-one"/> <meta name="author" content="openhtmltopdf.com team"/> <meta name="description" content="An example containing everything for easy testing"/>
Hi @danfickle thank you for your feedback
I add your code above and generate pdf again. but I still can't verify comformance
It seems to be saying there is a problem with the XMP metadata. However, I have tested with PDFBOX preflight validator, VeraPDF validator and this online XMP validator and they all pass.
Could you perhaps try to validate with that online validator and see what is says?
P.S. I have noticed that if you have a PDF document open in Acrobat, the file will not be updated by FileOutputStream
and will fail silently. Could you try closing Acrobat, regenerating the document and then opening Acrobat again to validate to make sure you are using the code you think you are? Thanks for persisting.
It seems to be saying there is a problem with the XMP metadata. However, I have tested with PDFBOX preflight validator, VeraPDF validator and this online XMP validator and they all pass.
Could you perhaps try to validate with that online validator and see what is says?
P.S. I have noticed that if you have a PDF document open in Acrobat, the file will not be updated by
FileOutputStream
and will fail silently. Could you try closing Acrobat, regenerating the document and then opening Acrobat again to validate to make sure you are using the code you think you are? Thanks for persisting.
@danfickle I'm so sorry for feed you back lately. I have try validate PDF with your online validator and the result is fine
I have try closing closing Acrobat and did all as you suggest, but i can't verify conformance in adobe Adobe Acrobat Pro DC anyway. Thank you
I'm not sure about this one. Anyone else got any ideas? Acrobat Pro is not very helpful here.