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