Acrobat automation

I have an activeX adobe acrobat container, I am able to get the files to load in the pdf but when I invoke the print the window is not modal and is lost behind the labview caller.  Is there a way to prevent this?  Worse yet, the caller can be closed before the print window pops up since this appears to be a non-blocking call.  I need a way to allow the user to print an adobe pdf and block until canceled or printed.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA

I was not able to reproduce your issue where the print dialog displays below the VI.  I have attached a VI that waits for focus to return to the VI before continuing.  Another option is use the System Exec.vi to print.  This forum goes into a little more detail on that.
Brian R.
District Sales Manager
Washington DC
National Instruments
Attachments:
1051269.vi ‏21 KB

Similar Messages

  • Its just too much! Need Acrobat Automation. Any ideas?

    Hi
    I provide 9 co-branded pdf newsletters on a daily basis.
    The documents make use of the Multimedia tool (contain a video streamed from a URL) and also a very simple use of the form tool its basically used as an area to journal or type notes.
    The pdf is co-branded with the client getting a watermark type logo placed in the centre of the form area.
    I provide this completely free of charge and use it as advertising for my product.
    I am hoping to expand the number of co-branding clients to 20 this presents a BIG problem, it essentally means 180 individual pdf documents. Creating 9 documents takes me arounf 40 mins! God knows how long 180 would take!
    I desperately need a way to automate this. The information comes from a ppt document with the only change between the individual pdfs being the watermark logo
    I look forward to heaing from anyone that can help.
    Marx

    Hi,
    what do you want to automate.
    You have one pdf and want to produce 20 ore more only with different watermark settings?
    As far as I know here are some - at least - semiprofis in. It may help to clarify the task.
    Only to set different watermarks sounds simple to me.
    br, Reinhard

  • Acrobat Standard 7

    Can i flatten a pdf form with Acrobat Standard 7?

    Yes, but you will have to use the JavaScript console or add a menu option or toolbar button to call the script.
    Free Acrobat Automation Tools

  • Question regarding Acro Automation ( Acro Pro 9 ) using VBA

    I am using VBA from Excel  for Adobe Acrobat automation. I understand that there is a "Compare PDF"  item in Acro Professional under "Document" menu  to compare PDF files.Is it possible to direct me to some examples or documentation as to where we are using the compare PDF from a VBA automation perspective ?
    Thanks for your time and patience in this regard.

    Berne,
    Thanks for the reply.
    1. Can you please let me know what library needs to be installed for 
    accessing the plug-ins ?
    2. also please provide me a link if available for the documentation 
    related to plugin.
    3. If I am using the plug-in, is it necessary that still I need Adobe 
    Acrobat full version to make the code work or reader alone is 
    sufficient ?
    Thanks,
    Chandra

  • Combining 2 fill in form pdf's into one document

    I have created several fill in forms for my quality system in my business.
    I open an empty form as a template, fill it in with data, then save it under a unique file name. For example, form1.pdf would be filled in and then saved as completedform1.pdf, then refilled in with different data and saved as completedform2.pdf.  Each form contains the same fields but different, unique, data.
    I would like to take completedform1 and completedform2 and merge them together into one master file.  This file would be named, for example, as masterform1.pdf
    When I insert completedform1.pdf into masterform.pdf, everything works fine.  However, the problem occurs when I insert completedform2.pdf.  As soon as the second form inserts, all of the data in the fields of completedform2 switches to match that of completedform1.  I believe this is because the fields have the same names (obviously) and so Adobe thinks the data should match.  However, I do not want it to change, each form (once filled out) becomes it;s own unique document.  I would have thought doing a save as and giving it a unique name would take care of this, but apparently not.
    What do I have to do to "cement" the data on each form so that I can combine them yet maintain their individual data integrity?

    The 'flattening' `graffiti is refering to is the Acrobat JavaScirpt action and not the prepress flatten. This JavaScript method was added with version 7 of Acrobat and it will not work with any version of Reader.
    Converts all annotations in a page range to page contents. If a page range is not specified, all annotations in the document are converted.Note: 
    Great care must be used when using this method. All annotations—including form fields, comments, and links—on the specified range of pages are flattened. They may have appearances, but they will no longer be annotations.
    You can download a 'Flatten Pages' automation tool from Free Acrobat Automation Tools. You will have to read the included text file and JS file to learn about installing this code..
    You can add the following code to the downloaded code to add a new menu item under the 'Document' option:
    //</JSCodeSnippet>
    //<JSCodeSnippet name="AddMenuItem">
    // add menu item to docuemnt option gtk
    try{ app.addMenuItem({ cName: '*Flatten Pages',
    cUser: 'FlattenPages',
    cParent: 'Document',
    cExec: 'PDFScript_DoFlatten()',
    cEnable: 'event.rc = (event.target != null);',
    cMarked: 'event.rc = false'});
    //</JSCodeSnippet>
    } catch(e) {}
    //</JSCodeSnippet>

  • How to open, edit and compile the order import program.

    Order import program deletes the so_header_interface_all and so_lines_interface_all tables after importing, I want to avoid deleting the interface tables.
    Please ket me know in detail how to comment the delete statement in the order import program.
    I want to know how to open, edit and compile the order import program.
    Thanks,
    Previn

    While you can access the OLE objects in C#.NET, the JSObject was designed as a bridge to VB.NET. Since the real power of what you can do with Acrobat automation comes from the JSObject, it would be very difficult to do that you want from C#.NET - or you would at least be limited in what you can do beyond basic functionality.
    Also, a full version of Adobe Acrobat Standard or Professional would need to be installed on each client system. Reader will not work for what you want to do. Each end user running your application will require an installation of Acrobat.

  • Creating an automated silent install of Acrobat using InstallShield Tuner - Part 2

    Installing Acrobat Reader and Professional (example)
    Reader:
    Msiexec.exe /i "\\apps01\applications\acrobat\reader\6.0.1\Adobe Reader 6.0.1.msi" TRANSFORMS=\\apps01\applications\acrobat\reader\6.0.1\Acrobat_Reader_6.0.1.mst" /qn+
    Note: For the automated installs /qn+ should be replaced with the switch /qb which makes the install silent.
    The EULA licence agreement can also be set to accepted for all users by setting the following key in the registry:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\6.0\AdobeViewer]
    "EULA"=dword:00000001
    Writer:
    msiexec.exe /i "\\apps01\applications\acrobat\writer\6.0\AcroPro.msi" TRANSFORMS=\\apps01\applications\acrobat\writer\6.0\Acrobat_6.0_Pro.mst COMPANYNAME="xxxx" /qn+ (where xxxx is your companies name)
    Note: For the automated installs /qn+ should be replaced with the switch /qb which makes the install silent.
    The default spelling language can be set by changing the following registry keys (example below is for English-UK):
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\6.0\Spelling]
    "iDictionaryDefaultID"=dword:00000809
    "tDictionaryName"=hex:45,6e,67,6c,69,73,68,20,2d,20,55,4b,00
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\6.0\Spelling\cDictionaryOrderID]
    "i0"=dword:00000809
    Applying updates after Acrobat is installed
    Adobe does not support updating of administrative install points like Microsoft products. Each software update will need to be run after the original application has completed installation.
    "\\apps01\Acrobat\Writer\6.0\Patches\Adobe Acrobat 6.0.1 Professional update - multiple languages\Ac60PrP1.msp" REINSTALLMODE=omus REINSTALL=ALL /qb+
    Note: For the automated installs /qn+ should be replaced with the switch /qb which makes the install silent.
    ================================
    I hope this helps someone and lets hope the next patch/version addresses some of these problems.
    Ben

    Ok, I'm not the sharpest pencil in the box. I'm distributing Elements 6.0 from a server and having user go to Start, Run and typing \\servername\project folder name\setup.exe but keep getting the error "Incorrect command line parameters. I'm trying different variations in the command line field in Tuner such as: setup.exe /s /v/qn What am I missing?

  • Automation error - No document is currently open in the Acrobat Viewer

    Hello
    We have a Visual Basic application that we use for automating tasks in Acrobat on a batch of files. This application calls a folder level javascript to perform most of the tasks and is invoked via an application menu item (to get around some of the security restrictions). This application runs fine in Acrobat 7. Recently we upgraded to Acrobat 9 and the application doesn’t work any more. The error that is being generated is
            No document is currently open in the Acrobat Viewer
    I have isolated the problem down to the piece of code that accesses the fields object of the AFormAut.App object. We use the fields object for executing the JavaScript methods. The FormsAutomation sample application that comes with version 9 of the SDK generates the same exception. I have seen references to this problem on various forums but there can’t find a definitive answer.
    avDoc = CreateObject("AcroExch.AVDoc")
    Dim file As String = System.Windows.Forms.Application.StartupPath & "\..\..\..\..\TestFiles\FormsAutomation.pdf"
    bOK = avDoc.Open(file, "Forms Automation Demo")
    'If everything was OK opening the PDF, we now instantiate the Forms
    'Automation object.
    If (bOK) Then
                formApp = CreateObject("AFormAut.App")
                acroForm = formApp.Fields
    Else
                System.Runtime.InteropServices.Marshal.ReleaseComObject(avDoc)
                avDoc = Nothing
                MsgBox("Failed to open PDF Document. Aborting...")
                End
    End If
    To get around the problem I have to display the document that is currently being processed. This doesn’t seem correct as we don’t an acrobat window open when our application is processing a batch of files. Has this method of automation been removed from Acrobat 9 deliberately or is it a bug?
    BTW I am not sure if this is the corrent forum to post this question. If there is a more appropriate forum for this query can someone point me in the right direction.
    Any help would be greatly appreciated.
    Thanks
    Paul

    Yes. I have applied all patches up to 9.3

  • Preflight Droplet/Acrobat Startup Automation Problems

    Hello,
    We're experiencing some problems regarding preflight droplets not being executed for some instances when the Acrobat XI application
    (Acrobat Pro XI and Windows XP) is not yet opened before the preflight droplet is executed (Acrobat is started/opened due to the preflight droplet call but it doesn't execute the preflight droplet anymore).
    If Acrobat is not yet opened and we executed the droplet, Acrobat opens and loads but the preflight action is not executed (we waited for a long time thinking Acrobat is still warming up but nothing really happens), we tried executing preflight droplet again (with the opened faulty Acrobat) and still does nothing. We needed to close Acrobat and reopen manually before we execute the preflight droplet for it to work again. Note that we are executing the preflight droplet using the commandline using our program (java) and not using drag and drop. Seems Acrobat is still initializing so it wasn't able to queue the preflight process... Note though that this does not happen all the time.
    Can anyone from Adobe check if this is a known issue?
    Currently, the only resolution is to manually open Acrobat and open the preflight window and let it initialize and close the preflight window again and leave acrobat open before executing executing the droplet (which is a bit troublesome if we want to automate opening Acrobat when server is restarted or just turned on)
    Please advise if there is a fix for this? Or is there a way to initialize the preflight preferences on startup of Acrobat via commandline line or any other option.
    we can try to execute a script/bat file to start up Acrobat + initialize its preflight preferences before executing our program (though we're not sure if initializing the preflight preferences can be automated on startup of Acrobat).
    Thanks

    Hello,
    We're experiencing some problems regarding preflight droplets not being executed for some instances when the Acrobat XI application
    (Acrobat Pro XI and Windows XP) is not yet opened before the preflight droplet is executed (Acrobat is started/opened due to the preflight droplet call but it doesn't execute the preflight droplet anymore).
    If Acrobat is not yet opened and we executed the droplet, Acrobat opens and loads but the preflight action is not executed (we waited for a long time thinking Acrobat is still warming up but nothing really happens), we tried executing preflight droplet again (with the opened faulty Acrobat) and still does nothing. We needed to close Acrobat and reopen manually before we execute the preflight droplet for it to work again. Note that we are executing the preflight droplet using the commandline using our program (java) and not using drag and drop. Seems Acrobat is still initializing so it wasn't able to queue the preflight process... Note though that this does not happen all the time.
    Can anyone from Adobe check if this is a known issue?
    Currently, the only resolution is to manually open Acrobat and open the preflight window and let it initialize and close the preflight window again and leave acrobat open before executing executing the droplet (which is a bit troublesome if we want to automate opening Acrobat when server is restarted or just turned on)
    Please advise if there is a fix for this? Or is there a way to initialize the preflight preferences on startup of Acrobat via commandline line or any other option.
    we can try to execute a script/bat file to start up Acrobat + initialize its preflight preferences before executing our program (though we're not sure if initializing the preflight preferences can be automated on startup of Acrobat).
    Thanks

  • Acrobat Distiller Automation Interface Error

    As software developer I try to use the Adobe Acrobat Distiller Automation  Interface as described in the document "Acrobat Distiller
    API Reference",  "Windows Automation".
    Now I have found the problem, that if the same user is using the automation  interface at the same time, the second user fails with the following error: The  server threw an exception. (-2147417851).
    I have investigated myself into the problem I discovered that the same user  is sharing the acrodist.exe process. How can I now start
    an own process to  allow parallel execution?
    With two different users the problem does not occur.
    Thanks for your help
    Raphael Affolter

    That's what I have done. I have created an own Mutext to synchronize access to the Distiller Interface.
    But race conditions exists even with a Mutex on a fast machine because if one process is releasing and the other acquiring the Distiller interface at the same time, the second process may fail.
    The documentation says: Each user of the automation interface has its own Distiller instance. There is no sharing of a common Distiller.
    Therefore I have tested this and it works fine for different users (even if the EULA prohibits this).
    To solve the synchronization and race conditions, even for the same user an own instance should be started or the Distiller should serialize the requests itself (to avoid race condition).
    Thanks again
    Raphael Affolter

  • Why is there a Leftover SaveAsXML Dialogue in Acrobat on Save to Text via Automation?

    Have written a Visual Foxpro automation routine which creates a PDF from an existing PDF via using the AcroPDDOC object and then Saving it as a Text File via the Javascript object SaveAs routine
    Code similar to:
    oPDF = CREATEOBJECT("AcroExch.PDDOC")
    ...Some Insert Code
    oPDF.Save()
    oJS = oPDF.GetJSObject()
    oJS.SaveAs(<FileName>, "com.adobe.acrobat.plain-text")
    oPDF.Close()
    This routine works correctly.  The only caveat is that if Adobe Acrobat X (Windows 7 64 Bit) is running when this routine is run, a leftover SaveAsXML..progress dialog box in the state Checking Tagging is left running in Acrobat which is now frozen.
    Is this an Acrobat bug?

    Hi George
    I was trying to help the previous questioner.
    Your script is good and I saved it.
    However I think the form is corrupted and would not save the changes and function.
    The other person found a solution by doing a document level script and it will save and give the total, but you can retype the total and it will not recalculate unless you change one of the fields the total is derived from.
    Ron A

  • Create PDF document via Acrobat OLE/Automation?

    Hi,
    Is it possible to utilize the OLE/Automation feature of Acrobat Professional, instead of Acrobat SDK, to create a PDF document and add objects into it?
    Thanks

    OLE is a part of the SDK, not something different from it. 
    To use OLE you need the SDK as that is where it is documented.
    OLE is very limited but it can run Acrobat JavaScript. Even then, it probably won't do what you want. You can add form fields and annotations but not page content.

  • QTP Automation with Acrobat SDK

    Hi,
    I would like to verify the PDF content using HP Automation tool - QTP by opening the PDF and extracting the Text content from PDF.
    I am trying the OLE style and using a series of commands, as described in many postings. The first one is:
    CreateObject("AcroExch.App")
    It throws error, saying "Cannot create ActiveX component"
    From the Forums I found that it will not work with Adobe Reader and will work with Full Adobe Product with Adobe SDK.
    Now I would like to know which version of Acrobat will have Acrobat SDK.
    My Client already procured the below Acrobat Products.
    VLA ACROBAT 10  win universal English
    VLA ACROBAT 10 WIN Universal English STD to STD Upgrade ST-ST
    VLA ACROBAT Pro 10  win universal English
    VLA ACROBAT Pro 10 WIN Universal English STD to STD Upgrade ST-ST
    Pls let me know which product( which has Adobe SDK as well)  I should choose to proceed with QTP Automation.
    Any Advise/Help greatly appreciated.
    Thanks.
    Anand Muthunayagam.

    Check out http://labs.adobe.com/technologies/aptt/
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Fri, 28 Oct 2011 06:09:25 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: QTP Automation with Acrobat SDK
    QTP Automation with Acrobat SDK
    created by AnandMuthuNayagam<http://forums.adobe.com/people/AnandMuthuNayagam> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3995113#3995113

  • OLE Automation for Acrobat Reader

    Hello guys
    I have been reading some lines about OLE Automation for Acrobat READER and Full Acrobat.
    So far I have seen most saying that Reader is not fully compliant with OLE. I really have zero experience with Adobe and before I buy a full acrobat license, I want to make sure of the following:
    What I need to do is the next 4 simple calls:
    Connect to Acrobat
    Open a pdf file in invisible mode
    Perform "Select All"
    Copy Selection to clipboard
    After that, I will importclipboard to my datawindow and I will be done for my programming task.
    Have you had similar experiences about Acrobat OLE for PDF ?
    some references are in help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp
    Thanks so much in advance for any hint.
    Regards

    Hello again
    Chris, thanks so much for your very quick response.
    At a first glance, the PDF Toolkit looks good and with a good price too, but I did not see if I can call functionality from PowerBuilder code without opening a user interface. Are you familiar with this ?
    Stuart, very nice approach for my need, but I apologize for not explaining clearly what I want.
    I just want to process the content of some lines in the file to find specific strings.
    As you may see, if you open the file with Adobe Reader or Adobe Acrobat and go to the edit menu, by clicking "Select All" and "Copy" you will get the text ready for pasting.
    I want to automate this process to prevent the users from opening the Adobe application.
    I'm now testing with the functions provided by Adobe documentation to perform OLE Automation and ALMOST gave me what I need with the following code:
    Documentation is found in
    http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?&accessible=true 
    // Start Code
    boolean lb
    oleobject luo_app, luo_file
    luo_app = create oleobject
    luo_app.connecttonewobject('AcroExch.app')
    luo_file = create oleobject
    luo_file.connecttonewobject('AcroExch.AvDoc')
    luo_file.open('c:\some_file.pdf')
    // Next three lines are for visual debugging and confirming that file is opening well during testing of code :=)
    luo_file.show()
    luo_file.bringtofront()
    luo_file.setviewmode(1)
    // Next two lines return FALSE, meaning they did not execute because the words "Select All" (or "SelectAll") and "Copy" are not the right words linked to the
    // menu items
    lb = luo_app.menuitemexecute('Select All')    // Neither "SelectAll"
    lb = luo_app.menuitemexecute('Copy')
    // End of code
    Everything works fine except the two lines. The Adobe application is open and the file shown, but when calling "Select All" and "Copy" in the function menuitemexecute, Adobe does not interpret these phrases.
    Just to confirm that menuitemexecute has the right syntax, I tested a call for luo_app.menuitemexecute("find") and this command is well interpreted by Adobe, which immediately opens the find window at the right corner of the file
    I hope not to be too dense with this explanation ( but maybe I was )     :=)
    Thanks for your feedback

  • Acrobat X Schnellwerkzeug - Scannen - autom. Farbmoduserkennung einfügen

    Acrobat X in Schnellwerkzeug -> Scannen -> "autom. Farbmoduserkennung" einfügen
    Hallo, wie kann ich in Acrobat X, Windows 7 64bit, unter Erstellen / PDF von Scannen / autom. Farbmoduserkennung...
    genau dieses, die autom. Farbmoduserkennung zum Schnellwerkzeug als Button hinterlegen.
    Leider finde ich unter Schnellwerkzeugeinstellungen nur Erstellen, aber nicht die Punkte/Menüs darunter.
    Danke

    Ja diese Funktion gibt es nicht in der Schnellwerkzeugauswahl.
    Genau das ist das Problem.
    Da gibt es nur "Erstellen", aber das gibt es ja sowieso überall wie man hier im Bild sieht.
    Die häufigkeit an Klicks ist damit immer noch nicht auf 1 reduziert.
    Ich möchte aber gerne den Autom. Farbmoduserkennung als Button haben um mit einen Klick den Scanvorgang zu starten, statt immer dem Menü entlang zu gehen und dann den Scanvorgang zu starten.
    mfg

Maybe you are looking for