Hi,
I am evaluating PDF Creator "Developer standard" Ver. 1.09c and using Powerbuilder as my development tool.
I need to open a PDF file and then print it. This is working perfectly as long as the PDF file doesn't have any security settings. When I try to open a PDF file generated using PDF Converter with a master password, it fails!
The PDF has a master password and the end user has the right to print the document, so I am open the file without password, Here is my script:
if lnv_PDF.ConnectToNewObject("PDFCreactiveX.PDFCreactiveX") < 0 then
Return -3 //ActiveX not working
End if
//Open file as a normal user without password
If lnv_PDF.Open(as_filename,'') = 1 then
lnv_PDF.Copies(5)
lnv_PDF.Duplex(1)
lnv_PDF.Print(as_printername,ab_prompt)
Else
Return -1 //Invalid file or unable to open pdf
End if
Thanks in advance for your help,
Ehab