Trouble opening files

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
paolo73
Posts: 15
Joined: Sat Oct 25 2003

Trouble opening files

Post by paolo73 »

I am using the Amyuni Developer Suite (professional version) to create PDF files and to convert other files to PDF. Using the PDFCreator ActiveX control, I display existing PDF files. However, once I open an encrypted PDF file, all subsequent files I attempt to open start opening erratically or not at all. For example, if I then opened Test.pdf, it either doesn't open, or only opens after I attempt to open Test2, test3, and test4. Meanwhile, all these three other files are hanging in a limbo somewhere. I have to kill my application and start all over to get it to work right again - that is until I open another encrypted file. I am probably missing something here. Please help.

I've attached a sample code below.

-----

With PDFViewer
.SetLicenseKey COMPANY, LICENSEKEY

'open a PDF document
ret = PDFViewer.Open(TESTDIR & lvFiles.Text, "")
If ret = False And .Protected Then
.OpenEx TESTDIR & lvFiles.Text, "bbbbbb"
End If

.RulerSize = 0
.ReportState = acReportStateRun
.ShowMargins = False
.ZoomFactor = 80
End With
Dany
Amyuni Team
Posts: 113
Joined: Wed Sep 11 2002
Location: Montreal.
Contact:

Post by Dany »

Once you open an encrypted PDF file, the PDF Creator sets some internal flags to disable operations depending on the encryption options.

The only way to go back to the default behaviour, is to destroy and create a new PDF Creator control.
Post Reply