Hello,
I have a pdf encrypted using certificate. I want to open this pdf using Acrobat sdk APIs. I have read the documentation of "Opening secured Pdf". I learnt that AVDocOpen() function calls Acrobat built in authorization procedure and using PD layer to open a encrypted pdf we need to write our own authorozation procedure. I want some example which demostrates how encrypted pdf are opened. Also, when opening certificate secured pdf, where does Acrobat installs the certificate?
Please can someone guide me!!
Thanks in advance.
Hi,
Thanks for the reply.
I tried using
AVDocOpenFromFile(ASPathName pathName, ASFileSys fileSys, const ASText tempTitle) method, but was unable to open the encrypted pdf.
I also tired using PDDocOpen() method, but didn't understand how to use PDAuthProc parameter.
My requirement is as follows:
I have a encrypted document(secured using a certificate) and a certificate file(.pfx file).
I want to open this file programmatically without asking user to enter the password for the certificate.
Do you think this is doable?
Hi,
I tried using AVDocOpenFromFile() function to open an encrypted pdf. On running the code a dialog poped up to enter the password for the .pfx file. On entering the correct password Acrobat opened the encrypted pdf. Is it possible to disable this pop up window to enter the password, I mean is it possible to pass the password as a paramter to an Acrobat API, which will open the encrypted pdf?
Do i need to use PDDocOpen function and write an authorization procedure? If yes can you please provide me with an example or guide me on how to create an authorization procedure.
Thanks!
No – AVDocs and PDDocs refer to open documents.
From: Adobe Forums <forums@adobe.com<mailto:forums@adobe.com>>
Reply-To: "jive-539809550-8igo-2-2gsty@mail.forums.adobe.com<mailto:jive-539809550-8igo-2-2gsty@mail.forums.adobe.com>" <jive-539809550-8igo-2-2gsty@mail.forums.adobe.com<mailto:jive-539809550-8igo-2-2gsty@mail.forums.adobe.com>>
Date: Mon, 16 Jan 2012 01:50:17 -0800
To: Leonard Rosenthol <lrosenth@adobe.com<mailto:lrosenth@adobe.com>>
Subject: Re: Opening Encrypted/Certificate Secured PDF. Opening Encrypted/Certificate Secured PDF.
Re: Opening Encrypted/Certificate Secured PDF.
created by poortip87<http://forums.adobe.com/people/poortip87> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4143094#4143094
Hi,
Thanks for reply.
When I open a secured pdf I get an Digital Id Authentication window. I wanted to remove this window therefore, I captured before open event using AVDocWillOpenFromPDDoc() and then wrote code to installed the certificate but before the event is captured, the Digital Id Authentication window appears. Is there any way to stop displaying this window?
I came accross XMP toolkit sdk to read xmp metadata of a pdf. Can I read xmp metadata of a pdf without opening it in Acrobat/Reader??
Thanks in advance.
Yes, you can read XMP w/o opening the PDF – of course, that assumes that the XMP is not encrypted (it's a choice of the PDF authoring/encrypting tool).
From: Adobe Forums <forums@adobe.com<mailto:forums@adobe.com>>
Reply-To: "jive-539809550-8igo-2-2gumm@mail.forums.adobe.com<mailto:jive-539809550-8igo-2-2gumm@mail.forums.adobe.com>" <jive-539809550-8igo-2-2gumm@mail.forums.adobe.com<mailto:jive-539809550-8igo-2-2gumm@mail.forums.adobe.com>>
Date: Mon, 16 Jan 2012 21:10:56 -0800
To: Leonard Rosenthol <lrosenth@adobe.com<mailto:lrosenth@adobe.com>>
Subject: Re: Opening Encrypted/Certificate Secured PDF. Opening Encrypted/Certificate Secured PDF.
Re: Opening Encrypted/Certificate Secured PDF.
created by poortip87<http://forums.adobe.com/people/poortip87> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4145422#4145422
Hi
Thanks for the help.
I found another way using PD layer to read xmp meta data.
I am not able to stop the display of message window saying "You do not have access rights to this encrypted document" even on capturing the "before open" event. Is there any method to stop displaying this message window. The message window is appearing because the certificate used to encrypt the pdf is not installed. What I want to do is capture the before open event of the encrypted pdf. Inside this event I will install the certificate. But the message window appears before the "before open" event is captured and on clicking ok in the window nothing happens. I mean the control does not go into the callback function written for "before open" event.
Please help, its urgent.
Thanks
You can't open the PDF if you don't authenticate it.
From: Adobe Forums <forums@adobe.com<mailto:forums@adobe.com>>
Reply-To: "jive-558504907-8igo-2-2gwsx@mail.forums.adobe.com<mailto:jive-558504907-8igo-2-2gwsx@mail.forums.adobe.com>" <jive-558504907-8igo-2-2gwsx@mail.forums.adobe.com<mailto:jive-558504907-8igo-2-2gwsx@mail.forums.adobe.com>>
Date: Tue, 17 Jan 2012 21:30:34 -0800
To: Leonard Rosenthol <lrosenth@adobe.com<mailto:lrosenth@adobe.com>>
Subject: Re: Opening Encrypted/Certificate Secured PDF. Opening Encrypted/Certificate Secured PDF.
Re: Opening Encrypted/Certificate Secured PDF.
created by poortip87<http://forums.adobe.com/people/poortip87> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4148241#4148241
North America
Europe, Middle East and Africa
Asia Pacific