Quantcast
Channel: Adobe Community : All Content - Acrobat SDK
Viewing all 2571 articles
Browse latest View live

Acrobat DC API.

$
0
0

is Acrobat DC API exist ?

 

Can I use Acrobat DC in my web application in order to programatically insert form field in an output pdf file ?


The AcroPDF.PDF Class is no longer accessible from VisualBasic6 after update 11.0.0.7.

$
0
0

After upgrading to 11.0.0.7 of Acrobat Reader it is no longer possible to get an instance of the AcroPDF.PDF Control in Visual Basic 6

 

Private PDFExt As VBControlExtender

Set PDFExt = Me.Controls.Add("AcroPDF.PDF", "PDF")

 

This worked fine with the 11.0.0.6 Version of the Reader!

 

Is there any solution available?

 

Thanks in advance

Stefan

How can I disable prompts for output file names by programmatic control?

$
0
0

The documentation for Acrobat XI SDK says prompting can be turned off programmatically by adding the key HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl to the Windows registry. I found on Windows 7 the value name should be C:\Windows\splwow64.exe and the value my file Name including the path. I also found at Re: VBA code to access registry values not working in Win7? I have to select "Prompt for Adobe PDF filename" in the preferences. But it is still not working for me. The prompt still appears. What can be the problem?

AVToolButton not showing

$
0
0

Am creating a Plug-in for for using the Acrobat XI SDK.

 

Am using the following code to add a Button to the File toolbar but i seem not to see the button.

 

const char * toolbarName= "File" ;

DURING

        //Retrieve the File toolbar

        AVToolBar myToolBar = AVAppGetToolBarByName(toolbarName);

 

        //Create an AVIcon object

        AVIcon myIcon = (AVCursor)LoadBitmap(gHINSTANCE, MAKEINTRESOURCE(IDB_BITMAP1));

       

        //Create a new button

        MyButton = AVToolButtonNew(ASAtomFromString("AGBP:PDFSaveButton"), myIcon, false, false);

 

        //Set a button's help text

        const char * helpText = "Startet die DCT-Auftragsdatenzuordnung" ;

        AVToolButtonSetHelpText (MyButton, helpText);

 

        //Create an ASConstText object by using a ASText object

        ASText tmpText = ASTextNew();

        ASTextSetPDText(tmpText, "Plug-InButton Text");

        ASConstText labelText = tmpText;

        //Set the button’s label text with a kAVButtonPriorityOnNormal priority

        AVToolButtonSetLabelText (MyButton, labelText, kAVButtonPriorityOnNormal);

 

        //Expose the button in a web browser

        AVToolButtonSetExternal(MyButton, TOOLBUTTON_EXTERNAL | TOOLBUTTON_INTERNAL);

 

        //Create toolbar button callback

        AVToolButtonSetExecuteProc (MyButton, ASCallbackCreateProto(AVExecuteProc, buttonCommand), NULL);

        AVToolButtonSetComputeEnabledProc (MyButton, ASCallbackCreateProto(AVComputeEnabledProc, buttonCommandEnabled), (void *)pdPermEdit);

 

        //Attach the button

        AVToolBarAddButton(myToolBar, MyButton, true, NULL);

        //Call AVToolBarUpdateButtonStates() after adding a button to update the toolbar.

        AVToolBarUpdateButtonStates(myToolBar);

 

    HANDLER

        AVAlertNote("Something went wrong!!!");

    END_HANDLER

 

Everything seems to be fine. I get an AVToolBar, the icon is not NULL, myButton is also not NULL.

But still i see no button. What am i doing wrong?

What is the correct way to determine the install location of Acrobat/Reader to install plugins?

$
0
0

We were previously using the following registry key to determine where we need to install our Acrobat/Reader plugin.

 

HKEY_LOCAL_MACHINE\Software\Adobe\Adobe Acrobat\%d\InstallPath  

HKEY_LOCAL_MACHINE\Software\Adobe\Acrobat Reader\%d\InstallPath  

(and append \plugin_ins to that result)

 

With Acrobat DC, I no longer see that registry key.

 

I was planning on changing our code to instead look here to determine the install paths:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Acrobat.exe\Path

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe\Path

 

Is this the recommended way of determining where to install plugins? I would rather not have our installation break when they update Acrobat/Reader the next time (for example maybe in the future they decide to change the executable name...)

How to re-activate "do not display this message again" popup window?

$
0
0

I'm using the Adobe Acrobat Pro and I've accidentally checked on the "do not show this message again" popup window. How do I re-activate it?

Acrobat pdf: extract all images greyed out

$
0
0

I'm a newbie. Why is this command greyed out?

 

I searched, but didn't find the answer.

Acrobat.tlb / Accessibility.api

$
0
0

Hello,

 

I'm currently just starting work with the Acrobat APIs. In our product we want to let our customers (who purchase adobe, optionally) create their own legal forms in PDF and send the results to a web page which captures the finished product and stores the final pdf in our document system.

 

I'm very new to this, so if anyone thinks I might be going down the wrong path I would appreciate it if you let me know. Currently I'm looking at adobe form filler plugin to auto-fill the form with data, and then set the button target (this is something it seems like 3rd party form fillers can not do). We have multiple developers working on this project in source control, my concern is I'll be causing build errors in our system if I make references to Acrobat.tlb etc pit of my C:\Program Files\Acrobat etc since most developers will not have Acrobat installed. Can the plugin references be moved to another location that all developers would have access to and the libraries still work? If so what considerations are there?


New files created when splitting a PDF using Adobe SDK are much larger than expected

$
0
0

Hi. I am using the Adobe SDK to split a large PDF into a set of smaller PDFs, using a set of page ranges. I am creating 2 PDDocs.  One is for the original PDF, which I open.  Into the other I insert a range of pages from the original.  I do this for each set of pages.

 

objPDDocNew.InsertPages(-1, objPDDoc, startPage - 1, lngPageCount, 0)

 

This works fine, except that the combined size of the smaller PDFs is 10 or more times the size of the original PDF! Is there an explanation for this? Is there some parameter I can set to reduce the size of the output files? I am running my program from my Windows 7 desktop which has Adobe Acrobat XI. Thanks for any help you can provide.

Where can I get the AFormAutLib.dll?

$
0
0

For filling form fields in a PDF document in the example from the SDK the ddl AFormAutLib.dll is needed. Where can I get this dll?

how do you make adobe X open the "combine pdf" window in the foreground?

$
0
0

How do you make "Acrobat X Pro" open the "combine pdf" window in the foreground?

 

I am using a "Windows 7" computer at work with "Acrobat X Pro" and I'm constantly combining

pdf's and tiff's in Acrobat.

It would be nice if when I select 30 or 40 files to combine, the

"Combine Supported Files in Acrobat" window would open in the

foreground, not behind the 10 or so windows already open.

I have been researching this for some time now with no solution.

If the answer is that "IT CAN'T BE DONE", then that's fine. At least

I will have an answer and can stop searching. If (as I suspect) it can

be done, then kindly supply me with "step by step" instructions.

 

 

Michael Jones

Plugin only loads in Debug Mode

$
0
0

Ahoi,

 

I am developing a little PlugIn With Acrobat X and Acrobat X SDK. The Problem I have is that Acrobat is only loading the PlugIn if it is compiled in Debug mode, not in Release mode. I am Using Visual Studio Express 2013 on Windows 7.

We need to programmatically convert PDFs into MS Word (Export Functionality of Acrobat Pro). What server side component we should buy? Please help

$
0
0

We need to programmatically convert PDFs into MS Word (Export Functionality of Acrobat Pro). What server side component we should buy? Please help

How to remove texts, lines, circles or some paths

$
0
0

Hi,

Need to be able to remove all texts from a pdf programmatically (CS).  Also, lines longer than and thicker than certain value, things like full circles, squares, or some paths that I do not need.

How can I do that? Or what to use?

Acrobat Pro, ThinApp, OLE and you!

$
0
0

I have an older version of acrobat pro (for the moment) 7.0 I'm attempting to use the OLE to call from microsoft word, and I'm getting that good old 429 error. My special circumstance: I have Acrobat 7 as a ThinApp, as I'm using a VM. Is there anyway I can point to the .dll in the ThinApp folder and get microsoft office to recognize Set Acroapp = CreateObject("AcroExch.App")? Or is there something else I need to do to be able to execute that code?


Remove all the hidden objects in PDF using acrobat SDK

$
0
0

Hi Friends

               How to remove all the hidden objects in PDF using acrobat sdk 11

AVCommand launch Alert window

$
0
0

Hello,

 

I have a problem with AVCommand "Make accessible".

I want to launch it programmatically, I generate the program, the inputs and the config:

 

ASCabPutInt(config, "UIPolicy", kAVCommandUISilent);

 

to start the command in 'silent mode'. I execute the command using AVCommandExecute

 

 

The problem is that sometimes the command execution opens an alert window with the massage "Some difficoult pages were encoutnered requiring all graphics on those pages to be labeled as figure". The Alert Window requires the 'OK' button to be pressed so this stop my 'batch' processing.

My question is:

 

- How can I avoid the generation of Alert message? I launch the alert in silent mode, I suppose this should avoid any kind of alert/interaction

- In my plugin I 've already disabled all AVAlert Window (already tested and verified). How this alert is shown? Maybe it is a different kind of Alert (AVAlertConfirm)

 

Thanks!

'AFORMAUTLib.Fields' failed due to the following error: No such interface supported

$
0
0

Hello,

 

I'm currently working on a PDF binder library for a project I'm working on (very new to working with adobe). Currently I'm receiving and error while attempting to create an instance of AFORMAUTLib.Fields.

 

'AFORMAUTLib.Fields'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{673E8452-7646-11D1-B90B-00A0C9259304}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

 

Currently installed Adobe products = Acrobat XI Pro & Reader XI (11.0.10)

 

Fails when trying to create the noted object at the bottom of the constructor.

 

 

 

   ///<summary>

 

   /// Public Constructor

 

   ///</summary>

 

   public PDFBinder(string TemplatePDF)

 

   Type AcroAppType = Type.GetTypeFromProgID("AcroExch.App");

 

   if (AcroAppType != null)

 

  __acroApp = (Acrobat.CAcroApp)Activator.CreateInstance(AcroAppType);

 

   else

 

   thrownewPDFBinderException(PDFBinderErrors.FailedToFindAcroExchApp);

 

   Type AvDocType = Type.GetTypeFromProgID("AcroExch.AVDoc");

 

   if (AvDocType != null)

 

  __acroDoc = (Acrobat.CAcroAVDoc)Activator.CreateInstance(AvDocType);

 

   else

 

   thrownewPDFBinderException(PDFBinderErrors.FailedToFindAcroExchAVDoc);

 

   if (!AcroDoc.Open(TemplatePDF, ""))

 

   thrownew PDFBinderException(PDFBinderErrors.FailedToOpenPDFTemplate);

 

   Type FieldsType = Type.GetTypeFromProgID("AFormAut.App");

 

   if (FieldsType != null)

 

  __acroFields = (AFORMAUTLib.Fields)Activator.CreateInstance(FieldsType);

 

   else

 

   thrownewPDFBinderException(PDFBinderErrors.FailedToFindAFORMAUTLibFields);

 

  }//End public PDFBinder(...

 

Does API Usage require full Acrobat on the server?

$
0
0

Hello,

 

I'm currently working on a project that will allow our (web based) product to set not only form fields in a PDF, but also alter the submit button action as well. I do have one question though. In order to make this work, does full adobe acrobat need to be installed on the web server, or is there some redistributable library that comes with it? If full acrobat needs to be on the server, is there any sort of licensing agreement that makes it a little easer to cope with cost wise? For instance some of our customers have as many as 6 web servers in a chain.

 

Thanks!

How to get session information in Acrobat javascript if I open the pdf in web browser?

$
0
0

How to get session information in Acrobat javascript if I open the pdf in web browser?

Viewing all 2571 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>