Acrobat SDK 9.1 - custom plugin - Polish Characters issue

Hi,
I hope any of you will be able to help me out as we are having small issue.  We are developing a plug-in that will digitally sign only XML prior to posting via webservice. This plug-in is developed for Adobe Reader 9.1 and we are using Adobe Acrobat SDK 9.1 to develop it.  This plug-in needs to support Polish characters, so the plug-in will be compiled with _UNICODE directive.  We are running into a Polish Character issue where Polish Characters are not being displayed in the plug-in popup.  Would you be able to tell us how is the Acrobat SDK dealing with this (as it is using std:string and not any type of wide string format), what type of params will get simple functions (like AVAlertNote).
We are also using the JS bridge to export data from the fdf form (using exportXFAData).
Any help would be greatly appreciated!
Thank you,
Jan Kropiwnicki

You should be using ASText objects when working with Unicode.

Similar Messages

  • Acrobat PDF reader for Internet Explorer may be unloading/unabling custom plugin

    Hi,
    My question is basically to understand what is happening in this situation so that I can find where is the problem and how to solve it.
    We have used Acrobat 6.0 SDK to develop our custom plugin. This plugin is basically wrapper to few basic tools  (note, stamp, text ) etc.. provided by Acrobat 6.0 SDK. We have also developed PDFViewer.dll to view PDF document within Internet Explorer. So when user load document within our website this PDFViewer loaded with the custom plugin and user can use those tools.
    We are installing this plugin under <Acrobat X>/Plug_ins/<Company Name>/MyPlugin.API.
    In our web site we are giving list of documents and when user click on a document it will load the PDFViewer and custom plugin. We are loading Acrobat.exe in advance so that we can load quickly.  Now the problem happens when user open any other PDF in different tab or instance of Internet explorer. ?How?
    Consider in a internet explorer user logged in our web site and then he/she can see let's say 10 documents. 1.pdf, 2.pdf, 3.pdf, etc...
    Now when user select document 1.pdf we are loading that PDF in the IE within our PDFViewer with custom plugin. (Here I have seen that behind the scene Acrobat.exe is loaded in the processed using task manager)/  If at this time if user opens another instance of Internet explorer or another tab and open a PDF document it opens PDF in the standard Adobe Reader PDF viewer for Internet Explorer resides at (C:\Program Files\Common Files\Adobe\Acrobat\ActiveX).
    If at this time user goes back to our site and tried to work on 1.pdf our custom plugin works fine BUT if user opens any other document (let's say 2.pdf) the plug in stops working basically looks like it is not loaded.
    This issue only happens if user opens a document in another internet tab or explorer instance and open PDF which resulted in to open Acrobat Activex for internet explorer. If user opens a PDF document out side of internet explorer it is not creating any problem because at that time ActiveX does not loaded.
    So my guess is something is going on when ActiveX for PDF is get loaded into Internet Explorer.
    I want to know more what is happening and why it is happening. Due to this behavior our web site users can't use any other web site which opens PDF documents because then they have to log off and log back in our web site.
    Please we need immediate help.
    I am open to provide more details with screen captures.
    Thanks,
    Twinkle

    Hi,
    Thanks.
    So I want to make sure this is because with Acrobat 9 - the new way to deal with PDF's?  Because as per my knowledge it was working fine with Acrobat 8.
    Moreover, if I am understanding correctly and I have tested too, the order is important here, right? If I will load PDF in IE first and then I will work on my web site it is not creating problem but if I will launch my web site first and then open PDF within IE in different tab it is creating problem because they are using same interface and when AcroPDF instantiating overriding and failed to load plug_in
    Here I have seen that both Acrobat.exe and AcroPDF.dll is using same Acrobat.dll pointing to same memory addresses and that's why problem is happening.
    IT would be great if you can provide any other way to "hook" adobe because the bottom line I have to use AcroExch.App from SDK.
    One last question, I have seen that if I am opening a PDF in Internet Explorer in a different tab (not in my web app) while pressing SHIFT key and the move to my web site and load different document it is working fine, so the question is what different is happening when we open PDF in IE with pressing SHIFT key and without pressing SHIFT key. IS AcroPDF.dll behaves differently while opening PDF with SHIFT key pressed?
    Thanks for all your help.
    Twinkle    

  • Acrobat SDK plugin in Visual Studio 2012

    Hello
    I am trying to develop a plugin for Acrobat SDK. We are using Visual Studio 2012 here at work but as the samples seemed to require using Visual Studio 2010 I had to resort to downloading Microsoft Visual C++ 2010 Express and trying to run the examples there. I managed to get the BasicPlugin to work by building it and copying the BasicPlugin.api file into the plug_ins directory and the menu and menu item would show.
    Since then I have been battling by using Visual Studio 2012 to work the same way and have used two different attempts, first by including the header files in the solution and then replicating the samples more closely by setting the includes (Additional Include Directories) in the Property Pages for the project and having other settings in the same way, but to no avail.
    Is it not possible to use Visual Studio 2012 or is there something I am missing?
    I must confess that my C++ is rather rusty as I normally use C#.
    Please find the two projects here if that helps explain my problem:
    OneAcrobatPlugin.zip - Box
    OneAdobePlugin.zip - Box

    It probably won't be impossible, but having worked through this many, many years ago (with different versions), it will demand a great deal of experiment, detailed analysis of the type of project and all of the options and included files; in some cases the header files need intelligent adjustment. A plug-in is a type of DLL with very specific requirements as everything has to match the internal conventions used to build Acrobat. Plug-ins are not like ordinary apps because they become a true part of the app that runs them, and any error crashes the whole app. It is not, frankly, worth the time needed to do such a port at your stage, especially as you won't be able to know whether your problems are due to porting issues or inexperience with plug-ins.

  • How to call GUI/Dialog in Acrobat sdk Plugin

    How to call GUI/Dialog in Acrobat sdk Plugin using VC++ here is my code
    ACCB1 void ACCB2 MyPluginCommand(void *clientData)
      HMODULE hAppInst = GetModuleHandle(NULL);
      DialogBox(hAppInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, NULL);
      HWND hWnd = ::CreateDialog(hAppInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, DlgProc);
      ::ShowWindow(hWnd, SW_SHOW);

    You can, with care, use Windows API calls in a plug-in. But you have to understand the process of loading resources. In particular, the calls you use try to load resources that belong to the main executable, which is Acrobat.exe. Plug-ins have their own instance handle, which is conveniently stored in gHINSTANCE. 
    In certain cases, especially modeless dialogs, there may be extra calls to make things work properly.
    You do need to know how to use the Windows API, and your sample lines seem confused, unless you intended to first display a modal dialog then open the same dialog as modeless. That's something for another forum,

  • How do I work in Acrobat SDK?

    Hello,
    I have never worked with Acrobat SDK before.  I need to develop a plugin for Acrobat Reader 9.  Can someone please point me in the right direction and tell me what to do?
    After I have installed the SDK I want to develop a custom search plugin that will limit the search to only selected bookmarks in a PDF document.  Are there any examples of this available?
    Thanks so much!
    Linda

    Welcome, Linda:
    I wish somebody would have given me this advice when I started dealing with the Acrobat SDK, a decade ago.
    (1) The SDK contains a MSVS Solution called "All". You will find plenty of examples there.
    (2) One of the projects is specially important: SnippetRunner. It contains a wealth of functions. Back in my day it was weird and I avoided it, but now it is based on Adobe Air, and is much simpler to install. After you have Air installed, just double click on the file CommonInterfaceAIR.air. With that interface you will be handling Acrobat with a soft of remote control, and testing all kinds of functions.
    (3) I had no idea that DLLs are so easy to debug. Boy, is my face red!! You probably know how to do it. (Plugins are just a DLL with a different extension)
    (4) Keep these links handy (actually, update them to your version):
         http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/js/html/wwhel p.htm?&accessible=true
         http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/API_References/Acrobat_API_R eference/
    In addition to this Adobe site, we developers have this one:
        http://forums.planetpdf.com/pdf-developers_forum16.html
    Best of luck

  • How to convert html to pdf using acrobat sdk 8.0?

    hi
    I am a beginner of acrobat sdk .
    I want to know How to use acrobat sdk 8.0 to convert html to pdf?
    herere some questions :
    1:How to support navigation inside PDF file that generated using acrobat sdk 8.0? For example: theres catalog in the top of HTML file, customer hopes can navigate inside the PDF file just like navigating inside the HTML file.
    2:How to support operating some controls in the PDF file that generated using acrobat sdk 8.0? For example: therere some drop down list and text box in HTML file, customer hopes can input text in the text box, click the drop down list to see available options in it just like in HTML file.
    Thanks in advance for any help and suggestion.

    Hello,
    I want a system to re-brand my 37 pages PDF for affiliates.
    I want a php dynamic link in the PDF online in order to personalize automatically the PDF for each affiliate. I need to change 2 links each time. The affiliate ID and the Paypal email (payment button) in page 36.
    Can you help?
    Please let me know
    Thank you
    Alex
    PS My system is online and i can give you the url if it helps.

  • Oracle Report, How to Display Polish Characters in a PDF Output

    Environment :
    Oracle Application Server version 10.1.2.0.2 on Red Hat 4 Enterprise (Kernel 2.6.9-42.0.3 , 32 bit) Oracle Database Version 10.2.0.3.0 Our character set of database is UTF8
    I have trouble to display polish characters in Reports Output. We develop on Windows XP machines. I can see the Polish Caharacters in the Reports Builder using several fonts (arial, arial unicode, Times new roman, verdana...) during design time or when running with the paper layout. But when the report deployed to application server running on the linux, the polish characters are replaced by symbols.
    Even under Windows, when I select 'generate to a PDF' file option, the characters are not displayed correctly (When I open the generated PDF file with Acrobat reader and go to Document Properties / Fonts, I see the Fonts are always replaced with Adobe Sans MM)
    Using the Forms Applications running on the same application server we have no trouble dealing/displaying with the characters (Ąą ĆćĘę Ł ł ŃńÓóŚ ś Ź ź Ż ż ß Đ đ € )
    NLS_LANG setting is AMERICAN_AMERICA.UTF8 on the Linux Box and AMERICAN_AMERICA.WE8MSWIN1250 is on the Development machines. (have tried a number of different NLS_LANG settings on the development box as well with no luck).
    Any direction would be appreciated.

    Hi,
    You have several different approaches to fix this problem. First of all, you would be able to generate the PDF output with Font Subsetting setup and be able to see the Polish characters correctly when running the output with destype=cache&desformat=pdf. The following metalink documents would guide you with this setup :
    Note.207711.1 "How to Use Font Subsetting in Reports 9i and 10g for PDF Output"
    As at design time you use many different Windows specific fonts, I also advice you to check the following document :
    Note.356221.1 "A Practical Methodology on Porting Reports from Windows to Unix with Different Fonts"
    Once the PDF output is generated properly with correct characters, then if you need to use "destype=printer" for direct print, rather than "destype=cache" to display the output in browser, then you can use the "PDFPrint" pluggable destination, which is located in :
    http://www.oracle.com/technology/products/reports/pluginxchange/index.html
    Regards,
    -Bulent

  • Plug in for visual studio 6.0 in acrobat sdk 6.0

    Dear Friends,
    I am absolutely in to the pdf plug in work. Can any one please help me, to know that how to install the plug in for visual studio 6.0.
    I have installed acrobat sdk 6.0 , acrobat professional and visual studio 6.0 in my system.
    Please suggest me whether I have to download any other tool for this.
    Regards,
    Safee

    My problem has resolved... still thank you...
    I just follwed
    You must install the wizard manually. Simply copy the AcrobatPluginWiz.awx and
    AcrobatPluginWiz.hlp files from PluginSupport\Tools\Visual Studio App Wizard
    subdirectory of the Acrobat 6.0 SDK installation to the Common\MSDev98\Template\
    subdirectory of the Visual Studio 6.0 installation. The default path to copy from is
    C:\Program Files\Adobe\Acrobat 6.0 SDK\PluginSupport\Tools\Visual Studio App Wizard
    and the default path to copy to is C:\Program Files\Microsoft Visual
    Studio\Common\MSDev98\Template.
    Once the files are copied, the Acrobat 6.0 Plugin Wizard option will now be available in the
    File > New > Projects dialog.

  • Acrobat sdk, not able to run samples, getting a message, unable to start the program

    Hi,
    I have downloaded Acrobat sdk XI and tried to run plugin samples  in visual studio 2010, It is build successfully but when I try to run the program am getting an error message saying " Unable to start  Program 'C:\Users\downloads\sdk110_VI_win\Adobe\acrobatXISdk\Version1\Plugin Support\samples\BasicPlugin\Win32\Debug\BasicPlugin.api'."
    Can anybody help me finding out why am getting this message.
    Thanks.

    How do you run the program?
    I need to copy the compiled BasicPlugin.api under Acrobat\plug_ins folder. I can create a subfolder of plug_ins and copy the .api file there. Just one level deep: if I create a subfolder under a subfolder of plug_ins, the .api file will not be found by Acrobat.
    Then I need to restart Acrobat and I find the plugin running. In particular, BasicPlugin add a new Acrobat SDK menu and a menu item under it.
    If I close Acrobat and go back to Visual Studio, I can push the Debug button which will open Acrobat for me and stop the program execution at any breakpoints I have set in the code.

  • Acrobat 9 Plugin and Orbix2000 issues

    I build a plugin using Acrobat 9 SDK.  The plugin starts a CORBA (Orbix2000) instance and a call back function in CORBA.  The same plugin works fine with Acrobat 8. In Acrobat 9.x (9.1 and 9.2), after the call back function in CORBA, most of the Acrobat API's are not accessable; usually I got "unhandled exceptions".  All the Acrobat menu items are fine even my plugin menu items.  e.g. (one example on AVAlert()):
    void myCallback()
         // do the CORBA thing
    void myTest()
        myCallback();
         // This is SDK Sample code
        ASAtom Name = ASExtensionGetRegisterName(gExtensionID);  //ok
        const char * name = ASAtomgetString(Name); // ok get my plugin name
         AVDoc avDoc = AVAppGetActiveDoc(); // ok
        if ( avDoc != null )
              char     str[256];
              PDDoc pdDoc = AvDocGetPDDoc(avDoc);  //ok
              int numOfPages = PDDocGetNumPages(pdDoc); // ok
              sprintf(str, "Number of pages = %d", numOfPages);
              // I added the follwing
              AVSysBeep(2)  // ok
              AVAlert(str);     // crash here in Acrobat 9.x but not in Acrobat 8.x
    It looks like in Acrobat 9.x, the AVAlert's resource handle is gone or there is no AVAlert at the location that suppose to be.
    Again, the same routine works in Acrobat 8.x.
    Any suggestion from anyone or from Adobe's folks?

    Post your problem in the forum for Acrobat SDK.

  • Creating PDF using Acrobat SDK

    Hello All,
                    I am developing application in VC++ which has requirement to create PDF file programatically and then write that file .
                    I just wanted to know can I use Acrobat SDK to create and Edit PDF file?
                    Please help me as I am new to this.
    Waiting 4 soon reply.......................
    Thanks

    Dear Arthi,
    This is the C++ code which will help u to create the pdf using the VC++ plugin, Hope this helps you,
    PDDoc TargetPDF = PDDocCreate();
    ASFixedRect mediaBox = { fixedZero, ASInt32ToFixed(792), ASInt32ToFixed(612), fixedZero };
    PDPage emptyPage = PDDocCreatePage (TargetPDF, PDBeforeFirstPage, mediaBox);
    PDPageRelease (emptyPage);
    PDDocSave (TargetPDF, PDSaveFull | PDSaveCollectGarbage | PDSaveLinearized,
        pdfPathName, ASGetDefaultUnicodeFileSys(), NULL, NULL);
    PDDocClose (TargetPDF);
    ASFileSysReleasePath(fileSys, pdfPathName);
    Regard's
    Amith Sai

  • Can I generate PDF thumbnails on server using Acrobat SDK

    Hi All,
    Are there any licensing limitations or restrictions that prevent me from utilizing Acrobat's COM objects or interfaces to generate thumbnails for PDF documents on the server keeping in mind that I will install full version of Adobe Professional on server?
    Thanks.

    You should read the product pages for a description of the LiveCycle ES suite. It is not an API interface to Acrobat - it is an entire range of PDF-based server solutions for paperless workflows. Many different products that can be extended directly via Java.
    > how about the third-party tools that extend adobe sdk
    Can you give me an example? I don't know of any products that extend the Acrobat SDK (which is what I assume you meant by Adobe SDK). I know of several the provide extended interfaces to the PDF Library SDK, as well as many 3rd party proprietary solutions (since the PDF standard is an open format, anybody can write their own libraries for it from scratch).
    > any thoughts?
    Yes. Call Adobe Sales or Customer Service, and get answers straight from the horses mouth. They're a for-profit company (and quite good at the profit part). Sometimes the decisions they make may not make everybody happy, but it is their right to make those decisions.

  • Acrobat SDK and MFC

    Hi,
    sorry for this noob questions, I have just graduated, and have no experience with MFC or the Acrobat sdk.
    I have tried for some while to get a dialogbox opened and have followed the plugin apps developer guide and this guide http://www.adobeforums.com/webx?128@@.3bc2c0c7 , but I get an error message, "Assertion failed", every time I try to initialize the window. I have managed to localize where it fails. I can't seem to get hold of the modal parent using:
    AVDoc avDoc = AVAppGetActiveDoc();
    hParent = WinAppGetModalParent(avDoc);
    My question is, what am I doing wrong? :P
    And is there an other way to get hold of the handle for the modal parent?
    best regards
    Simen

    The plug-in should go in your Acrobat\plug_ins folder (If you have a default install of Acrobat, the full path would be C:\Program Files\Adobe\Acrobat 9.0\Acrobat\plug_ins, but this would depend entirely on your system).
    You don't need to "open" a plug-in. Once you put it in the correct folder, Acrobat will automatically load it the next time Acrobat starts, as long as the plug-in is compatible with that version of Acrobat.
    You should know that a plug-in written for Acrobat 6 is certainly not guaranteed to work with Acrobat 9 (and there is a good chance it may not).

  • Duplex printing using Acrobat SDK 7.05

    Hi ,
    I am developing an acobat plugin which will help me in getting silent prints. My requirement is for DUPLEX printing, I have a strict requirement of using Acobat API 7.05. I know its possible with Acrobat 8.0 and 8.1 API.
    Is it possible to do it with 7.05 API ?
    Thanks

    The Acrobat SDK Developer Forum is here
    http://www.adobeforums.com/webx/.eed56a0/

  • What gotchas should we watch out for when porting code from the Adobe SDK to the Acrobat SDK?

    What gotchas should we watch out for when porting code from the Adobe SDK to the Acrobat SDK?
    ... and the other way around?
    I have found some evidence that the preprocessor variable PLUGIN seems to prevent macros from includes from being defined. The NPROC and SPROC constructs seem to be involved (partners in crime, if you will).
    -Ramon
    ps: Please see my related thread "What is the difference between xxProcs.h and xxCalls.h?"

    Here's a gotcha that I bumped into:
    extern "C" HINSTANCE gHINSTANCE;
    I found it in a successfully developed code on the Windows/Plugin side. It is something that I had never used on the APDFL side AND my Windows linker is complaining about several gXXXX missing functions.
    IOW: It sounds like the above statement is the solution to my linking problems. Somehow the APDFL seems to take care of the C vs. C++ details.
    -Ramon

Maybe you are looking for