Accessibility of PDF reports
- How-to
- Roland Smith
- PowerBuilder
- Friday, 5 August 2022 06:32 PM UTC
PB 2019 Build 2170.
We have a process where our C# based web application can run DataWindow reports and display them as PDF in the browser. The PDF files are generated using NativePDF. The end users are allowed to modify reports in InfoMaker and copy them to a library that the PB code on the server can access.
At one of our customers, they have a blind person using our web application. A request has come in to see if we can make the PDF reports accessible.
I'm wondering if it is possible to generate accessible PDF reports with NativePDF.
Here are the lines of code that generate the PDF:
lDSReportQuery.Modify("DataWindow.Print.DocumentName='" + lsReportQueryObject + "'")
lDSReportQuery.Object.DataWindow.Export.PDF.NativePDF.UsePrintSpec = 'Yes'
Then it calls SaveAsNativePDF or SaveNativePDFToBlob depending on how complex the report is.
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.