Acrobat sdk 9 wizard problem!

Developing acrobat plug_in with the acrobat wizard ,slecting using mfc,. I creat a dialog in resource  ,when I call the domodal function ,the program crash,why? the program select using mfc in shalled dll,so I use the AFX_MANAGE_STATE marco ,but cause link error.when I choose using mfc in static
dll,also cause link error.
when developing  the plug in using acrobat sdk ,I want to create a window on the windows system,I only can using windows sdk?Can i use the mfc?

Have you stepped through the debugger to find the exact place of the crash?  Have you been sure to use proper exception catching mechanism?

Similar Messages

  • Adobe Acrobat XI SDK Samples problem

    I am having problems building and running SDK samples.
    When built “out of the box”, the WebLinkDemo fails while getting HFT for AcroColor.
    After some googling, I found Adobe Acrobat XI SDK Release Notes:
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/release- notes-acrobatxisdk.PDF
    Following their directions:
    deleted
    /D PI_ACROCOLOR_VERSION=0x00060000
    inserted
    /D READER_PLUGIN
    WebLinkDemo builds OK, but required SnippetRunner fails to compile with multiple errors like:
    >c:\code\adobe\acrobat xi sdk\samples\snippetrunner\sources\snippets\shared\acetranspdetextcolorsnip.cpp(60): error C2065: 'PDEContentGetNumElemsSELPROTO' : undeclared identifier
    SELPROTO seems to be the commot suffix.
    Any suggestions?
    Thank you!

    Perhaps a little more context. You should understand that the Acrobat SDK is a tool for encouraging people to buy Acrobat - especially the consumers of plug-ins.
    Reader plug-ins can be made, subject to technical limitations, but Adobe do not especially like the lost sales of Acrobat this may represent.
    In addition to purchasing Acrobat, you will need to buy a Reader integration key, after negotatiation. Approval is not automatic!  There are also two scales of fees, one for regular Reader plug-ins and one for security related plug-ins, for which Adobe has a much higher fee and demands much more oversight.
    "How much does a Reader Integration key cost?
    Reader Integration keys are only available to strategic partners based on a negotiated price. If you are developing a digital rights management (DRM) Adobe Reader plug-in, the standard (non-DRM) RIKLA contract does not apply. Adobe does offer a DRM agreement specifically for developers building such Adobe Reader plug-ins. The current fee structure for the DRM RIKLA includes a $50,000 annual fee and a 5.5% revenue royalty."
    http://www.adobe.com/devnet/reader/ikla.html
    So, yes, to experiment with plug-ins, whether for Acrobat or eventually for Reader, please listen to what we are telling you and if you want to do this, buy Acrobat.

  • Problem on setting pagelabel using acrobat sdk

    hi all,
    On setting pagelabel into the pdf file using acrobat sdk 9, we have an issue while opening the pdf file in notepad we got the value of pagelabel as <</P(CoverNUL)>> for your reference i have attached the screenshot and my code is below
    ASInt32 textSt;
    ASText prefix =  ASTextFromScriptText("Cover",NULL);
    PDPageLabel textLabel;
    textLabel = PDPageLabelNewASText (pdDoc,ASAtomFromString("None"), prefix,NULL);
    if(PDPageLabelIsValid(textLabel)==true)
    PDDocSetPageLabel (pdDoc,0,textLabel);
    PDDocSave (pdDoc, PDSaveFull | PDSaveLinearized, pathName, ASGetDefaultUnicodeFileSys(), NULL, NULL);
    PDDocClose(pdDoc);
    Please, can any one help me on this.
    Regards,
    Jayakrishnan

    Use this it will work..
    ASInt32 iTemp = PDDocGetNumPages (pdDoc);
      PDPageLabel pageLabel;
      pageLabel = PDPageLabelNew (pdDoc,ASAtomFromString(lblList), NULL,NULL, startPoint);
      if(PDPageLabelIsValid(pageLabel)== true)
        PDDocSetPageLabel (pdDoc,0,pageLabel);
        PDDocSave(pdDoc, PDSaveFull, path3, ASGetDefaultFileSys(), NULL, NULL);
        AVDocClose (avDoc, true);
    Be Well

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

  • Merging PDF / Page Numbers / Acrobat SDK V9  & LiveCycle

    Hello everyone,
    I use Adobe LiveCycle to create forms, Visual Studio 2005 and the Acrobat SDK for the application I'm programming to fill in these forms. The application fills in the forms and merges them with no issues.
    The problem I have is that these pages have page numbers in the upper right. I use the Page N of M object on these forms in LiveCycle. PDF page numbers are filled in correctly when filling in the forms, but when I merge PDFs, the pages keep their original page numbers. I've looked at the Windows - Interapplication Communications even using templates to no avail.
    How can I merge these pdf's and have my program renumber these pages correctly and how can insert pages anywhere I want in the merge document?
    Below is the code I use to merge the PDF's. It was posted in a forum.
    Sub MergePDF(ByVal ThePath As String, ByVal outFileName As String)
    On Error GoTo serror
    Dim dPDDocMerge As New Acrobat.AcroPDDoc
    Dim dPDDoc As New Acrobat.AcroPDDoc
    Dim strFiles() As String
    Dim numPage As Integer
    Dim TotalPage As Integer
    Dim objThisFile As IO.FileInfo 'get FileInfo object for file string
    strFiles = System.IO.Directory.GetFiles(ThePath) ' Read in the file names
    Dim b As Boolean ' mostly for testing purposes... could use it for error 'checking to make sure that a file is really added before deleleting it...
    For i As Integer = 0 To strFiles.Length - 1 ' run through all the files in 'the directory
    objThisFile = New IO.FileInfo(strFiles(i)) ' Get the extension
    If objThisFile.Extension = ".pdf" Then ' Only add in PDFs
    If dPDDocMerge.GetFileName = "" Then ' check if it's the first file
    dPDDocMerge = New Acrobat.AcroPDDoc
    b = dPDDocMerge.Open(strFiles(i)) ' open first file
    TotalPage = dPDDocMerge.GetNumPages
    Else
    dPDDoc = New Acrobat.AcroPDDoc
    b = dPDDoc.Open(strFiles(i)) ' open other files
    numPage = dPDDocMerge.GetNumPages ' get the page count
    TotalPage += numPage
    b = dPDDocMerge.InsertPages(numPage - 1, dPDDoc, 0, dPDDoc.GetNumPages, _ False) ' Insert
    End If
    End If
    Next
    'b = dPDDocMerge.Save(1, ThePath & "\" & outFileName) ' save file
    b = dPDDocMerge.Save(1, ThePath & "\" & "\MyTest.PDF") ' save file
    b = dPDDocMerge.Close()
    Exit Sub
    serror:
    MsgBox(ErrorToString)
    End Sub
    Thanks for any code or advice.

    You can't merge LiveCycle forms this way :(. LC forms are NOT standard PDF files and can't be processed in the same way.

  • Acrobat SDK C# Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)

    Hi,
    Here I want to known one thing clearly, that is I was developed one application in C# with Acrobat SDK.
    In my application I am using Acrobat AxAcroPDFLib.AxAcroPDF and  also some other acrobat class.
    In my development system i am using Acrobat 7.0.
    When my application installed in my client system I am faced different types of problem.
    System 1
    System Configuration
    OS : XP
    Acrobat 7.0
    Result : Success
    System 2
    System Configuration
    OS : XP
    Acrobat 5.0
    Acrobat 7.0
    Result : Fail
    Error : Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)
    System 3
    System Configuration
    OS : XP
    Acrobat 7.0
    Adobe Reader 9
    Result : Success
    Note:
    But I having problem when I am use my application while Adobe Reader 9 is open.
    What is problem?
    Error is related to ActiveX COM fail like
    Error HRESULT E_FAIL has been returned from a call to a COM component.
    Retrieving the COM class factory for component with CLSID {FF76CB60-2E68-2E68-101B-B02E-04021C009402} failed due to the following error: 80080005
    System 4
    System Configuration
    OS : XP
    Acrobat 7.0
    Result : Success
    Problem:
    At the time of tool installation the system configuration will be as mention above, after by mistake they installed Adobe Reader 5.0. I faced the problem to use my application ActiveX COM failed
    So I was un installed Adobe Reader 5, and tried but I got the following error,
         System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception      from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
    at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
    at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
    at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
    at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
    at System.Windows.Forms.AxHost.CreateInstance()
    at System.Windows.Forms.AxHost.GetOcxCreate()
    at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
    at System.Windows.Forms.AxHost.CreateHandle()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.AxHost.EndInit()
    at Greenleaf_MetaData.ArticleMetaData_Jnl.InitializeComponent()
    at Greenleaf_MetaData.ArticleMetaData_Jnl..ctor()
    at Greenleaf_MetaData.MainForm.btn_Process_Click(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)   
    So, I am advised my System Admin team to Re-Install the Acrobat 7.0, after the Re-Installation of Acrobat 7.0, all the problem get solved.
    But I want to known what is problem?
    And also what is the Adobe COM connection between Acrobat ActiveX and my Application(C#, VB, etc…).
    So Please give clear information and guidance...
    Thanks & Regard
    Thirusanguraja Venkatesan

    A simple google can get:
    Common problems such as Windows Error Code 0x80040154 can be resolved with without too much difficulty. In this article we will go through solving the problem and how to prevent it in the future.
    What happens
    If you are registering an ATL server, you may see this error code. In the case of DLLs, regsvr32.exe will generate this error. In the case of EXEs, calling _Module::RegisterServer (CComModule::RegisterServer) in _tWinMain() will generate this error.
    For detail: http://www.error.info/windows/registry-0x80040154.html
    Cheers,
    andy

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

  • Rendering the PDF page to Bitmap object using Acrobat SDK DrawEx() or CopyToClipboard()

    I am trying to find whether each page in PDF document is color or monochrome.
    For doing this I am rendering the PDF page to Bitmap object using Acrobat SDK DrawEx() or CopyToClipboard()
    Once after rendering the PDF page, I am using GetPixel() to read each pixel value to decide about color or Monochrome.
    Problem:
    When I read the pixel to decide about the page color or monochorme, in some XP machines it is showing the PDF page as color and in some PC it is showing it as Monochrome.  Color quality in both the system is kept as 32 Bit.
    After this I tried copying the PDF page directly into clipboard and then take the clipboard image to decide about color and monochorme, but even this also behaves in the similar way.
    Question:
    Why rendering the PDF page to Bitmap object using DrawEx() or CopyToClipboard() is behaving differently in each machines.
    If required I will send my sample project.
    With regards,
    Rajeshrv.

    In SDK documentation, there is no methods are defined for getting the color of the page.  In color spaces and color values, we can set the color for drawing operations. A method AVPageViewSetColor is used for setting the color. 
    But there is no methods defined for getting the color in the page.  Please let me know , is there any alternative way.
    Thanks in advance.

  • Set PDF Document Properties Initial View by Acrobat SDK with C#

    Hi,
    Here am trying to set the PDF document initial view by the Acrobat SDK with C#.
    Here I am show my screen shot which properties I want to set.
    For this process I am referred Acrobat SDK and also following Adobe forums they also asked similar question.
    http://forums.adobe.com/message/3866361
    http://forums.adobe.com/message/4803264
    http://livedocs.adobe.com/acrobat_sdk
    And also I am used following C# code
          Acrobat.AcroPDDocClass doc = new Acrobat.AcroPDDocClass();
          doc.Open(@"D:\..\sap.pdf");
    doc.SetOpenInfo(1,1,"Fit Width");
          doc.SetPageMode(3);
          doc.Save(1, @"D:\..\sap.pdf");
          doc.Close();
    From the above code {doc.SetPageMode(3);} is working for set the page mode.
    But I am having problem in following code {doc.SetOpenInfo(1,1,"Fit Width");}
    Because it won’t work I do’t known, and there is no clear samples in the SDK reference document.
    So please give advice and clear sample code/syntax to meet above needs which are marked in red box.
    Document Properties - > Intial View
    Document Option
         Show: Bookmarks Panel and Page
         Page Layout: Continuous
         Magnification: Fit Width
    Window Options
         Show : Document Title
    Regards,
    Thirusanguraja Venkatesan

    ok thank you Test Screen
    I will try and let you know if i am done by automation .
    Regard,
    Thirusanguraja Venkatesan

  • Acrobat SDK

        We have been using acrobat SDK for loading the reader.
         We are using classes like CAcroApp,CAcroPDDoc,CAcroPDPage etc.
         In CAcroPDPage::DrawEx(short nHWND, short nHDC, short nXOrigin, short nYOrigin, short nZoom), the second parameter is the HDC parameter.
         We have tried passing the destination HDC to DrawEx, but it doesnt work.Drawing onto HWND only works and not the HDC param.
          Is there any way out to this problem?Please guide.

    Post your question in the forum for Acrobat SDK.

  • Acrobat Form Wizard, need to change distribution email address

    When I'm using the Acrobat Form Wizard, I don't want my respondents to email me, I want them to email the Department I'm creating the form for. How do I change the email address?

    I've got a PDF form, created by a client, which I'm trying to setup for email collection of completed forms.
    Problem is, when I go through the steps to "distribute" the form, it never asks me what email address I'd like the completed forms sent to. And in the end, it choose my own personal email address.
    Instead, I'd like to be able to specify my client's email address so he can receive the completed forms.
    Can anyone tell me how to change the default address for receiving forms?
    Thanks,
    Jade

  • 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

  • How to know the processing ordering in Acrobat Action wizard

    Acrobat Action wizard process the files in a specific folder , I would like to know the ordering citeria of the acrobat, is it based on alphaethic/ numeric order just the same as sorting function in PHP?
    Since I have to get the last file in the files list, if the ordering citeria is different from PHP , it is hard to tell.
    Thanks.

    If you need the files processed in a specific order you're better off not counting on the order used in an Action.
    My solution to this problem is to collect the file paths of the files processed by the Action in a global array and then process them using my code (from a folder-level script), which can sort them in whatever way I need them to be sorted.

  • Capabilities of Acrobat SDK to call a dll or an exe & adding certs in Trusted Identities

    Hi there,
    I am looking into the capabilities of Adobe Acrobat SDK to achieve certain goals via plugins.
    Whether a plugin written in Acrobat SDK can call a dll ( written in .Net ) or launch an exe. Is there any limitations in this reqard? Any pointers to documentation which explains this bit.
    Can a plugin be developed such that it programmatically installs digitally certificates inside Adobe Acrobat > Trusted Identities. Will it show some popup when done this way which user can reject to install ? I want users to get their Trusted Identities to be updated as part of the plugin launch or installation and can't stop it. If not possible will a Javascript be able to do this for me ?
    Can a plugin be programmed to hide certain areas of Adobe e.g. User is not allowed to view/edit Preferences > Security and also hide Advanced > Manage Trusted Identities
    Regards,
    mwak

    Hi,
    Thanks for your response.
    I believe Trusted Identifies are stored inside Application Data\Adobe\Acrobat\9.0\Security\addressbook.acrodata.  Does Acrobat SDK allow programmers to edit/modify this at run-time?
    I know the Trusted Identities can be udpated via the Adobe Customization Wizard but every change in Trusted Identity means installing Adobe again for the change to be effective which is an hassle. 
    Note for various reasons our client does not wish to use Windows cert store but Acrobat's own.
    Regards,
    mwak

  • Is there an Acrobat SDK support package to purchase?

    Too many issues while using Acrobat SDK, I wonder know if  there is an Acrobat SDK support package to purchase.
    Thanks.
    Have a good day.

    Karl:
    I started using such service back when Acrobat SDK development seemed like an intractable problem, and I really did not have the time to go through the learning curve. At the time it was called Rent-A-Coder and it was quite good.
    They had their grading system, and I often worked with coders who were in the top-10 or top-20 (out of 300,000 coders).
    You could search for "Acrobat SDK" or whatever other skill. They were acquired by Freelancer and I am afraid the quality of the service is waaaay down.
    Regards,
    -Ramon
    ps: I also have -somewhere- a list of higher-end, professional programmers, specific to PDF. It camed from PlanetPDF or a similar site. In any event, after I am about to finish my first complete plugin (the copy half of a copy+paste facility) plus an AcroForms Stamper/Filler on Linux, I feel confident that I will have no need for hired guns. I can roll my own.  :-)

Maybe you are looking for