Hi,
Encrypted pdf file is not opening in dynamic pdf viewer.
thank
yashwant
Encrypted pdf file
Re: Encrypted pdf file
Support · Jul 5, 2012Hello Yashwant,
It is not possible to open the encrypted PDF document using the open file tool bar button in the DynamicPDF Viewer control. You will need to call the OpenFile method through code which takes password as one of the argument. Below is the sample code for it.
axDynamicPDFViewer1.OpenFile(@"C:\HelloWorld_tempfile.pdf", "user");
Thanks,
ceTe Software Support Team.
Re: Encrypted pdf file
Forum member · Jul 5, 2012Hi, But this is just basic requirement,Dynamic pdf viewer should ask for the password while opening the encrypted pdf file.
regards,
Yashwant
Re: Encrypted pdf file
Support · Jul 6, 2012Hello Yashwant,
This feature of opening encrypted PDFs from the UI will most likely be supported in the next version of Viewer.
Thanks,
ceTe Software Support Team.
Re: Encrypted pdf file
Forum member · Aug 1, 2012Is there a way the viewer can find out whether the document is encrypted in order to put up a diaglog box to ask the user for a password?
Thanks.
Re: Encrypted pdf file
Support · Aug 2, 2012Hello,
The DynamicPDF Viewer product API has OnOpenPassword event which is triggered when opening a password protected PDF document. You can refer documentation on OnOpenPassword event here
.
Thanks,
ceTe Software Support Team.
Re: Encrypted pdf file
Forum member · Aug 2, 2012Thanks for your quick reply about the OnOpenPassword callback. This works great with your C# sample. Do you intend also to bring out a Java version of the PDF Viewer?
Re: Encrypted pdf file
Support · Aug 3, 2012Hello,
Currently we do not have any plans for DynamicPDF Viewer for Java product. We will be posting it on the forum if we plan Viewer product for java in future.
Thanks,
ceTe Software Support Team.