Differentiating between two opened pdfs in plugin.

hi,
I have a digital signature creation and validation plugin which i wrote for acrobat 9 and above. I need to get the active pdf's file path at some points. To achieve this i have registered for AVDocDidOpen notification and from the AVDoc i get i extract the filePath, which i save for later use.
Problem is that if there are multiple PDfs opened at the same time, then in the plugin callbacks how can i find out which PDF triggered the callback? I cannot rely on AVDoc as its null in some cases. Any suggestions?
Moreover, is there a way to trigger the PDF signature validation process to start manually (i mean from within plugin code)?
Thanks in advance.

Hi,
I found the solution to manually revalidating all the signatures in the pdf.
First, i registered for the idle handler via:
AVAppRegisterIdleProc method.
In my idle handler method, i look at my pending status variable to see if there is a verification process pending. if yes, then i call my Verify all signatures method.
(TIP: to get a PDDoc obj for the current active pdf i use this code:
AVDoc avDoc = AVAppGetActiveDoc();
if (avDoc)
PDDoc pdDoc = AVDocGetPDDoc(avDoc);
if (pdDoc){}
The verify method, enumerates through all the signatures in the pdf using:
DigSigEnumSignatures method, which iterates through signatures one at a time.
To check if a sig is signed or unsigned i used this:
DigSigIsSigSigned(sigField) method.
And then called DigSigVerifySig() method to verify this signature.
DigSigVerifySig() method, in turn starts the signature verification process for the specified signature which results in calling of our verification callbacks which we had registered earlier while registering our plugin.
and thats it. Hope it helps other aswell.

Similar Messages

  • Working and moving photos between two open libraries?

    I'm not sure if it is possible, but can you work in and transfer photos between two open libraries at the same time? It is more an organizational question...i.e. I want to have some photos only appear in a particular library...

    nk3:
    Welcome to the Apple Discussions. You can only have one library open at a time but with iPhoto Library Manager (in the free mode) you can transfer 20 photos at a time between libraries and keep keywords, comments, etc.

  • Links between two separate PDF documents - one as reference for another.

    Hello, everyone.
    I have a special project that I believe would be best addressed with the creation of two independent but linked PDF files. Let me be more detailed.
    My plan is to create a PDF file as a text document. In this text document there will be numerous references to documents and articles that I intend to place in a second PDF file. I would like the user to be able to open the text document PDF on the left side of his computer screen and also open the reference PDF with documents and articles on the right side of his computer screen. Every time the user comes across a section of the document that offers a link to an external reference the user would be able to click on it and the PDF on right would display the page corresponding to the reference on the PDF on the left. I hope this makes sense.
    Is it possible to create PDFs with this type of relationship ? I am guessing that in order for these links to work both PDFs will have to reside in the same directory so that the links (relative links in this case) may work properly. Is this true ? How can I make this work and is there a good document I can read or tutorial I can watch that would describe this in detail ?
    Thanks in advance for your help.

    Hello, try67.
    Considering what you share I don't think this solution is the right one for me. I am trying to find a simple solution that would allow me to accomplish this task. Considering it would require scripting or programming the solution has just become more complex than what I feel I can comfortably handle.
    Thank you anyway for your help.

  • RH 8 crashes on Save All when copying content between two open projects

    [Win XP SP2] I've submitted a bug report for this issue. Note that RH does seem to save the content as it's dying (a very noble act, I must say), but the behavior is bothersome.
    ******BUG******
    With two instances of RH8 running (dual monitors), and copying content from one project to another, the instance receiving the added content crashes when you click Save All.
    Steps:
    1. Open RH 1
    2. Open RH 2
    3. Copy content in RH 2 and paste it into RH 1
    4. In RH 1, click Save All
    Results: RH 1 crashes (RH 2 does not)
    Expected Result: RH 1 does not crash

    I would try another one with each of these documents.
    Create a new document with 2 pages.
    Name the master pages so, that their names are not conflicting with neither of these 2 document’s masters.
    Delete every style in that empty document, also any swatch
    No drag the pages of the first document into such an empty document.
    Do the same step 1 to 4 with the second document in a NEW empty document.
    Now you have 2 new documents. Take care that no conflicting master names appear.
    In each of these documents create in each style panel a folder and drag all used styles in that folder.
    Save both documents
    Try again to insert the pages of both documents.
    Otherwise, it this does not work out, could you send me via private message the files or a link. I would check it with a Debugging Version of InDesign (InDesign DEV) I can use to find errors.

  • Combine Open PDFs

    I have two open PDF documents. I want to take the contents from one and insert it before the contents of the other then close the first document and save the second to MyDocuments. The file names & locations change, but there are only these to files open at the time their being processed.
    Is there a simple way of automating this via batch process or JS? I go through this process multiple times a day.

    Thanks for the suggestions, but I've found it's best to have them both open so you're sure your combining the right documents.
    One is a scanned document with the scanner assigned name and the other is a pdf opened from email with a sender generated name.
    It's important that the two are "married" correctly.

  • When opening pdf file I cannot choose between opening or downloading the file?

    Adobe offers just the download. How to change this?

    Hi, thanks for your reply. I use Mozzilla firefox the 15.01 version. How do I change the settings then?
    Martin
    Date: Fri, 21 Sep 2012 22:27:42 -0600
    From: [email protected]
    To: [email protected]
    Subject: When opening pdf file I cannot choose between opening or downloading the file?
        Re: When opening pdf file I cannot choose between opening or downloading the file?
        created by Pat Willener in Adobe Reader - View the full discussion
    That choice is not made by Adobe, but your browser, of which you give no details. 64-bit browsers cannot open PDF files, as the Adobe Reader plugin is a 32-bit app.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4718369#4718369
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4718369#4718369
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4718369#4718369. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I have Adobe Reader in stalled on my MacBook Pro but the plugin is not showing in FireFox so I am unable to open pdf's in browser. How can I correct?

    When I encounter a site that requires me to fill in a pdf form the browser opens in Adobe Reader and not in the browser. I have checked off in Adobe Reader to open pdf's in browser but it still will not.

    I do not think adobe reader works as a plugin for Firefox on Macs, ( but a PC user myself so I can not check). See [[Installing and updating Adobe Reader]]
    Note specifically comments in the Mac version of that [/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox?s=pdf+plugin+mac&as=s#os=mac&browser=fx35] about alternative plugins.

  • Difference between IE and acrobat in opening PDF

    Hi, I have adobe acrobat 9 pro and if I open a PDF using acrobat, I have a bunch of toolbar functions like redaction, advanced editing and so on. However, if I open it using IE, which also uses acrobat, its toolbar provides limited functions. I only installed adobe acrobat version, and I uninstalled the acrobat reader 8.
    Is it because that acrobat 9 provides the reader functions in IE acrobat activeX?
    If so, is there any way to activate the functions in IE activeX?

    Hi,
    I have similar kind of situation and facing problem.
    We have developed custom plugins which resides under Adobe/Acrobat/Plug_ins/<Directory>/MyPlugin.API. We have used Acrobat SDK to create this custom plug_in.
    We have developed PDF viewer (using Acrobat SDK) which loads this plug_in and opens PDF file and this PDF Viewer we are using in our web site inside internet explorer.
    We have web application which displays list of name of PDF documents like 1.pdf, 2.pdf, 3.pdf, 4.pdf.
    Step (1) When user opens 1.pdf it will open PDF using our PDF viewer and custom plug in and working fine.
    Step (2) Now if user opens another PDF (xyz.pdf) in other tab of internet explorer or in a different instance of a Internet Explorer it opens PDF but using IE PDF viewer ActiveX provided by Adobe under  Program Files/Common Files/Acdobe/Acrobat/ActiveX/AcroPDF.dll.
    Step (3) Now if user goes back to our web site and opens another pdf like 3.pdf our custom plug in in stop working. It's like it has never been loaded.
    This only happens if user perform Step (2) using IE. If user does not do Step (2) or open PDF out side of Internet explorer using Adobe Acrobat it will not create any problem because out side of IE it will open PDF using Acrobat Standard.
    My question is ,
    Is Acrobat PDF viewer ActiveX for IE is doing something which is causing this issue? I came to this conclusion because this only happens when user does step (2).
    Thanks,
    twinkle

  • I purchased an annual subscription to Acrobat Pro XI and installed two days ago. I cannot open PDFs. I keep getting a dialogue box saying my trial has ended and asking if I want to buy the software. Was using Acrobat Pro 9 previously. It appears even that

    I purchased an annual subscription to Acrobat Pro XI and installed on my Mac two days ago. I cannot open PDFs. I keep getting a dialogue box saying my trial has ended and asking if I want to buy the software. Was using Acrobat Pro 9 previously. It appears even that won't open. SOS!

    Hi Margot ,
    You can click on accept or buy ,which ever option you see on that dialog box.It will prompt you to type in your Adobe Credentials.You can license it by doing the same.
    If it still doesn't work ,follow these steps and see how it goes .
    Delete all the files from following folders:
    [Home]/Library/Application Support/Adobe/SLStore
    [Home]/Library/Application Support/Adobe/SLCache
    And, delete all files from following folder except cache.db
    [Home]/Library/Application Support/Adobe/AdobePCD
    Then launch Acrobat and try to activate and check.
    Regards
    Sukrit Dhingra

  • How to transfer files(pdfs/music.etc)between two pcs

    how to transfer files(pdfs/music.etc)between two pcs?

    Yes, you pretty much just drag and drop or copy and paste depending on which way you like better. It is pretty much like connecting an external hard drive. Just find the files you want and copy them over to your other computer.
    This is one of my favorite features from Macs. It's very simple to do and because it's Firewire even large files transfer over very quickly.

  • Using Adobe 11 reader, now comes up with an error, once file is opened. 'Invalid plugin detected, Adobe reader will quit. Closes the program so cannot view PDF files. Running windows 7. I have uninstalled and re-installed Adobe still the same. HELP

    Using Adobe 11 reader, now comes up with an error, once file is opened. 'Invalid plugin detected, Adobe reader will quit. Closes the program so cannot view PDF files. Running windows 7. I have uninstalled and re-installed Adobe still the same. HELP

    Sounds like something has been added into the Reader folder. I would recommend uninstalling, running http://labs.adobe.com/downloads/acrobatcleaner.html, removing any left over parts of the Reader folder (this might have been the problem), reboot, and reinstall. Hopefully that solves the problem. For future question about Reader, you should consider asking in the Reader forum, this is not it.

  • Hi,am not able to open PDF Files in Mozilla Firefox without using plugins...I need Solution

    Hi,am not able to open PDF Files in Mozilla Firefox without using plugins...I need Solution

    Hello,
    Please see the support article below for full information on viewing PDF in Firefox:
    [[View PDF files in Firefox without downloading them]]
    If you want to use Firefox's built in PDF viewer (i.e. not a plugin) then you will need to ensure that any PDF plugins are uninstalled from Firefox and that 'Preview in Firefox' is selected as the Action for PDF files (see screenshot below).
    I hope that helps. Let me know if not.

  • Hi, i'm using 10.6.8 and cant open pdf using safari  Ive tried deleting the adobe plugin in the library option..

    hi, i'm using 10.6.8 and cant open pdf using safari on "my vodafone" web site. when i click on the pdf icon nothing happens?? Ive tried deleting the adobe plugin in the library option...but no luck...driving me crazy! cause it opens in my 8yr old desktop
    please help

    Go to /Library/Internet Plug-Ins.
    If you see the PDF Browser Plug-in, move it to the Trash.

  • Difference between opening PDF within IE with pressing SHIFT key and without SHIFT key

    Hi,
    I want to know when we open a PDF file within Internet Explorer it is using ActiveX control AcroPDF.dll behind the scene.
    Now If I open PDF within IE with keep pressing SHIFT key the behavior is different then without pressing SHIFT key?
    Is AcroPDF.dll behaves differently in this situation?
    Thanks,
    Twinkle

    I've saved two files on my desktop:
    f1040.pdf - downloaded from www.irs.gov - 187 KB
    afmod07.2.1g.pdf - downloaded from my intranet - 1,04MB
    I've powered off my PC and restarted for each file. I've opened files with double-click on them. I've encountered the same problem, when double-clicked on files in task manager two Acrord32.exe appeared, the PC was doing anything for about 10 second, after that I've encountered no activity in task manager (numbers not vary) for other 10 seconds (like freeze) and after that other about 10 seconds of loading. So after about 30 seconds the file opens with stand-alone Acrobat Reader (11.0.10).
    If I retry now (after the first slow startup "of the day") the file opens in 2-3 seconds.
    So:
    - first open of the day or rebooting PC: 30-45 seconds
    - second open of the file: 2-3 seconds
    This is happening only with PDFs with forms.
    Yuri

  • Acrobat 7.1 IE plugin cannot open .pdf Files with mt/application/octet-stream

    Hi Folks,
    we have some problems to open pdf - files via Hyperlink in an IE Explorer. this files get from the web-server the MIME-Type "octet-stream".
    the only option is to save and then open the pdf files. But we want to open the pdf files directly IN the IE. the option to open it not in IE is not possible because then another application will not work.
    Is it generally possible to open an pdf File with an octet-stream MIME-Type with the IE-Pluin, and if Yes is ther any possible configuration we could try.
    Thanks for your help
    regards
    Felix

    Hi Bill,
    we already tried to change that checkbox that solves the problem but we get new problems with other applications, so this way is also no option for us.
    also we tried to repair / reinstall acrobat, but it has no effect.
    I suppose that maybe adobe just closed that door to open pdf documents with the octet-stream MIME-Type. Because it could an way to insert executable files in the system.
    maybe a higher version than 7.1 can do this?
    Thanks for your help, here in Germany it is already 2 pm so not far from quitting-time ;)

Maybe you are looking for

  • Need some kind of Analytical Function

    Hi Oracle experts I need a little help from you experts. I have a PARTY table as listed below The existing data Party key     ID_INTERNAL     EID          BID 1          11111          123 1          11111          321 1          22222          321  

  • Adobe Photoshop Elements 6.0 (Editor) has stopped working

    Shows this message and then "A problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available."    Haven't heard anything from windows.   Any suggestions?

  • Problem in running JAR file

    Creating a mobile game using J2ME. The JAR file created by Netbeans IDE when bein run on mobile gives an error: JAR and JAD file did not match. Manifest file: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.2 Created-By: 1.5.0_06-b05 (Sun Microsyst

  • My iphone wont restore error 21. need pictures off my phone help

    i dropped my i phone and when pluged into charge you could only see the apple symbol on the screen. i got it into recovery mode but it will not restore or update comes up with error 21. there are pictures of my children on here that i do not see anym

  • Problem in reports 6i  while using delimiter option.

    Hi, I am facing problem in report writer while using delimiter option. Report summary ============== In my report I am having two queries in data model and two different repeating frame for each in layout. These quires are called based on the user pa