|
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
|
|
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!
|
|
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!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Great. Glad to hear that it works for you!
|
|