Using PDOCG in Reader plugin

Hi
the PDF plugin API documents say that the PDOCG calls, e.g. PDOCGCreate and PDOCGSetUsateDictEntry are available for all products.
I have some plugin code which works fine in PDFL and Acrobat, but is failing in Reader.
As an example, the call
PDOCGSetUsageDictEntry(ocg, ASAtomFromString("View"),usageDict);
works fine in acrobat and PDFL, but throws a "This operation is not permitted" when the plugin is running within Reader.
Are the PDOCG calls subject to reader extensions rights being set on the document?
If so, which rights need to be set to enable these functions to work.
thanks
-r

A bit more information, as I know every little bit helps...
1) Looking at the doc "modify" permissions
  status = PDDocPermRequest(pdDoc, PDPermReqObjDoc, PDPermReqOprModify, NULL);
i see the following.
a) within acrobat pro:
  standard pdf file       - modify=YES (status == 0 )
  reader-enabled pdf file - modify=NO  (status == -1)
b) within Reader
  standard pdf file       - modify=NO
  reader-enabled pdf file - modify=NO
note that within acrobat pro, the reader-enabled file has the modify 'right' disabled,  which suggests to me that this right has been REVOKED by the ReaderExtensions server.  Is this how it works?
2) running the same plugin within acrobat pro, my calls to create the OCG and set the usage dict
work fine for the standard pdf file, but FAIL for the reader-enabled file.  Makes sense given the PDPerm results above.
This leads me to believe that it is the same modify=NO setting (within reader) which is causing the
method calls the throw the "operation not permitted" errors stated earlier.
The rest of my watermarking code is modifying the document without any problem whatsoever, so does this
Mean that i have to resort to more grubbing around using Cos api calls to achieve this? 

Similar Messages

  • Firefox will not use Foxit Reader plugin.

    Why doesn't the configuration to use the Foxit Reader plugin for PDF files work? The Adobe Reader plugin (in Firefox) is used instead.
    In Firefox 3.6.8 "Options" window, "Applications" tab, for "Content Type" -- "PDF file," the selected "Action" is "Use Foxit Reader Plugin for Mozilla (in Firefox)."
    For "Content Type" -- "PDF file, in the "Action" dropdown list, no option is listed for "Use Adobe Acrobat (in Firefox)."
    The "C:\Program Files\Mozilla Firefox\plugins" folder contains both (1) the Foxit Reader plugin (npFoxitReaderPlugin.dll ver.1.0.1.1117), and (2) the Adobe Reader plugin (nppdf32.dll ver.9.3.3.177).
    When Firefox connects to a website using a URL for a PDF file, the PDF document always appears in Firefox using Adobe Reader.
    Given the configuration, why doesn't Firefox open the file using Foxit Reader? How can this be fixed?
    Operating system is Windows XP Media Center Edition 2005.
    Thank you.

    BTW, Foxit has released Foxit Reader 4.3.0 which uses Firefox plugin 2.0.2010.1103.Plz take a look at foxit download center:http://www.foxitsoftware.com/downloads/index.php

  • Set safari to download pdfs rather than try to use Adobe Reader plugin?

    Some websites try to open a pdf file in Safari using the Adobe Reader plugin.  I don't have this plugin (and don't want to), and I would like Safari to download the pdf rather than trying to use the Adobe Reader plugin.  This option exists in Firefox - is there any way to set Safari to do the same thing?

    On my machine, OPTION-clicking a link, downloads it or the PDF that it points to. Alternatively, load the PDF and then OPTION-click on the URL and hit the enter key. Sorry, but that's all I have to offer.

  • I want to download recipes froma website and firefox tells me the adobe reader in use will not read

    i also wanted to check an activity calender from a website and it says : "The Adobe Acrobat/Reader that is running can not be used to view PDF files in the Web Browser Please exit Adobe Acrobat/Reader and exit your Web Browser and try again"> of course nothing works so can you help please?

    See if either of these help you.
    https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    https://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox

  • Adobe Reader plugin for Firefox - Firefox 17/18 w Reader X/XI unable to view PDF

    Our customers are having to use IE, which is not an option at some sites or roll Reader back to 9.4.5 to view our product.  This issue started happening on 1/8/13.
    No issues opening the PDFs
    Originally installed on Win7
    IE 8, FF11, Acrobat 9.4.5 – Windows updates turned off since 12/1/12
    Installed IE 9, no issues
    Installed FF 18.0.1 no issues
    Issues opening the PDFs
    Installed Reader XI, - kept Acrobat 9.4.5 installed - Unable to open catalogs in FF.

    You don't say what it is about your "product" that is different from a regular PDF. I assume from the screenshot you are using LCDRM, but that in and of itself will not stop Reader XI from displaying the content.
    Are your Firefox users actually using the Adobe Reader plugin? The latest build of Firefox has its own PDF renderer (which can't load LCDRM-protected files) - you need to specify that you want Reader to be the preferred plugin by changing the Firefox config.

  • Reader plugin for Chrome versions 42+ no longer work

    As of 04/15/2015, Google has deprecated the NPAPI which the Adobe Reader plugin apparently uses (see NPAPI deprecation: developer guide - The Chromium Projects)   This means the Adobe Reader plugin for Chrome no longer works.
    Does Adobe have any plans to provide a new plugin or extension for Chrome?
    If not, what is an alternative that can handle .xdp forms?  I've tried PDF Viewer (PDF.js), Notable PDF, and Xodo but none of them handle .xdp files.

    All:  I use the Adobe Reader plugin a lot for work. I have found a workaround to the new Chrome version 42 update that has removed the NPAPI plugins, including Adobe Reader.
    In the Chrome browser URL, type "chrome://flags". Find the flag called "Enable NPAPI Mac, Windows" and click "Enable".
    Then, go back to your plugins in Chrome, "chrome://plugins". Make sure the Adobe Reader plugin is Enabled and the Chrome PDF Viewer is disabled. Everything should work as it did before.

  • Updated Firefox doesn't like to use Adobe Acrobat reader to read pdf files. Why

    Since I have upgraded to a newer version of Firefox, I can no longer read or print most pdf files found on the internet with Adobe Acrobat reader. This is very frustrating. It has been happening for the past 3 weeks.

    https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    https://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox

  • Adobe Reader plugin for Firefox 3

    Has anyone else been having problems reading some pdfs using the Adobe Reader plugin for Firefox 3?
    For several months this often (but not always) happens:
    I follow a link to a .pdf, a new window opens with a blue progress bar in the middle.
    It gets to 100%, but then nothing happens, it just sits there with the progress bar full and "Done" in the status bar.
    Interestingly,  I also have the "IE Tab" extension installed and if I click on the icon  to change the browser engine, the page reloads (with a slightly  different progress bar that includes a counter for the file size) and  the document is always displayed correctly when the download is  completed.
    the Adobe Acrobat plug-in is v10.1.0.534.

    http://releases.mozilla.org/pub/mozilla.org/firefox/releases/
    You'll find previous versions there as well as the latest builds, but I honestly don't see why you'd not like 4.0. After all, this is Firefox we're talking about not IE, which seems to only get worse with each new release.

  • Plugin issue after using SignPlugin and Reader-enabling

    Hi all,
    I would like to ask for a help with plugin that we have developed for Adobe Reader.
    We are running into an issue with the plug-in and I was hoping that you can help me out.  It looks like plug-in works perfectly in the Acrobat but we have an issue with getting it  to work with Reader as described below.  I would greatly appreciate your help.
    We have a problem with plugin after signing it using RIKLA certificate provided by Adobe and Reader-enabling.
    Our plugin has been developed to allow users to sign PDF XML data from Reader user interface using custom library (sign library) and msxml3.dll library ( to transform PDF form XML into custom XML format). Plugin target is Adobe Reader 9 and it has been tested using Adobe Acrobat 9 earlier. Recently we received RIKLA certification key and after we tried to sign plugin and use it in Reader we started to have problems.
    Plug-in, compiled directly from source code and installed in Adobe Acrobat 9 is working correctly. We haven’t experienced any issues and everything seems to be working properly.
    The same plug-in signed using SignPlugin tools from Acrobat SDK 9.1 (command SignPlugin -kp keypairFileName -cf Reader_Integrated_Key_FileName  MyPlugin.api) and RIKLA key is not working correctly in Adobe Reader 9.
    The problem appears when plugin is trying to access external library msxml3.dll and execute createProcessor() function.  The same function work properly in Adobe Acrobat 9 before sing plug-in with RIKLA key.
    Below there is fragment with code that doesn’t work in Adobe Reader after reader-enabling but works in Adobe Acrobat.
    Plug-in crushes in line pProcessor = pTemplate->createProcessor();.
    try{
      pProcessor = pTemplate->createProcessor();
    } catch(_com_error &e) {
      printf("Error setting XSL style sheet : %s\n",
             (const char*)_bstr_t(e.Description()));
      AVAlertNote("Error setting XSL style sheet");
      AVAlertNote(e.Description());
      exit(-1);
    Code that we use in catch() block lets us know that error source is “msxml3.dll” library.
    As we have discovered problem occurs only after Reader-enabling .api plugin file. Clear compiled .api file works properly in Adobe Acrobat 9 without any problems.
    We would like to know if you have experienced any similar issues? If yes, what have caused them?
    Why same plugin is working in Acrobat 9 before signing and after signing using provided certificate it stops working?
    Are there any restrictions of using external libraries in Reader that are not working there, and these restrictions are not obeyed in Acrobat?
    Any help would be greatly appreciated.

    Hi Irosent,
    Is there a way that Acrobat and Reader differentiate between library initialization?
    Would it be useful if I place any part of code or project configuration for you so maybe you will be able to help?
    Libraries that we use (our own dll files) we place in windows/system32 folder (there also exists msxml3.dll file that we use).
    Here are preprocessor definitions that we have defined:
    _AFXDLL
    _USERDLL
    READER_PLUGIN
    NDEBUG
    WIN_PLATFORM
    WIN32
    _WINDOWS
    WIN_ENV
    ACRO_SDK_LEVEL=0x00090000
    As for library msxml3.dll that we use in code we have:
    #import <msxml3.dll>  named_guids
    using namespace MSXML2;
      MSXML2::IXMLDOMDocumentPtr
              pXml(MSXML2::CLSID_DOMDocument);
      MSXML2::IXMLDOMDocumentPtr
              pXslt(CLSID_FreeThreadedDOMDocument);
      IXSLTemplatePtr pTemplate(CLSID_XSLTemplate);
      IXSLProcessorPtr pProcessor;
    Later there is a part of code that I have posted in first post and where plugin crashes.
    I would really appreciate your help.

  • Can i using Adobe Reader plugin to generate signature in Reader X?

    I noticed that user can add annotation in Reader X, so i want to know if i can add signature or custom annotation in Reader X by my plug in?
    Thanks in advance.

    If the PDF is Reader Extended, yes.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 3 Nov 2011 05:48:36 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Can i using Adobe Reader plugin to generate signature in Reader X?
    Can i using Adobe Reader plugin to generate signature in Reader X?
    created by ChromeUser<http://forums.adobe.com/people/ChromeUser> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4005332#4005332

  • Annotate pdf documents using the reader plugin in the browser

    Is it possible to annotate pdf documents using the reader plugin in the browser?

    Sorry I do not have answers, and do not know details of the Mac/Adobe plugins problems.
    Conspiracy theorists may wonder whether Adobe is constantly reviewing cost/benefit of supporting various OS s & Browsers.
    One may note
    * Flash Ubuntu development has effectively ceased, with all support ceasing in a few years http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html
    * Firefox on Windows Flash11.3 et seq has had many problems, I certainly have not noticed Adobe rolling out rapid and successful fixes for those problems
    * and Android support was dropped http://blogs.adobe.com/flashplayer/2012/06/flash-player-and-android-update.html

  • Is there a plugin to use TextAloud to read webpages?

    The TextAloud manual says I can use it to read webpages in Firefox. The TextAloud toolbar should show up on "View > Toolbars", but it doesn't.
    Is there a plugin that I should install?
    Thanks.

    It depends on what you're asking.
    After Effects can link the values of any digital audio file's amplitude to virtually any other parameter or control within AE. With the use of equalization you can make certain frequencies control different parameters. The 3rd party plugin Trapcode Sound Keys makes that process much easier and faster, but you can do it natively within AE too.
    http://www.trapcode.com/products_soundkeys.html
    But as you mention ANALOG audio I'm not sure what you mean. Do you want real time animation generated from an external audio source? After Effects can't do that - it doesn't do anything in real time.
    Apple Motion can assign parameter controls to MIDI controllers, allowing you to control parameters from a multitude of devices like musical keyboards, drum pads, MIDI mix controllers etc.

  • 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.

  • How to reinstall Adobe Reader plugin?

    Somehow Safari has lost its Reader plugin. Can somebody tell me how to put it back?
    I still have Adobe Reader on my computer but when I click on a pdf link Safari now uses Preview again instead of Reader.
    I already tried to download Reader and reinstall it but to no avail.
    Many thanks for all your suggestions,
    Eaglepeak

    Check to see if the plugin is still in 'HD/Library/Internet Plug-ins/'. If it is, launch Adobe Reader and navigate to the 'internet' section of its preferences. Ensure that the plugin is enabled.
    Yang

  • Does Adobe Reader plugin work in Firefox 11 if launched from Gnome?

    Sorry to cross post, but I couldn't figure out how to move my post from the "Adobe Reader" forum to the "Adobe Reader for Unix" forum.
    If I launch Firefox (version 11) from the command line (Linux shell), then I can open a PDF with the Adobe Reader plugin.  But if I launch Firefox from the desktop or panel in Gnome, I get the message "Could not launch Adobe Reader 9.1.0. Please make sure it exists in PATH variable in the environment.  If the problem persists, please reinstall the application."
    acroread is in the PATH variable - I checked ("which acroread" and "echo $PATH")
    We are using acroread 9.3.2.  We tried updating to the latest acroread 9.4.something ...? but the SendMail option was missing from Edit->Preferences, so we reverted to 9.3.2.
    We are using Debian Linux 5.0.8.
    It is very convenient and user-friendly in our library for visitors to be able to view a PDF in the browser (with the plugin) and to be able to just click on the envelope icon from there to send a PDF.
    This was working fine until we upgraded to Adobe Reader 9.4.  We reverted to 9.3.2, and everything was working fine again.  Then our systems people did some things, including updating Mozilla Firefox from version 3.6.13 to version 11.  Then the plugin stopped working from the Gnome launch panel.  I tried running the old Firefox 3.6.13 from the Gnome launch panel, but the plugin no longer works in it, either.
    Has anyone had this problem?
    Sometimes running Firefox from the command line gives some errors.  I tried various versions of nppdf.so and tried toggling the about:config variable "dom.ipc.plugins.enabled.nppdf.so" but nothing changed.

    I have the same or a very similar issue on WIn7 64bit

Maybe you are looking for