PDF form - load and save from/to XML

Hello

I am looking for a solution fill and read the value of the fields of a PDF form. I work with Microsoft Framework 2.0 and c# for a desktop application.

At the moment I use a FDF file to fill the fields PDF and iTextSharp to collated fields values once the PDF file is saved. But it does not work with some PDF that are bind to an XML data source. The idea is to drop the FDF solution and try to use XML instead.

So, I have a PDF form (myPdf.pdf) with fields bound to a source of XML (XSD schema file myPdf.xsd).

I have a data XML (myPdf.xml) file in the same directory as the PDF file.

With LiveCycle and JavaScript is it possible to:

  • Load the XML data file and fill out PDF when I open the PDF file?
  • Export the value of the fields in the XML file when you close or save the PDF file?

If not possible with LiveCycle and JavaScript, you know another solution?

I thought to put a button "Send by HTTP" and use a listener on localhost to get the data, but I need to listen on a particular port and it is unlikely that this port is already used by something else. I'm really not lucky in this case, but it could happen. And from the port are "hardcoded" in the PDF file I have no way to change it if necessary. Or I have not found how.

Thanks for your replies

Yes, you can start the xml (as the FDF) file and it will load th eform as well. To see what you need to do... .put a button on your form, and add the code:

xfa.host.exportData)

for the click event. Now make your form, fill it out and click on the button. It will ask for a file name (it will also be an extension of the XDP on the file). This is the file of XML (called as an xdp file). Open in editor xml and you will see at the bottom the reference to the model. Now if you run the xdp file it will open Acrobat and launch your form and merge the data into the form. Note that if the designer has been installed after Acrobat, then the XDP extension is on the designer (he thinks it is a native template file) and you will get an error. Make sure the xdp extension is registered in Acrobat.

For the record, you can programmatically click the button submit whether it is visible or not.

Paul

Tags: Adobe LiveCycle

Similar Questions

  • .pdf, download files and disappear from the screen in a second

    All .pdf files, download and disappear from the screen in a second (white screen), but can be saved on the HARD drive! MS IE doesn't have such a problem,
    problem with Firefox 7 & 8

    Try to install the latest version of Adobe Reader to see if it works instead of the plugin "Adobe Acrobat plugin Version 7.00 for Netscape" available to you.

  • Load and save data of the façade settings

    Can someone give me some examples of VI that ables user so save his choice front face? And tell me if it is possible to save values and strings of all the fields that have been filled by the user. I want to implent a settings 'LOAD' and 'SAVE', and I want these parameters can be read out of LabView, to facilitate the intereaction of the user.

    It would be wonderful if someone can support me in this.

    Thank you very much

    AMT

    Hello

    I have attached a very quick example and dirty.  But you should get the idea of how do

    Craig

  • Online PDF form will not save edited info

    I created a number of pdf forms active, editable in Adobe Acrobat, DC format for readers to edit users. Then, I loaded the on my Wordpress site for visitors to use. Visitors can change the form and print it out and then right to the browser. However they cannot save the form that they have edited (it will don't save a blank form). They are able to download the blank form, and then edit and save. However, I can't seem to make it work save the form that they have edited while it is in the browser. Help would be much appreciated!

    Hi shannonl88192485,

    I'm sorry this is not possible, you will need to download the PDF form, fill it out & then save it.

    Kind regards
    Nicos

  • Forms sank and flowing from one page to the other

    Good day all

    I have created a form and that will span 2 pages before it is filled. Basically I have a full page and 3 text boxes on the second page. All sub_forms are set to "cast" that there are a number of areas that are able to expand as needed.

    I created earlier forms that are one page long and when the form expands and goes to the second page, all right.

    I am running at the moment it is, when the first page of the form develops on the second page, the page breaks second to page 3,.

    Question: Is it possible that I can have the first page flow in the second page without the second original page, creating a 3rd page.

    I hope I explained this ok

    Thank you all

    Chomp

    If everything is cast, then the question is you have two pages defined in your design? If you do then that is your problem. In a completely past environment, you set the 1st page and all put on a page of the... .the product will force page like mandatory breaks when the form is planned on. To do this, in the view hierarchy drag objects on page 2 on the bottom of page 1, and then delete the empty page 2.

    Paul

  • Form send and save support

    Hello

    I recently upgraded to CS4 especially for Acrobat 9.  I was told when I upgraded I was able to send shapes that could be filled, saved and sent as PDF files.  So far I'm not find it's true and I hope that it's operator error.

    The form is created in LiveCycle Designer.  There is a button to send e-mail and a button "print" on the subject.  The needs of the user (sales representative) to fill out the form and send it to a sales associate.  Agents do not have acrobat reader.  The partners must receive a completed PDF by the representative (who also only Reader).  The XML file does not work - too many steps for novice users.  In addition, the representative must be able to save a copy of the completed form.

    The form will not (and can not) be placed on a Web site.

    How can I make this happen for users of Reader?  Yet once, I was told by Adobe when I was quoting the upgrade for my team it was possible.  Yet I continue to encounter obstacles.

    Help, please!

    Thank you.

    You add a button. Watch "to insert a submit button that incorporates a PDF" in the designer help.

  • PDF forms increasing in size from 10 to 100 x no reason apparent

    Hello.  I'm doing a series of forms in Acrobat Pro 11

    These are very basic documents, they contain a few lines of text and form fields.  Think of them as a form of standard fee as your W-2, that's how they are designed.  And they are all very similar to each other.

    Eventually most of these forms, in that I have created about 50-80KB file size, but some of them ended up being up to 6 MB in size, and I can't for the life of understand me why.  There is nothing else to their topic.  They are all optimized for displaying web pages, they use very minimal fonts (all the Arial Regular/bold/italic) and most are embedded subsets and there is no graphics in any of them.  If I register as a "small size pdf", it goes from about 5.8 MB to 5.2 MB.  I looked around optimization tips everything I could find.  6MB is not 'big' these days, but I don't see why some of them are 100 x larger than the others when they are almost identical in structure.

    Is there a way I can inspect the inner workings of these documents to know exactly who it is who takes so much space?

    It could very well be due to your use of Arial, assuming that you use in fact instead of Helvetica. Even if you specify Helvetica, Acrobat and Reader override a private version of Arial in any case, so what you do by specifying that arial adds unnecessarily space since the entire police is incorporated, sometimes several times. The problem is you can't go back and set the fields to use Helvetica and see the reduction in file size that you can imagine. This is due to what I consider to be a bug that I hope will be corrected. If you start with a fresh PDF, but you can copy fields abandoned to the new if you change first them to Helvetica. Or if you know how to hack into the PDF file, you can retrieve after you change the fields to Helvetica.

  • load and save a cluster

    I have a group of data that shows the tests failed.  At the beginning of the primary VI, I want to check if the file exists, otherwise create it, and if so, read it.  This file is going to be my cluster saved, indicating the tests that failed previously.

    I use datalog open/create/replace and will have a problem with the elements of the cluster always becomes zero.

    I also try to save the cluster in the file whenever a test fails.  This does not work either.

    Is datalog sub screw the the easiest thing to use here?  Can I use anything other than a cluster?

    Thank you

    In your backup vi, you must set the input operation to open/create/replace "replace or create.  The first time you write, the datalog is created and the data will be written.

    After setting the operation to create your vi Save, I was able to run it and it created a file datalog.  So I ran the vi with an entry error load so that he says historical data.  The data corresponding to what I wrote.  There is no problem with the functions of datalog.

    But there is a problem with your logic.  Why do you call an error if file exists?  When loading, you hope that the folder exists.  If your error cases are backward.  If the folder does not exist, why do you write zeros for the datalog?  Also, when writing new data to the datalog, you must define the operation to replace or nothing will happen and the new data will not be saved.

  • Load and save color chart in Muse

    Is there a way to save or load nuances in muse, otherwise it's going to happen in an update soon?

    Hello

    You can create charts muse and use it with on different pages.

    Adobe help Muse | Using the Swatches palette

    But if you try to import samples custom and kuler, the is not possible at the moment, you can vote for the feature here

    Adobe Kuler color chart for Muse

    Let me know if you have any question.

  • A lot of time to load and save

    I upgraded to first Pro CS5 a month ago and have had excellent results with several small projects.  But now, I'm working on a larger project (45 minutes) and the project takes a long time to load - 10 to 15 minutes - and even more to save - up to an hour.  Today, when registering, I received warning of insufficient memory in windows.  I changed optimize memory in edit - preference to 'memory' effect.  Here are some statements

    System

    Intel Core I5 650

    RAM 8 GB - 6.5 concert dedicated to Pr

    2 - discs hard 1 terabyte

    GForce GTX470 graphics card

    Windows 7 Home Premium

    computer dedicated to Premiere Pro

    Project

    For most of the HDV video

    Some DV videos

    ambient sound track

    narration track

    piece of music

    a few still images

    several titles

    Any help would be appreciated.  This is my first post on this forum.  I'm in the right place for this question?

    Thank you

    Don

    You have upgraded to 5.0.3? This sounds like the problem of bloating infamous project which was sent in 5.0.2 (or 5.0.3; can't remember).

    Go to help > about to check your current version (you want to see 5.0.3) and if not, go to help > updates and let all relevant updates be downloaded and installed. It is usually better to do after a fresh reboot of your system; run the Updater of the bridge can sometimes help prevent the bug "back to the trial" which is another fun thing if all goes well, you become aware of

  • Load and save predefined parameters

    Hello

    I'm building a PS extension which has a graphical interface with several sliders, steppers, digital, etc.. I put a ComboBox (sort of a "presets Picker"), which affects all elements of graphical interface at a time. All these values will be then be passed to a script of PS. My goal would be to implement a system of 'save new preset' - so I have to find a way to retrieve and store somewhere all the key/value pairs (they can be up to 10), giving them a unique name – one that will appear in the ComboBox and more pre-defined default parameters that are built in.

    Instead of a collection of ArrayCollection, I used an XML (via XMLList, XMLListCollection and HTTPService) to fill the ComboBox control and store all my presets to 5 by default - it is not clear to me how to put the new that users may want to save.

    Perhaps a system like the one shown in the MakeSideHeads, using preferences CSXS? At first view, to me it doesn't look like the right way, but chances are that I'm wrong.

    Any suggestion?

    Thanks in advance,

    Davide

    Here is the code of the ComboBox:

    Close = "closeComboPreset ()" dataProvider =""

    {PresetLabelList} "/ >

    Now you have all this. It has been tested so far in version CS4 the Panel and the CS5 beta tests.

    Happy holidays!

    Mitch

  • need help to load the image from a xml file

    (Based on the example of Chapter 10, ActionScript 3.0 for ADOBE FLASH CS4, IPC)
    By using the 'setSong' function, I shoot with success of the < artist > child of my xml data, no problem. But I also have to display the jpg file in the < image > node and I meet a lot of difficulties. I tried adding more variables to the setSong function, but am frustrated. Someone could shine a little light and point this beginner in the right direction?

    function setSongs (): void {}
    for (var i = 0; i < 4; i ++) {}
    var artistText:String = songList_XML.song [i + songCount] .artist;
    Customizer var = this ["song" + (i + 1)] .artist;
    clipArtist.text = artistText;
    }
    }

    myXML:

    <? XML version = "1.0" encoding = "utf-8"? >
    < songlist >
    song <>
    < image id = "1" > images/dummyFace1.jpg < / image >
    < artist > first guy < / artist >
    < album > Aliquam neque dui, sold at, egestas nec, egestas dignissim, tortor. < / album >
    < / song >

    song <>
    < image id = "2" > images/dummyFace2.jpg < / image >
    < artist > second person < / artist >
    ante < album > Nam. Metus had integer and lacus accumsan commodo. < / album >
    < / song >

    song <>
    < image id = "3" > images/dummyFace3.jpg < / image >
    < artist > third Fellow < / artist >
    < album > Cras non sem vitae massa pharetra sold. Integer outbound < / album >
    < / song >

    song <>
    < image id = "4" > images/dummyFace4.jpg < / image >
    Fourth individual < artist > < / artist >
    < album > surpassing ullamcorper quam and ipsum. Aenean sed lacus sit amet leo so restore. < / album >
    < / song >
    < / songlist >

    :

    function setSongs (): void {}
    for (var i = 0; i)< 4;="" i++)="">
    var artistText:String = songList_XML.song [i + songCount] .artist;
    Customizer var = this ["song" + (i + 1)] .artist;
    clipArtist.text = artistText;

    var ldr:Loader = new Loader();

    var urlR:URLRequest = new URLRequest (image songList_XML.song [i + songCount]);

    LDR. Load (urlR);

    LDR.x = Whatever (i);

    LDR.y = whateverelse (i);

    addChild (ldr);

    }
    }

    myXML:




    images/dummyFace1.jpg
    First guy
    Aliquam neque dui, sold at, egestas nec, egestas dignissim, tortor.


    images/dummyFace2.jpg
    Second person
    Nam ante. Metus had integer and lacus accumsan commodo.


    images/dummyFace3.jpg
    Third Member
    CRAs non sem vitae massa pharetra sold. Integer is.


    images/dummyFace4.jpg
    Fourth person
    Surpassing ullamcorper quam and ipsum. Aenean sed lacus sit amet leo so restore.

  • loading an image from a xml file

    I'm trying to load an image title "(1) .jpg ' file xml in a flash applet. I'm not an expert, but I think the code should work to store the name of the image, as I wrote it correctly in my xml document. Here is the code I use.

    In this code, the definition of the line "image = _root.floorplan;" is where he SHOULD get the information in the details.xml file. If I change the code to read "image =" (1) .jpg; "it loads very well."

    I am not to store the value of the node xml properly, or does not claim it correctly?

    I thought about it - I need to place the "image = _root.floorplan; ' in the case statement of the loadXML function.

    I have it!

  • Is it possible to set the "initial view" a PDF document when you save from Illustrator?

    Is it? (I have not Acrobat)

    Thanks if anyone can help.

    T

    No, it is defined by the user in the Acrobat preferences or by setting the initial view in Acrobat, but not to HAVE.

  • Missing Conref when I save and reopen a file .xml in FM9

    I am running on Windows 7 FM9. We use the model files and comes with FM9 rules and modify them to our needs. Currently, I have a problem and I don't quite know how to solve.

    I have two pieces of DITA content, they are the two reference files created using the DITA menu and create a new < reference > file. I entered my content structured in two files and I want to include a document source B conref in my document A. I have insert the conref in a document using the FM DITA menu and save the two .xml files. The files record without any error. When I open the document to the conref text is missing and all that remains is a reference point blank (created by the insertion of the conref). If I open the source document, all is well. I also have an xref in the document and which seems to work very well. My colleague is having exactly the same problem. I'm making reference to a reference with an unordered list element.

    Also, if I save A file as FM the conref remains which leads me to believe that this has something to do with how FrameMaker's reading of the .xml file.

    Any help would be appreciated,

    Laura

    Yes. By default, a conref is 'empty' (open the XML file in a text editor and take a look). Then ensure that the content of the conref should be included in the document, you must enable the option "auto-load". If xrefs are returned regardless of the setting, that looks like a bug to me.

    .. .Scott

Maybe you are looking for

  • BIOS (Block1) damaged - Satellite Pro 6000 - WinXP

    Hello I tried to update my BIOS from Version 1.3 to 1.6. During this process my child presses the power button. The result is: I am not able to boot the machine. It asks me for a disc of maintenance, because the BIOS (Block1) is damaged. I have no re

  • 802. 11a for Qosmio G20-126 wireless?

    I have read the product manual and the laptop seems to have at least documentation in favour after having been cleared for use on 802. 11A. My question is, is he a 5 GHz antenna, installed in the laptop and is it possible to change the map of Intel P

  • Re: Screen color configuration for Qosmio F50-108

    HelloCan you please tell me what color of screen configuration you use for toshiba Qosmio F50-108?Mine seems quite strange... Thank you

  • Recover data using eSATA

    HelloI have a hp pavilion dv5 1135ee death with an eSATA connector, can I get a cable and transfer the data from the laptop dead on a new use eSATA? Note: I read somewhere that I should use a hardware box, I bought 2 of them on ebay (sata and IDE) an

  • MFP M277DW: Size of the file too big for the scanned docs

    Hello I have the MFP M277DW using the driver scanner CLJM277. The files I'm scanning (black and white) are too big! 3 pages for 3 MB. How can I reduce the size but not the resolution Thanks in advance