Welcome Guest Search | Active Topics | Sign In | Register

How to set PDF/A when using ASPXToPDF Options
S-H
Posted: Friday, November 23, 2018 4:52:58 AM
Rank: Newbie
Groups: Member

Joined: 3/2/2017
Posts: 8
I am using ASPXToPDF which functions great.

However, now I need to be able to generate PDF/A. I find examples on how to specify that if using e.g. HtmlToPdf.ConvertUrl but not if using ASPXToPDF.

Thanks beforehand
Sven
eo_support
Posted: Friday, November 23, 2018 12:08:06 PM
Rank: Administration
Groups: Administration

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

You should be able to handle the ASPXToPDF's AfterRender event, then do something like this:

Code: C#
//Get the conversion result
EO.Pdf.HtmlToPdfResult result = (EO.Pdf.HtmlToPdfResult)ASPXToPDF1.Result;

//Set the result document's Standard to PDF/A
result.PdfDocument.Standard = EO.Pdf.PdfStandard.PDF_A;


Please let us know if this works for you.

Thanks!
S-H
Posted: Sunday, November 25, 2018 11:43:16 AM
Rank: Newbie
Groups: Member

Joined: 3/2/2017
Posts: 8

When first I saw your tip I thought that that might be too late in the process, I had looked for earlier stuff in your documentation.

But it worked fine, thanks!
eo_support
Posted: Monday, November 26, 2018 10:54:10 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Great. Glad to hear that it works for you!


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.