Batch JavaScript Fails to Save PDF from XDP

I generated hundreds of XDP files from a database query and need to merge them with a PDF template.  Using Acrobat Pro 8 interactively allows me to do this by opening the file and then saving it, but I need to do this for hundreds of files.
So, I created a batch script that would run on all files in a folder and it does run on the XDP file but the form data is not populated in the PDF.  Batch mode seems to be different than Interactive mode when dealing with xdp files.
Can I make this batch script merge the xdp form data into the PDFs?  Is there a different or better way to do this?
Thanks.
Peter
In addition to just letting the batch process save the files, I also tried to save from a JavaScript "command" in the batch process.
/* Save the document */
app.execMenuItem("save");

I tried that first (without the save), but the resulting PDF had no form data from the XDP.  That's when I added the save.
The merging seems to fail when run from batch, but it works fine when I open and then save the file in Acrobat Pro or Reader.
Is there a command in the batch processing that is necessary to move the data from the XDP to the resulting PDF?  Will the proper Save command do the trick?  [I left work early due to our snow so I can't try this myself.]
--Peter

Similar Messages

  • Can't save pdfs from web browser

    I recent;y had to reinstll adobe pro on a new computor (purchased here). Now I cannot save pdfs from my web browser. Very frustrating. Any help would be appreciated.

    What browser, and what happens?
    Are you trying to save PDF as PDF or create PDF?

  • How do I save PDF from email to iBooks

    How do I save PDF from email to iBooks like I do on iPhone.

    touch and hold the attachment in mail.  a box will open that says 'open in' and i books, along with any other apps you have that read pdf files will be offered.  select i books, or the one you want.  once it is associated with an app, it will be stored within the app.

  • Can't generate PDF from xdp and XML

    Hello,
    I'm new to livecycle and flashbuilder.
    I assigned as a task to send to a  livecycle server a xdp template and a XML file with the data in order to create the pdf.
    So far, I created a class with two methods that returns as a BLOB the strings of a xdp template and the XML data to populate the template.
    On the main application I'm calling the generatePDFOutput method from the OutputService and as far as I know I'm supposed to get a Blob which I can manipulate to save it as a PDF.
    What could be my error? or how should I approach this problem? I came here since I can't find some document that shows how to create pdf from a flex app using livecycle...
    I appreaciate your help.
    I attach below the code of the main class
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="initializeChannelSet();">
        <fx:Script>
            <![CDATA[
                import flash.sampler.Sample;
                import mx.messaging.ChannelSet;
                import mx.messaging.channels.AMFChannel;
                import mx.rpc.CallResponder;
                import mx.rpc.events.ResultEvent;
                import services.outputservice.OutputService;
                import valueObjects.BLOB;
                import valueObjects.OutputResult;
                import valueObjects.PDFOutputOptionsSpec;
                import valueObjects.RenderOptionsSpec;
                private var parentResourcePath:String="/";
                private var serverPort:String="192.168.3.46:8080";
                private function initializeChannelSet():void{
                    var cs:ChannelSet= new ChannelSet();
                    cs.addChannel(new AMFChannel("remoting-amf", "http://"+serverPort+"/remoting/messagebroker/amf"));
                    outputService.setCredentials("administrator","password");
                    outputService.channelSet=cs;
                protected function btn_clickHandler(event:MouseEvent):void
                var pdf:OutputService= new OutputService();
                var x:TestPDF= new TestPDF();
                var wsCall:CallResponder= new CallResponder();
                var out:PDFOutputOptionsSpec= new PDFOutputOptionsSpec();
                out.fileURI="D:\PDF_Output\test.pdf";
                var render:RenderOptionsSpec= new RenderOptionsSpec();
                wsCall.token=pdf.generatePDFOutput("PDF","Form.xdp","D:\\PDF_Output",out,render,TestPDF.D ata());
                var res:BLOB= wsCall.lastResult as BLOB;
                var result:ByteArray= new ByteArray();
                    result=res as ByteArray;
                var a:Number=2;
                protected function outputService_resultHandler(event:ResultEvent):void
                    // TODO Auto-generated method stub
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <mx:RemoteObject id="outputService" destination="OutputService" result="outputService_resultHandler(event);"/>
        </fx:Declarations>
        <s:Button id="btn" x="90" y="141" label="Button" click="btn_clickHandler(event)"/>
    </s:Application>

    build.xml file for Hibernate:
    <?xml version="1.0"?>
    <project name="Hibernate"
    default="schemaGenerator" basedir="C:\Hibernate">
    <property name="src.dir" value="src"/>
    <property name="classes.dir" value="classes"/>
    <property name="hibernate" value="hibernate-2.1"/>
    <property name="hibernate.mappings" value="mappings"/>
    <property name="jdbc" value="C:\oracle\product\10.1.0\Db_1\jdbc"/>
    <property name="hibernate.extensions" value="tools"/>
    <property name="hibernate.properties" value="properties"/>
    <path id="project.class.path">
    <pathelement location="${classes.dir}" />
    <fileset dir="${hibernate}">
    <include name="hibernate2.jar"/>
    </fileset>
    <fileset dir="${hibernate}/lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${hibernate.extensions}/lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${hibernate.extensions}">
    <include name="hibernate-tools.jar"/>
    </fileset>
    <fileset dir="${jdbc}/lib">
    <include name="classes12.jar"/>
    </fileset>
    </path>
    <target name="init"> <mkdir dir="${src.dir}"/>
    <mkdir dir="${classes.dir}"/>
    </target>
    <taskdef name="javaGen"
    classname="net.sf.hibernate.tool.hbm2java.Hbm2JavaTask"
    classpathref="project.class.path"/>
    <target name="javaGenerator" depends="init">
    <javaGen output="${src.dir}">
    <fileset dir="${hibernate.mappings}">
    <include name="Catalog.hbm.xml"/>
    </fileset>
    </javaGen>
    </target>
    <target name="compile" depends="javaGenerator">
    <javac srcdir="${src.dir}"
    destdir="${classes.dir}">
    <classpath refid="project.class.path"/></javac>
    </target>
    <taskdef name="schemaGen"
    classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"
    classpathref="project.class.path"/>
    <target name="schemaGenerator" depends="compile">
    <schemaGen properties="${hibernate.properties}/hibernate.properties" quiet="no">
    <fileset
    dir="${hibernate.mappings}">
    <include name="Catalog.hbm.xml"/>
    </fileset>
    </schemaGen>
    </target>
    </project>

  • Can't save pdf from a web site - HELP!

    I can't seem to save pdf files from a brokerage account.  I have Reader 9, and one one PC, there is no "save icon" on the tool bar, and no "wording tool bar" -ie, no headong of:  File - Edit - View, etc.  On the other , there is no edit portion of the tool bar.
    On the one PC that displays the picture of the floppy disc - the "save icon"-  when I click on it, nothing happens.  I think i have a problem with the security settings, but can't figure it out.  the financial advisor company can save it just fine, so i think the problem is in my PCs.
    There is a security section that says the contents of the pdf can be copied, butdoesn't work  not in the file copy mode.  (These are not "fill out the form" pdfs, just regular files posted to a web site to allow viewing, downloading, printing, etc.  i could print, but want to save electronically instead.
    Any ideas?

    I have also had this problem with some different web sites - you mention that possibly  it is a security issue so I added the web site I was having this problem with to my "Trusted Sites" list and re-tried saving the PDF and it worked!  Don't know if this will solve your problem, but it did work for me (still don't understand why some sites work and others require an entry in the "Trusted Sites" list.   I'm running Windows 7 (32 bit) and my Adobe version is 9.4.2 and I'm using Internet Explorer 8.  Hope this solution works for you.

  • Can't save PDFs from Safari or Firefox after latest (10.1.3) update

    I just installed the latest update, and now when I open a PDF in Safari, I can't save it to my computer. I get a message saying "The document XXX.pdf could not be exported as XXX." When I try to do it from Firefox, the PDF won't even open. I tried deleting the plugins and reinstalling Reader and that didn't help. Any ideas? Thanks!

    Hi mccradks1,
    Regarding firefox, update it to version 10.0 or later and use it in 32-bit mode only.
    To save pdf's in safari, please try using the save button in toolbar and see if it works.
    Toolbar is present in two different forms:
    1.
    2. This toolbar appears when you hover the mouse at bottom of pdf screen.
    Thanks,
    Nikhil

  • Cannot print or save pdf from Safari

    When I try to open a page in preview from Safari to save it to my document management program or print it from Preview, I get the error message "Error in printing".  Any thoughts?

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print or save PDF's displayed in Safari, you may be able to do so by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar should appear under the cursor. Click the printer or disk icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
              Safari ▹ Preferences... ▹ Security
    and check the box marked
              Allow Plug-ins
    Then click
              Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
              Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens by pressing command-V, then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others—I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

  • I'm unable to save PDFs from bank sites or print them. Only started recently.Is anyone else having this problem?

    I'm unable to save or print PDFs from bank sites. This only began recently. Is anyone else having same problem?

    Do you have Adobe Reader installed and its accompanying browser plug-in enabled?
    Clinton

  • Acrobat intermittently fails to print PDF from itself!

    This has happened multiple times today.  When printing a single page PDF from a multiple page Acrobat document the program has been hanging when it needs to ask for a file name.  Failure is intermettent and cannot be duplicated by happens often and requires a computer re-boot to fix.

    And if you are just using it to make a 1-page PDF...don't do it that way! Use Extract Pages or other techniques. Printing PDF to PDF is not recommended.

  • Why can't I save pdfs from web anymore?

    I noticed this recently, it didn't dawn on me at first, thought it was a particular web security, but even common sites I save from are no longer letting me.  There is no save icon, no menu, nothing. I am using Adobe 9 reader, with Firefox browser and Win XP. I can recall a fairly recent update from Adobe, it may be since then. Can anyone help?

    Hi and thanks for interest.
    Can't find a way to reply via the forum (must be me) so I hope this is successful to answer both suggestions:
    I had another look at the Firefox menu, and saw (maybe overlooked) the option of "save PAGE as". Decided to try that and it saves the pdf file (not just the page). I knew right-clicking had not worked, but tested all options again. No idea why or what changed, as used to have a save option on left or have the floating menu (rt click?). Anyhow - cracked it now - thankyou!
    Allusernamesgone
    [private data removed]

  • How to open and save PDF from web?

    I can't see how to open a PDF in adobe from safari

    This should help:
    http://forums.adobe.com/docs/DOC-2532

  • Save PDF from Illustrator CS3 with no bleed

    Hello,
    I was wondering if anyone knows how to save an Illustrator file to a pdf so that there is no margin or bleed. Basically, I want no white space to surround my content. Any ideas?
    TIA,
    Thomas

    >...how to save an Illustrator file to a pdf so that there is no margin or bleed.
    >...I want no white space to surround my content.
    Your second statement indicates you
    i do
    want bleed (artwork extends past trim size so that you have a borderless end-product).
    I'm going to assume the second statement more correctly represents what you want.
    Either...
    1. Adjust your artboard size so that your artwork extends beyond (or coincides exactly with*) the perimeter; or
    2. Draw a rectangle to your desired trim dimensions and use Object | Crop Area | Make.
    Then, save as PDF.
    {I based this on AI 12 (CS2), so details may differ.}
    *OK for screen PDF creation, but not recommended for press output. Bleed ensures your final piece is borderless even with slight trimming inaccuracy.

  • Can't save PDF from Internet Explorer embedded Adobe Reader

    One of our clients use an application to digitally distribute and
    approve incoming invoices.  The scanned invoices (PDF's) are
    visualised in the webbased application by using the embedded Adober Reader 9.0 in Internet Explorer 8.0.
    While there is no problem printing PDF's, on some pc's it is impossible to save a PDF.  When you click on the save icon, nothing happens.
    This issue has been resolved on some pc's by reinstalling Adobe Reader, but not on others.
    Does anyone know what causes this problem and how it can be resolved?
    Thanks in advance!
    Thomas

    Hi Guys,
    I have Win 7 64bit as well, and I have the same problem.
    A pain when you're doing research and opening lots of browser windows
    with PDFs in em.
    What I've found is that this is an Internet explorer issue.
    Everything works perfectly fine in Firefox.
    You can save, print, the works, with no problems.
    Looks like Microsoft have to do something with IE.
    Phil

  • Fail to create PDF from 2 templates with different page sizes

    Hi,<br /><br />I am having problems to create a PDF with multiple page sizes and using 2 templates.<br /><br />I have to create a PDF using two dynamic templates. The second template has multiple pages, some A4 some A3, which I select through subforms (A3 specific subforms are on an A3 page).<br /><br />So:<br />^job <mdf1> -zOut.pdf<br /><fields><br />^form <mdf2>.mdf<br />^page 2<br />^group G_heading_A3<br /><fields><br /><br />The templates on their own are ok, but when I combine them the second is always A4, even if a) the subforms are on A3 (heading_A3) and if b) the page is A3 (page 2).<br /><br />I couldn't find anything on the web nor in the documentation. Does anyone have a clue?<br /><br />Thanks, Edward

    The build booklet feature is for very basic booklets, not something like this.
    Sorry, but you’ll need to make everything full size and then do the cutting.
    Bob

  • Splwow64.exe fails to produce pdfs from Firefox

    Windows is 64-bit 7, Acrobat is version 9.4.4, Firefox is version 3.6.16.
    Everything worked fine until the most recent Microsoft and Adobe updates (done consecutively last week).
    There are no problems when running as administrator or when printing from other applications. A workaround is to use IE or to get Firefox to re-render with the IE engine before printing.
    A Microsoft forum question produced the advice to ask Mozilla, despite the fact that the problem did not arise as a result of a Mozilla change.

    From what I have been reading from other posts on this forum, the
    issue may be caused by the clear history settings. It was suppose
    to have been fixed in v30.
    Type '''about:preferences#privacy''' <Enter> in the address bar.
    The button next to '''History,''' select '''Use Custom Settings'''.
    At the bottom of the page, turn on '''Clear History When Firefox Closes.'''
    At the far right, press the '''Settings''' button. Turn on ONLY '''Cache''' and
    '''Form And Search History''' leaving the others off.
    This is not a cure but will make it easier if Firefox locks up in Windows.
    '''https://support.mozilla.org/questions/997866''' {web link}

Maybe you are looking for

  • Issues using new iPod Touch due to OS

    Hello all. I just got an iPod touch for my birthday, and upon attempting to use it, I was instructed to download and install the newest version of iTunes. No problem, except I cannot install the newest version of iTunes because it won't run with my c

  • How do I get an embedded video in Keynote on my ipad to play when i transfer it to a pc powerpoint

    Hi Everyone, I need help I have made a keynote presentation on my ipad with an embedded video in it.  I transfered it to a pc as a powerpoint and all the slides worked except the video it just was a black slide.  Can you transfer it so that it will w

  • ITunes STILL won't open on Windows...help please?

    So, I am pretty frustrated. I downloaded the lastest version of iTunes 7.2 a few days ago, and after installing it, I kept getting Symptom B as mentioned in the announcement above, "If iTunes 7.2 won't open or stay open on Windows..." posted by Roy B

  • MD04 not creating a PR for parts

    All, In MD04 i have aplanned order that is set to start on 5/27/11.  Not all of the parts are in stock for the BOM to be built for the planned order.  MRP runs in a batch file every night but it is not creating a PR for the some of the missing parts.

  • FM for List of Material Documents

    Hello, Is there an FM for getting the list of Material Documents (like MB51)? Thanks.