- Kevin Thai
- PowerBuilder
- Wednesday, 30 January 2019 07:24 PM UTC
Hi all,
I am trying to learn the settings for the NativePDF exporter. Here is the code I am using:
dw_print.Object.DataWindow.Export.PDF.NativePDF.UsePrintSpec = 'Yes'
dw_print.Object.DataWindow.Export.PDF.Method = NativePDF!
dw_print.Object.DataWindow.Print.Paper.Size = 1 //1 – Letter 8 1/2 x 11 in
dw_print.Object.DataWindow.Export.PDF.NativePDF.MasterPassword = '123'
dw_print.SaveAs([filename], PDF!, true)
When I set MasterPassword it locks the ability to print the document without password. Is there a way to set it so the user can print the document without needing the password, but editing and copy are still locked?
Appreciate your help!
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.