|
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)
|
|
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!
|
|
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
|
|
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!
|
|
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)
|
|
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!
|
|
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!
|
|
Rank: Newbie Groups: Member
Joined: 12/1/2011 Posts: 6
|
Thanks! it works very good now!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Great. Thank you very much for the update!
|
|