openhtmltopdf icon indicating copy to clipboard operation
openhtmltopdf copied to clipboard

Why i can't verify conformance succesfully

Open PanithanK opened this issue 3 years ago • 5 comments

Hi guys code

  1. I use this code to genernate pdf.
  2. I open pdf file with Adobe Acrobat Pro DC.
  3. I click on Verifify Conformance and the result is failed.
  4. 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. result xmp Can anyone explain what's going and how i gonna fix it. Thank you

PanithanK avatar Jul 09 '21 07:07 PanithanK

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"/>

danfickle avatar Jul 12 '21 06:07 danfickle

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 Capture3 Capture1 Capture2

PanithanK avatar Jul 15 '21 08:07 PanithanK

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 avatar Jul 17 '21 05:07 danfickle

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

xmp

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

PanithanK avatar Sep 09 '21 09:09 PanithanK

I'm not sure about this one. Anyone else got any ideas? Acrobat Pro is not very helpful here.

danfickle avatar Sep 10 '21 11:09 danfickle