Welcome Guest Search | Active Topics | Sign In | Register

HTML to PDF/A Options
joriswit
Posted: Thursday, December 1, 2011 4:39:31 AM
Rank: Newbie
Groups: Member

Joined: 12/1/2011
Posts: 6
Does the ConvertHtml method support PDF/A?

I tried converting HTML to PDF/A using the following code, but the resulting PDF file was not PDF/A-1b according to Adobe Acrobat.

Code: Visual Basic.NET
Dim pdfDoc As New PdfDocument
pdfDoc.Standard = PdfStandard.PDF_A

HtmlToPdf.ConvertHtml(htmlText, pdfDoc)
pdfDoc.Save(stream)
eo_support
Posted: Thursday, December 1, 2011 8:14:55 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

ConvertHtml does support PDF/A and your code looks correct. If you still have problem, please try to post the HTML you are trying to convert and we will be happy to take a look.

Thanks!
joriswit
Posted: Thursday, December 1, 2011 10:51:43 AM
Rank: Newbie
Groups: Member

Joined: 12/1/2011
Posts: 6
It does not seem to be related to the HTML; this code also produces an invalid file:

Code: C#
PdfDocument pdfDoc = new PdfDocument();
pdfDoc.Standard = PdfStandard.PDF_A;

HtmlToPdf.ConvertHtml("<html><body><p>Test</p></body></html>", pdfDoc);
pdfDoc.Save("eopdf.pdf");


I verify the file using Adobe Acrobat Preflight, this is the output:

Code:

Preflight Summary Report for: eopdf.pdf
Profile: Verify compliance with PDF/A-1b (Processed pages 1 to 1)

Error
CIDset in subset font missing (2 matches on 1 page)
Device process color used but no PDF/A OutputIntent (2 matches on 1 page)
Type 2 CID font: CIDToGIDMap invalid or missing (2 matches on 1 page)

Document information
File name: "eopdf.pdf"
PDF version number: "1.4"
File size (KB): 48.0
Trapping: "Unknown"
Number of plates: 4
Names of plates: "(Cyan) (Magenta) (Yellow) (Black) "

Environment
Preflight, 9.2.0 (065)
Acrobat version: 9.34
eo_support
Posted: Thursday, December 1, 2011 4:47:26 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have posted a new build that should resolve this issue. Please see your private message for the download location.

Thanks!
joriswit
Posted: Friday, December 2, 2011 3:04:25 AM
Rank: Newbie
Groups: Member

Joined: 12/1/2011
Posts: 6
I have tried the new version, but out of the three messages, one is still left.

Code:

CIDset in subset font missing (2 matches on 1 page)
eo_support
Posted: Friday, December 2, 2011 8:55:53 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Thanks for the update. Our Preflight seems to be older than yours and does not produce this message. We will look into it again and get back to you as soon as possible.

Thanks!
eo_support
Posted: Monday, December 5, 2011 10:52:18 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have posted a new build that should address this issue. Please see your private message for the download location.

Thanks!
joriswit
Posted: Tuesday, December 6, 2011 4:23:24 AM
Rank: Newbie
Groups: Member

Joined: 12/1/2011
Posts: 6
Thanks! it works very good now!
eo_support
Posted: Tuesday, December 6, 2011 7:07:07 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Thank you very much for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.