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

Is there a way to Update and SaveAs, an XFA form using VBA or similar ?

$
0
0

All:

Need help to auto-fill and auto-save PDFs using VBA or some other means.

 

I have created an XFA form using LiveCycle ES ( v8 ) with a few fields.

What I need to do is repeat these steps below for 200+ PDF forms

  1. Open the blank PDF form
  2. Update 3 fields
  3. Save the PDF with a new name

 

My Excel VBA code so far ( ** Copied from another post ) where dFile = "C:\temp.pdf" and dAccount = "Any Account"

 

Sub rxOpenPDF_UpdateFields(dFile, dAccount )

    Dim pdfApp As Acrobat.AcroApp, pdfPDDoc As Acrobat.AcroPDDoc, jso As Object

    Dim str1$, bolOpen As Boolean, strFile$

   

    Set pdfApp = CreateObject("AcroExch.App")

    Set pdfPDDoc = CreateObject("AcroExch.PDDoc")

    bolOpen = pdfPDDoc.Open(dFile)

 

    Set jso = pdfPDDoc.GetJSObject

    str1 = jso.getfield("Account_Name").Value ' Will appreciate if there is a way to set a field value

    pdfApp.Exit

    Set pdfApp = Nothing

    Set pdfPDDoc = nothing

    Set jso = Nothing

   

End Sub

 

Excel VBA is shutting down ( cannot recover ) when it runs the pdfPDDoc.Open statement

Any help will be very appreciated


Aubrey

 

I am on Windows XP,

In VBA, I have created Tool References to [Adobe Acrobat 9.0 Type Library]

Downloaded the Acrobat v9 SDK but am lost trying to locate any help for simple VBA.


How to automatically copy the selected lines

$
0
0

How to automatically copy and paste the manually selected lines in a pdf file to a text box using vb/c#.

Open a pdf via vba in existing acrobat window

$
0
0

Hi,

 

Part of my MSAccess 2007 management application manages document.

 

By clicking on a document record it would open it using either OLE or DDE depending on the adobe version installed (full or only reader).

 

I have an unsolved problem with the OLE code.

 

Opening documents with AVDOC.Open works fine but will always open a new instance (new window) of adobe acrobat even if adobe acrobat is already active and open without document.

 

Weird as if you click on a pdf in explorer for instance it would open it it the existing window.

 

If I try to open it using creating a new instance of AcroExch.AVDOC and AVDOC.OpenInWindowEx the avdoc is populated with the file as AVDOC.Gettitle returns the title and AVDOC.IsValid returns true but the document does not show up in the existing adobe acrobat window.

 

What am I missing ?

 

Reason why I want to implement it is as working with two screens I want to have the adobe document on the second screen while working with the application on one screen. By using AVDOC.Open I always need to drag the new opened window to the other screen although there is an instance (window) of adobe acrobat open on the desktop without documents in it (I test it as it is obviously a correct behavior if there would be an open document in it).

 

thks in advance for advise.

Andre

How [Insert|Add] Image into Opening PDF file with Acrobat SDK.

$
0
0

Hi Guys,

I'm trying to insert|add image file into opening PDF file with specified location (X|Y) and scale (Width|Hight) but got many of troubles

 

If use third party like iTextSharp or something else thing become simple but i want to use Acrobat SDK to do this

Any suggestion or idea?

 

Any help appreciated.

I purchased the monthly plan for Creative Cloud but I don't need it, I want to use Adobe Acrobat to store my books. What can I do to get more space on my Adobe Acrobat account?

$
0
0

It doesn't make much sense financially, to pay 34 dollars a month for 1GB of extra storage space. Please someone help me figure out what I need to buy/do. Thank you in advance.

pdPermEdit and pdPermEditNotes

$
0
0

Hi Guys,

 

I have been trying to use PDDocGetNewSecurityInfo() to determine if the document has the pdPermEdit and pdPermEditNotes flags.

No matter what the document, I am getting 4294967292 which I believe to be a little too high.

 

Not sure what I am doing wrong here, any suggestions?

 

ASUns32 secInfo = 0x00;
PDDocGetNewSecurityInfo(pdDoc, &secInfo);  // secInfo = 4294967292

How to convert a .docx to .pdf

$
0
0

hi I red all the previous topics about this thema, there is no solution to convert between docx and pdf?

 

currently I have Adobe Acrobat XI Professional 11 and using CSharp

 

thanks

how to execute a menu item by acquiring by its name ?

$
0
0

Hi,

 

I was trying to execute a menu item by acquiring it by name.

 

My code snippet is as follows:

 

menubar = AVAppGetMenubar ();

menuItem = AVMenubarAcquireMenuItemByName (menubar, "SquareMenuItem");

AVMenuItemExecute(menuItem);


I am having doubt in the name I am giving to acquire menu. Can any one help me to correct it out.


Thank you.

Saffiuddin Sheikh.


How to intercept hot keys i.e. ctrl+Z, ctrl+F, F8

$
0
0

Hi,

 

In my plugin, I am able to intercept other keys like F2 and other message like

WM_RBUTTONDBLCLK in my AVPageView window procedure. But I also want to intercept hot keys like ctrl+z, ctrl+F etc. But I am not getting message for these key in AVPageView window procedure. So any idea how we can itercept such keys ?

 

Regards,

Arvind

Transformation matrix Decomposition

$
0
0

I am trying to extact an image from PDF. we are using PDEElementGetMatrix() for retrieving the transformation matrix for the image. we are getting output in for of [a b c d e f]. How to decompose the matrix to find the scale factor, rotation angle, skew and translation ?

Adobe Reader - Adding Toolbar : hello world example

$
0
0

Hi everyone,

 

I would like to create a "Toolbar Button" for Adobe Reader which supports all version of it. 

After a long search for this over the web found some article suggesting that this can be done with either of 2 methods.

 

1. Acrobat Javascript.

2. Acrobat Plugins.

 

1. Acrobat Javascript:

     I am successful in creating a "ToolBar Button" in Adobe Reader with below script placed in "C:\Program Files\Adobe\Reader 10.0\Reader\Javascripts"

 

Script:

function helloWorld()

{

app.alert("Hello World");

}

 

app.addToolButton({

       cName: "helloWorldBtn",           // A name for your button

       cExec: "helloWorld()",               //Function to Call

       cLabel: "Hello World",               //The Text on the Button

       cTooltext: "Say Hello World",     //The Help Text

        cEnable: true

});

 

Problem with Javascript:

The only problem faced with Javascript implementing my scenario is "I coudn't call a ActiveX or DLL method from this Javascript".

I tried creating new ActiveXObject in the code but it thorws runtime error saying it ActiveXObject is a unrecognized key word.(The same "new ActiveXObject" works fine from normal Javascrirpt.

 

2. Acrobat Plugins.

I couldn't find a good "Helloworld" sample for building a sample toolbar over internet. I believe from Plugins it would be easier to call other DLL's method by adding a reference or over COM.

 

Could someone help me getting this done with a best simplest sample to do with. Please don't recommend me the SDK samples, I really don't understand anything out of it.

If we can create toolbar with C# or VB it would be so preferable for me.

 

Hope you got my problem. Thanks in advance.

Please revert me if any of my assumptions were wrong.

OCR in Acrobat

$
0
0

Hello,

  I need the capability of OCR pdf. Can I use Acrobat engine or any other DLL. What is the experience or suggestion?

 

Thanks,

 

Sow

Reader XI: Removing Tools|Sign|Comment from Menu and Toolbar

$
0
0

Has anyone been able to accomplish this? This is a rather annoying 'feature' of Reader XI

Compress Pdf in C# Need Code

$
0
0

Hello, I want to compress pdf... Can any one tell me how can i compress the pdf in c#  point me to some article. I have the License Copy of Adobe Professional.

 

I am using the Adobe Version X. so any one please assist me how can i compress the pdf.

 

Let me know guyz for additional information.

Acrobat XI PRO: Create a Table of Contents (TOC) automatically in top, after I have combined several pdf.files into a single pdf.file

$
0
0

Hey

I have now tried for hours, but now I give up!

 

MY WISH -

Create a Table of Contents (TOC) automatically after I have combined several pdf.files into a single pdf.file.

 

I have already bookmarks, shown on the screen (see screenshot below) but I want those bookmark to be visualised in a separate TOC in the top of the combined files.

This new TOC (which I have inserted) shall be printable and serve as a cover page in a binder.

 

I have seen other cheap pdf.programs in the market (e.g. PDF Converter Professional 7.3) which are able to make the above things, easy, fast and nice.

 

Regards

 

Ole Bünger, Kristianstad Sweden

 

 

TOC - Acrobat XI.JPG


What product we need on the server to pre-populate XFA form created using LiveCycle Designer?

$
0
0

We run our web applications on IBM Lotus Notes/Domino server (Version 8.5.3). I need to figure out what is that specific server component that we need to install on our server just to pre-populate data on to the XFA forms. (We don't need to merge PDF files, or attach any workflow, or submit data entered in the XFA forms to any web server.)

 

I understand that Adobe LiveCycle ES4 is a suite of products that does a lot more than what we need to do. So, in that suit of products which specific product is that we need to buy & install on our server that enables us to use java code to populate data on to the XFA forms. Also, will that server component work on IBM Lotus Notes/Domino server or is it only going to work on a J2EE server?

 

I appreciate a response. Thanks.

List of Acrobat tools internal names

$
0
0

Does anyone know where there is a current list of the tools for example "Hand" "Ink" for Acrobat XI? I have tried programmatically to retrieve these, first using the JavaScript app.listToolbarButtons but that doesn't work anymore and then enumerating the AVTools and using GetType() which should return an ASAtom, but this crashes on most of the tools. I need to be able to use AVAppSetActiveTool() to respond to tools on an interactive device that would be mapped to Acrobat tools.

Print pdf in Windows Command Problem

$
0
0

Hi All,

 

I would like to print pdfs in Windows Command. However, when I use following command to print pdfs, adobe reader cannot be closed automatically. Is there any method to close it?

 

Or any script can help me to check the adobe printing finish in Windows Command, then I kill adobe reader using command?

 

Command:

"C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" /s /o /h /t "C:\Test.pdf" "CutePDF Writer"

Error in loading adobe page- Give some remedy

$
0
0

hi friends i have been browsing adobe pages when i went to "software development kit" ( http://www.adobe.com/devnet/sdks.html ) it  gives an error message and i couldn't view that page. Could you give@ me some suggestions??

Set default name of document before save

$
0
0

I have created a "save as" button on a form.

 

When the user presses the button (e.g., mouse up) I want the save as dialog box to appear with a NEW programmatically defined file name to appear.  (NOT the existing file name).

 

The block comes because saveAs is a restricted method.

 

Any clues how to accomplish this seemingly simple task?

Viewing all 2571 articles
Browse latest View live


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