Can't open file with PDF Creator if master password exist

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
Ehab
Posts: 2
Joined: Mon Mar 17 2003
Location: Brantford, Canada

Can't open file with PDF Creator if master password exist

Post by Ehab »

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
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

Hello,

The issue you are have is related the version of the PDF Creator you are using. The standard version of the PDF Creator cannot access PDF documents that are encrypted. You will need the professional version of this product to access or print encrypted PDF documents.

Hope this helps.
Ehab
Posts: 2
Joined: Mon Mar 17 2003
Location: Brantford, Canada

Post by Ehab »

We will be purchasing the professional version then.

Thanks Jose for your help.

Ehab
Post Reply