1. Roland Smith
  2. PowerBuilder
  3. Friday, 5 August 2022 18: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.

Roland Smith Accepted Answer Pending Moderation
  1. Monday, 8 August 2022 15:06 PM UTC
  2. PowerBuilder
  3. # 1

I don't want to put a password on them. The PDF is viewed in a web browser and I want Accessibility turned on.

Comment
There are no comments made yet.
Daniel Vivier Accepted Answer Pending Moderation
  1. Saturday, 6 August 2022 20:04 PM UTC
  2. PowerBuilder
  3. # 2

My understanding is that what you need is for the "Content Copying for Accessibility" property to be enabled if you look at the Security tab of the Properties in Adobe Reader. But unless you set any passwords on the PDF, that will always be the case. 

When we do encrypt our PDFs (for certain documents in our apps, to prevent user modification of them) by setting a UserPassword, we allow that with the NativePDF.Restrictions value (We use 'nomodify!, noassemble!, noannots!, noforms!, nocopy!' for that value.)

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.