- P Laceholder
- PowerBuilder
- Tuesday, 2 November 2021 10:59 AM UTC
Hello,
I have some texts, composed dynamically inside of a RTE control.
Now one of the things we need to achieve is exporting the PDF, that later needs to be archived.
While exporting a PDF is as simple as this:
rte_1.SaveAs("file.pdf", PDF!, true)
our necessity is to export it in the specific PDF/A-3a format; I tried changing format options on the RTE editor itself which turned out unsuccessful.
I tried importing the RTE text inside of a Rich Text (DataWindow) DataStore and changing its options in the following way:
dts_1.Object.DataWindow.Export.PDF.NativePDF.UsePrintSpec = 'Yes'
dts_1.Object.DataWindow.Export.PDF.Method = NativePDF!
dts_1.Object.DataWindow.Export.PDF.NativePDF.PDFStandard = '3' //PDF/A-3a
but this method failed as well (couldn't even change the page orientation).
While exporting, with the same settings, a Free Form datawindow does actually exports in a valid format; for reference tests were done on this online validation tool.
Is there a way to actually achieve generating a valid PDF/A-3a from a Rich Text?
Thank you in advance,
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.