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!
it works fine for me ( i can print). what version of PB are you running?
i use modify instead of dot notation, and all in one:
dw.Modify("DataWindow.Export.PDF.NativePDF.MasterPassword = '123' DataWindow.Export.PDF.NativePDF.Restrictions = 'nomodify!,nocopy!' ")