PDF Maker, PDF Filename as database field value

Hi everyone,
I am using Word 2010 and Adobe Acrobat X
When you are complete a mail merge and specifically the "Merge to Adobe PDF function" - is it possible to specify the filename for the resulting PDF as a value in the database?

Hi everyone,
I am using Word 2010 and Adobe Acrobat X
When you are complete a mail merge and specifically the "Merge to Adobe PDF function" - is it possible to specify the filename for the resulting PDF as a value in the database?

Similar Messages

  • Populating a PDF file with Database Field values - URGENT PLEASE REPLY

    I have a requirement where in I hae PDF files as templates. The data for these templates is the database.
    Example : a.pdf
    Name :
    Database table : name varchar(20)
    What I want to do is read this PDF template and populate the Name with the value in the table.
    Any Ideas on how to do this. Pointers/Source code would be appreciated. Hve been scrambling my head for quite a while without any luck

    not a portal question..
    u will need some pdf library / api - such as itext, etc

  • PDF Generation with database fields

    Hi!
    Well I have some questions and I was wondering if someone
    would be kind enough to answer. Here it goes.
    Scenario:
    The company that I work for is a non-profit educational
    institution. They wish to do a tax receipts project in which a
    student can log on to our website and get a tax receipt for all the
    courses they've take with us in the calendar year.
    The data for the student resides in a SQL Server 2000
    database table. The tax receipt has to be presented in a PDF
    format. We have a PDF template that we have to use. Essentially,
    the PDF template has to populated with values from the database.
    Technical Environment: CF7, SQL 2K, Win 2003 Server, IIS 6.
    Constraints: output has to be PDF format, can't upgrade to
    CF8
    Question 1:
    Can a PDF document be populated with values from a database
    in ColdFusion 7??
    Question 2:
    If so, o you know of a book/website in which this type of
    work is detailed (a how-to)?
    Question 3:
    If the answer is "no" to the above, is there a tool that can
    be used to accomplish this?
    Thank you in advance! :)
    Jolmes

    > Does anyone know if XPAAJ.jar is still available for CF7
    users?
    No, I do not. For forms, you could do something similar with
    iText. An older version of it is built into MX 7. Here is an
    adaptation of a simple java example from the iText site. Google for
    more examples.
    http://cfsearching.blogspot.com/2007/12/getting-started-with-itext-part-15.html

  • Name the PDF file with a field name

    Hi,
    I'm new to ES2 and Form creation in LiveCycle, my knowledge in scripts is very less or none i can say, if any one out there could help me out with this i'd be greateful.
    I have created a fillable PDF Form using LivecCycle ES2 and would like to know how to name the PDF file with a field value from the form when " save form " or " submit " button are clicked.
    Thanks in advance.
    Mithun.M.I

    You can save the form with name generated from a field's value, but therefore you will have to install a folder level script first and design a custom save button in your form.
    You cannot do this with the applications save or save as... buttons, and you also cannot rename a file on submit.
    Here's an example form and a folder level script. (Maybe to complicated fdr newbies)
    http://thelivecycle.blogspot.com/search/label/Save

  • To have a field value in FileName

    Hi All,
    I am doing an IDOC to XML File scenario.
    My requirement is to create multiple files at the target with the Filename having a field Value in it.
    In the mapping i will be using RFC calls which will return multiple records and if my RFC returns 3 records, i will need to create 3 Files at the target. which will have the filename taken from a value returned from the RFC.
    I tried using Dynamic configuration, since it uses PUT method i got the same name repeated again since it cannot be used for multiple targets.
    I tried using variable substitution also, since my target is an XML i will end up in creating an extra node if mapped and i need the filename having timestamp in a desired format.
    Could anyone help me in this.
    Waiting for your reply
    Regards,
    Sherin Jose P

    Hi,
    You can use the 1:n mapping here. Now depending on the number of records returned by RFC, you can create those many nodes.  In your case, what you could do, add a field in the target structure at the root level, set the file name in this field. Then in the file adapter, use an adapter module to set the file name in the dynamic configuration, and then delete this node from the XML in the same module. This should solve the purpose.
    Thanks and Regards,
    Sarath

  • Link metadata with database fields

    Can I - and how - link metadata fields (as they will appear in the PDF properties) with database fields?

    You'll need to read about Adobe Extensible Metadata Platform format (XMP). Start here:
    Adobe XMP in depth

  • Combing PDF forms with identical field names while retaining unique values.

    I have several PDF files of the same form that has been filled out by multiple users. I need to create a combined file of all the responses for reporting purposes. However, the forms (obviously) all have the same field names, and when I combine them the values of the first form autofill the values of the matched fields on the other forms. I need a way to combine the forms while retaining the unique field values. I thought I could write a js to rename the fields, but that isn't possible.
    *EDIT: The fields need to retain editability because some contain long, scrolling text. Flattening or read-only isn't an option, not that either fixes the above problem.
    Suggestions?

    UPDATE:
    I solved this problem, at least for my own needs. Following try67's advice in a related post, I had to delete the existing fields and create new ones with new names. Given my desired outcome, this meant collecting all of the field properties of the fields (with some variation by field type), storing it, erasing the existing fields, and using that stored information to create new, identical fields (again with some variation by field type). Since I didn't want to retain actions or javascript, this was a perfect solution. I also no longer needed the buttons to function (since I wasn't retaining their javascript), so I made them read-only. I'm listing my working code below, in case anyone else could benefit from some or all of it.
    My question to the community is this: Why doesn't Adobe allow for fields to be renamed via javascript? Is it a security issue? My life would have been a lot easier the last few days if I could simply rename existing fields.
    The following script is used in a Combine Files action via the Action Wizard. The PDF optimizer is also used to strip out or flatten additional items.
    //This script is used to rename all the fields in a document while also removing any javascript or actions associated with those fields. Makes buttons read only without renaming.
    //Function to create a random alphanumeric ID.
    function makeid(n) {
        var text = "";
        var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
        for( var i=1; i <=n; i++ )
            text += possible.charAt(Math.floor(Math.random() * possible.length));
        return text;
    //List variables for collecting arrays of field properties.
    var fieldNum = this.numFields;
    var fieldNameArray = new Array();
    var fieldTypeArray = new Array();
    var pageNumArray = new Array();
    var fieldRectArray = new Array();
    var fieldValueArray = new Array();
    var borderStyleArray = new Array();
    var borderColorArray = new Array();
    var borderThicknessArray = new Array();
    var fillColorArray = new Array();
    var textColorArray = new Array();
    var textFontArray = new Array();
    var textSizeArray = new Array();
    var textAlignmentArray = new Array();
    var textMultilineArray = new Array();
    var checkmarkStyleArray = new Array();
    var radiowidgetNumArray = new Array();
    var radiowidgetRectArray = new Array();
    var radiowidgetPageNumArray = new Array();
    //Get the properties of all the current fields, including widgets.
    for (var i = 0; i < fieldNum; i++) {
        var currentField = this.getNthFieldName(i);
        fieldNameArray[i] = makeid(5);
        fieldTypeArray[i] = this.getField(currentField).type;
        borderStyleArray[i] = this.getField(currentField).borderStyle;
        borderColorArray[i] = this.getField(currentField).strokeColor;
        borderThicknessArray[i] = this.getField(currentField).lineWidth;
        fillColorArray[i] = this.getField(currentField).fillColor;
        textColorArray[i] = this.getField(currentField).textColor;
        textFontArray[i] = this.getField(currentField).textFont;
        textSizeArray[i] = this.getField(currentField).textSize  
        if (this.getField(currentField).type == "text") {
            fieldRectArray[i] = this.getField(currentField).rect;
            pageNumArray[i] = this.getField(currentField).page;
            fieldValueArray[i] = this.getField(currentField).value;
            textAlignmentArray[i] = this.getField(currentField).alignment;
            textMultilineArray[i] = this.getField(currentField).multiline;
        if (this.getField(currentField).type == "checkbox") {
            fieldRectArray[i] = this.getField(currentField).rect;
            pageNumArray[i] = this.getField(currentField).page;
            fieldValueArray[i] = this.getField(currentField).value;
            checkmarkStyleArray[i] = this.getField(currentField).style;
        if (this.getField(currentField).type == "radiobutton") {
            checkmarkStyleArray[i] = this.getField(currentField).style;
            fieldValueArray[i] = this.getField(currentField).value;
            var n = 0;
            while (this.getField(currentField + "." + n) != null) {
                radiowidgetNumArray[n] = this.getField(currentField + "." + n).name;
                n++;
            for (x = 0; x < radiowidgetNumArray.length; x++) {
                radiowidgetRectArray[x] = this.getField(radiowidgetNumArray[x]).rect;
                radiowidgetPageNumArray[x] = this.getField(radiowidgetNumArray[x]).page;
    //Delete all the current fields, except for buttons, which become read-only.
    for (var i = (fieldNum - 1); i > -1; i--) {
        var currentField = this.getNthFieldName(i);
        if (this.getField(currentField).type != "button") {
            this.removeField(currentField);
        } else {
            this.getField(currentField).readonly = true;
    //Using the stored arrays of field properties, generate new, identical fields.
    for (var i = 0; i < fieldNum; i++) {
        if (fieldTypeArray[i] == "text") {
            var newField = this.addField(fieldNameArray[i], fieldTypeArray[i], pageNumArray[i], fieldRectArray[i]);
            newField.value = fieldValueArray[i];
            newField.borderStyle = borderStyleArray[i];
            newField.strokeColor = borderColorArray[i];
            newField.lineWidth = borderThicknessArray[i];
            newField.fillColor = fillColorArray[i];
            newField.textColor = textColorArray[i];
            newField.textFont = textFontArray[i];
            newField.textSize = textSizeArray[i];
            newField.alignment = textAlignmentArray[i];
            newField.multiline = textMultilineArray[i];
            newField.doNotSpellCheck = true;
        if (fieldTypeArray[i] == "checkbox") {
            var newField = this.addField(fieldNameArray[i], fieldTypeArray[i], pageNumArray[i], fieldRectArray[i]); 
            newField.value = fieldValueArray[i];
            newField.borderStyle = borderStyleArray[i];
            newField.strokeColor = borderColorArray[i];
            newField.lineWidth = borderThicknessArray[i];
            newField.fillColor = fillColorArray[i];
            newField.textColor = textColorArray[i];
            newField.textFont = textFontArray[i];
            newField.textSize = textSizeArray[i];
            newField.style = checkmarkStyleArray[i];
            newField.readonly = true;
        if (fieldTypeArray[i] == "radiobutton") {
            for (y = 0; y < radiowidgetNumArray.length; y++) {
                var newField = this.addField(fieldNameArray[i], fieldTypeArray[i], radiowidgetPageNumArray[y], radiowidgetRectArray[y]);
                newField.value = fieldValueArray[i];
                newField.borderStyle = borderStyleArray[i];
                newField.strokeColor = borderColorArray[i];
                newField.lineWidth = borderThicknessArray[i];
                newField.fillColor = fillColorArray[i];
                newField.textColor = textColorArray[i];
                newField.textFont = textFontArray[i];
                newField.textSize = textSizeArray[i];
                newField.style = checkmarkStyleArray[i];
                newField.readonly = true;           
    //End script.

  • Field value not working as "Can grow" when exported in PDF

    Hi, I have a unique problem. We have a report which is using a sub-report. When we run that report in Crystal report and preview then it looks fine. This subreport is designated as "can  grow" so if the field length is bigger than the size then it is coming in the second row. Everything works fine except when we export this report in PDF.
    When we export in PDF then this field is not working as "Can grow" and remaining value of the fields is  truncated. This is happening both in XI and 2008 version of Crystal client.
    Thanks,

    Hi, This is declared as bug by Business Objects Support and Product team will decide if they want to include fix in next release (or fix). This is not possible before Dec 2009 or Early 2010. 
    Below are the general steps on how to apply the suggested workaround:
    1. Remove the on-demand subreport caption, and add an empty string to it instead.
    1.1 In the u201CDesignu201D view of the report, right click on the subreport and select u201CFormat Subreportu2026u201D
    1.2 In u201CFormat Editoru201D window, under the tab u201CSubreportu201D, click on the u201CX-2u201D button of the option u201COn-Demand Subreport Captionu201D
    1.3 In the u201CFormula Workshopu201D window, highlight the text in the formula, and cut it. ( Ctrl-X)
    ( We are just copying the text, as we need to use the samething for the formula or text object we will use to replace this. )
    1.4 Type the following in the formula: u201Cu201D
    1.5 Click on the button u201CSave and closeu201D, to close the u201CFormula Workshopu201D
    1.6 Back to the u201CFormat Editoru201D window, click on the u201COKu201D button to accept the change.
    2. Create a formula or insert a text object in which you add the text or fields you will like to display
    ( In the following steps we will be using a formula )
    2.1 In the u201CField Exploreru201D, right click on u201CFormula Fieldsu201D and select u201CNewu201D
    2.2 In the u201CFormula Nameu201D window, type the name of the formula. ( Example: My subreport caption )
    2.3 In the u201CFormula Workshopu201D, copy the text you cut in step 1.3, or simply add the database fields and text you will like to display for your on-demand subreport caption.
    2.4 Save and close the formula by clicking on the u201CSave and closeu201D button
    3. Insert the formula over the on-demand subreport, and resize the field to be of the desired length.
    4. Format the formula to display like a hyperlink. ( Blue font and underlined text )
    4.1 Right click on the formula inserted in step 3, and select u201CFormat Fieldu2026u201D
    4.2 In the u201CFormat Editoru201D, under the tab u201CFontu201D, set the color to blue
    4.3 Still under the tab u201CFontu201D, check the u201CEffectsu201D option u201CUnderlineu201D
    4.4 Under the tab u201CCommonu201D, check the option u201CCan Growu201D
    4.5 Click on the u201COKu201D button to accept the change
    5. Move the formula to the back in order to ensure you can drill-down on the on-demand subreport
    5.1 Right click on the formula inserted above the on-demand subreport and select u201CMove u2013 To Backu201D
    Now, when exporting the report to PDF format, the formula used to replace the u201Con-demand subreport captionu201D that displays more than one line will all be exported.
    This workaround has following limitations:
    The User can see the service description in two lines because of the u2018Text Objectu2019, the On demand subreport is not growing into the second line in the crystal report since we removed the caption.
    So the user has to carefully click on the first line of the description in the main report to open the subreport. If he clicks on the second line then it wonu2019t open the required subreport and it may create confusion.
    If we manually stretch out the subreport to occupy two lines space then it will leave a gap in between when we have only 1 line service description.
    So plan ahead of time about how lengthy text in su-report would be.

  • Dynamically bind website text field values to PDF document

    Hi there,
    I am in search of a step by step tutorial on how to generate a pdf document based on values from website text fields.
    I have a form produced in Live Cycle Designer ES3 and a website in which we insert test results for our company to a MySql database.
    My thoughts was that when we have inserted values on the website we could have a link to the pdf document and the same values would
    somehow magically appear on the pdf. Have read somewhere that this can be done with XML and the use of different 3rd party programs.
    Is this possible?
    What approach would be the easiest? Perhaps someone knows about a tutorial on the matter?
    Data is stored from PHP website to MySql database. Website produced in Dreamweaver CS5
    Thanks in advance for any tips/help!
    Regards,
    Christian

    It's possible with an XFA form as well as an AcroForm, but to do the work on a server additional software is needed as you mentioned. Adobe's offering is in their LiveCycle lineup and possibly . Others from third-parties include FDFMerge, PDFlib, iText, Debenu Quick PDF Library, and others. The idea is you merge the data with the PDF on the server and serve it up or save it on the server and provide a link on the HTML page that's returned. Documentation for these libraries will include samples, but you'll also have to learn how to do this securely if that's important for the system you're putting together.

  • Adobe Acrobat as a server to create PDF using PDF templates and field values

    I'm writing a web page to create a PDF using fields that we ask for them in the screen.
    My idea is:
    1. Ask for field values (text values and a photo) in my web
    2. Run Adobe Acrobat to load a PDF template (PDF form) and mix with the field values
    3. Create a final PDF mixing values and template
    4. Show to document to the user in his client web browser. I guess the only way to do that is to create the PDF on a server with Adobe Acrobat Pro and send to the user browser a JPEG that will represent the  PDF: If I do this operation in the PDF visor at the client browser, the problem is that it will will be mandatory to install Adobe Acrobat in each cliente because only this visor can manage javascript.
    Can you tell me if this idea is correct? It is possible to use Adobe Acrobat on a Server to create PDF when some proccess needs?

    and what other Adobe product o procedure can we use to do that?
    I only need to create a PDF mixing PDF Templete, field values and javascript.
    Thanks for your help.

  • Printing field values to a PDF using a template

    Hi
    I have a set of field values stored in variables, I need to print these fields into a
    PDF file. There is a template for this PDF , and each field value should go to a
    specific location wrt the template on the new PDF. Could you any one
    recommend a 3rd party API that can be used to do this purpose.

    I used iText (http://www.lowagie.com/iText/) to do
    this.
    I created the template as a PDF and used AcroForms to
    create named fields within specific formatting within
    the PDF.
    // Create a BAOS into which to write the
    PDF.
    ByteArrayOutputStream baos = new
    ByteArrayOutputStream();
    // Load the PDF template and open the form fields.
    InputStream inputStream = new FileInputStream(
    "template.pdf" );
    PdfReader reader = new PdfReader(  inputStream
    PdfStamper stamp = new PdfStamper(reader,
    baos);
    AcroFields form = stamp.getAcroFields();
    o set the text in a field:
         form.setField("field_name", "field value");
         // close the PDF and return the bytestream
         stamp.close();
         return baos;
    It looks like that you are loading a PDF template from a file, and straight
    away attempting to fill the form by using the name of the field. To do this shouldn�t the
    template PDF be formatted in a specific way to access the specific
    location of the template where the field is.
    Can you tell me if the template PDF file should be formatted in a specific way
    to do this using iText. I was thinking of calculating the offsets of each field
    and just print the data at that location.
    And I very much appreciate your help so far.

  • Dynamic PDF field value doesn't display XFDF value when no keyboard focus

    I created a simple PDF (test.pdf) file (one text field), and saved it as a "static PDF". I created a XFDF file, and when I double-click on the XFDF file, the sample PDF opens and the field is populated.
    Here's the problem: I save test.pdf as a "dynamic pdf" file. I double-click on the xfdf file and the pdf opens up, but the data is not displayed in the field. If you click on the field, the text appears. If you click out of the field, it disappears. If you update the field value, and navigate away, the value stays.
    There is nothing but the field on the page, no scripts, no subforms, nothing.
    Is this a bug in Adobe Reader 7.0? or is there some weird setting in Live Cycle Designer that I'm missing?
    Thanks

    What is your xfdf file look like? Something like:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br />     <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"><br />          <f href="file:///C|/test3.pdf" /><br />     <fields><br />          <field name="firstName"><br />               <value>William</value><br />          </field><br />          <field name="lastName"><br />               <value>White</value><br />          </field><br />     </fields><br /></xfdf>

  • How to save pdf file in database

    Dear All,
    my application is forms 6i and database is 8i,requirement is that how to save pdf file in database and users can view through forms

    I'll apologize up front for the length of this post. I have a few database procedures I created that write a file to a BLOB column in a table as well as retrieve the BLOB from the column after it stored there. I have successfully stored many different types of binary file to the database using these procedures - including PDF files. I have not used these procedures in a Form so I can confirm that they will work, but theoretically they should work. I'm including the code for each procedure in this posting - hence the apology for the long post! :-)
    Also, since these procedures reside on the database you will need to use Forms TEXT_IO built-in package to write your file to the server before you can use these procedures to store and retrieve the file from the database.
    These procedures reads and writes a binary file to a table called "LOB_TABLE." You will need to modify the procedure to write to your table.
    -- Author :  Craig J. Butts (CJB)
    -- Name   :  load_file_to_blob.sql
    --        :  This procedure uses an Oracle Directory called "IN_FILE_LOC".  If you
    --           already have a directory defined in the database or would prefer to use
    --           a different Directory name, make sure you modify line 21 to reflect the
    --           new Directory name.
    -- ==================================================================================
    -- History
    -- DATE        WHO         DESCRIPTION
    -- 12/11/07    CJB         Created.
    CREATE OR REPLACE PROCEDURE load_file_to_blob (p_filename IN VARCHAR2) IS
       out_blob    BLOB;
       in_file     BFILE;
       blob_length INTEGER;
       vErrMsg     VARCHAR2(2000);
    BEGIN
       -- set the in_file
       in_file := BFILENAME('IN_FILE_LOC',p_filename);
       -- Get the size of the file
       dbms_lob.fileopen(in_file, dbms_lob.file_readonly);
       blob_length := dbms_lob.getlength(in_file);
       dbms_lob.fileclose(in_file);
       -- Insert a new Record into the tabel containing the
       -- filename specified in P_FILENAME and a LOB_LOCATOR.
       -- Return the LOB_LOCATOR and assign it to out_blob.
       INSERT INTO lob_table (filename, blobdata)
          VALUES (p_filename, EMPTY_BLOB())
          RETURNING blobdata INTO out_blob;
       -- Load the file into the database as a blob.
       dbms_lob.open(in_file, dbms_lob.lob_readonly);
       dbms_lob.open(out_blob, dbms_lob.lob_readwrite);
       dbms_lob.loadfromfile(out_blob, in_file, blob_length);
       -- Close handles to blob and file
       dbms_lob.close(out_blob);
       dbms_lob.close(in_file);
       commit;
       -- Confirm insert by querying the database
       -- for Lob Length information and output results
       blob_length := 0;
       BEGIN
          SELECT dbms_lob.getlength(blobdata) into blob_length
            FROM lob_table
           WHERE filename = p_filename;
       EXCEPTION WHEN OTHERS THEN
          vErrMsg := 'No data Found';
       END;
       vErrMsg := 'Successfully inserted BLOB '''||p_filename||''' of size '||blob_length||' bytes.';
       dbms_output.put_line(vErrMsg);
    END;
    -- Author   :  Craig J. Butts (CJB)
    -- Name     :  write_blob_to_file.sql
    -- Descrip  :  This procedure takes a BLOB object from a database table and writes it
    --             to the file system
    -- ==================================================================================
    -- History
    -- DATE        WHO         DESCRIPTION
    -- 12/11/07    CJB         Created.
    CREATE OR REPLACE PROCEDURE write_blob_to_file ( p_filename IN VARCHAR2 ) IS
       v_blob      BLOB;
       blob_length INTEGER;
       out_file    UTL_FILE.FILE_TYPE;
       v_buffer    RAW(32767);
       chunk_size  BINARY_INTEGER := 32767;
       blob_position INTEGER := 1;
       vErrMsg     VARCHAR2(2000);
    BEGIN
       -- Retrieve the BLOB for reading
       BEGIN
          SELECT blobdata
            INTO v_blob
            FROM lob_table
           WHERE filename = p_filename;
       EXCEPTION WHEN OTHERS THEN
          vErrMsg := 'No data found';
       END;
       -- Retrieve the SIZE of the BLOB
       blob_length := DBMS_LOB.GETLENGTH(v_blob);
       -- Open a handle to the location where you are going to write the blob
       -- Note:  The 'WB' parameter means "Write in Byte Mode" and is only
       --          available in the UTL_FILE pkg with Oracle 10g or later.
       --        USE 'W' instead for pre Oracle 10q databases.
       out_file := UTL_FILE.FOPEN('OUT_FILE_LOC',p_filename, 'wb', chunk_size);
       -- Write the BLOB to the file in chunks
       WHILE blob_position <= blob_length LOOP
          IF ( ( blob_position + chunk_size - 1 ) > blob_length ) THEN
             chunk_size := blob_length - blob_position + 1;
          END IF;
          dbms_lob.read(v_blob, chunk_size, blob_position, v_buffer );
          UTL_FILE.put_raw ( out_file, v_buffer, TRUE);
          blob_position := blob_position + chunk_size;     
       END LOOP;  
    END;Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • 6i PDF filename while saving

    Hi all,
    I have report6i and we are generating reports in PDF format.
    While saving the PDF file name contains url, how
    to format PDF filename?
    Please help urgently.
    thanks

    Hi,
    When you use destype=CACHE, the desname is disregarded. The reason is that the PDF file name does not matter when it is opened in the browser. It only makes sense for users to specify the filename when you are "saving" the file. So that is why desname value is taken when you use destype=FILE.
    If you want the PDF to first appear in the browser, and then you want to save it with a particular name, just choose File > Save As from the browser or from the PDF toolbar.
    While saving the PDF file name contains urlI guess you just need to manually overwrite this with the file name you want.
    Navneet.

  • Populate Livecycle PDF from mySQL database using PHP

    I'm trying to set up a database of loan agreements, where users will submit a form through Acrobat and their information will be stored in a mySQL database. Later, they can go back and download the PDF, which will be repopulated with their data in the mySQL db.
    I made the form in Livecycle Designer and submit the information through HTTP POST. I can easily get the information from the form into the database...my only problem is getting that information back out into the PDF.
    What would allow me to write back to the PDF, preferably using PHP? What kind of syntax would that require?
    Thanks!

    I have a vital form that clients fill out, which is passed to many people in the company along the workflow. The form is a Planner and we have in the following PDF, Word Doc..
    Well before, the Planner.pdf was originally created in Word, since most people have access to Word.. but evolved to a PDF form created from the Word Doc via Adobe LiveCycle Designer 8.0 w/ User Rights enabled so that the form could be filled out and saved using Adobe Reader.. which was a step better than Word.. being that it is free. But this needed to be easier and more to the point b/c some clients don't particularly like installing the latest version of Reader, even if you provide them the link. Nor do they like saving the form, filling the form, and attaching the form to send back.
    My goal is to have the client fill an HTML version of the form, submit and be done with it, but everyone in the workflow be able to easily receive the filled Planner as a PDF form.
    So some months ago I ran into this post Chris Trip, "Populate Livecycle PDF from mySQL database using PHP" #8, 22 Sep 2007 4:37 pm
    which uses the command line Win32 pdftk.exe to merge an FDF file into an existing PDF on the remote server, and serve this to whoever.
    My problem was with shared hosting and having the ability to use the Win32 pdftk.exe along with PHP which is predominantly used on Linux boxes. And we used a Linux box.
    so i created the following unorthodox method, which a client fills the HTML version of the Planner, all field values are INSERTED into a table in MySQL DB, I and all filled planners that have been filled by clients to date can be viewed from a repository page where an XML file is served up of the corresponding client, but someone would have to have Acrobat Professional, to import the form data from the XML file into a blank form.. altoughh this is simple for me.. I have the PHP file already created so that when a Planner is filled and client submits. >> the an email is sent to me with a table row from the repository of the client name, #, email, and a link to d-load the XML file,
    But I also have the PHP files created so that the Planner can be sent to by email to various people in the workflow with certain fileds ommitted they they do not need to see, but instead of the XML file beiong served up i need the filled PDF Planner to be served.
    I can do this locally with ease on a testing server, but I am currently trying to use another host that uses cross-platform compatibility so i can use PHP and the pdftk.exe to achieve this, as that is why I am having to serve up an XML file b/c we use a Linux server for our website, and cant execute the exe.
    Now that I am testing the other server (cross-platform host), just to use them to do the PDF handling (and it's only $5 per month) I am having problems with getting READ, WRITE, EXECUTE permissions..
    Si guess a good question to ask is can PHP do the same procedure as the pdftk.exe, and i can eleminate it.
    or how in the heck can i get this data from the DB into a blank PDF form, like i have described??
    here are some link to reference
    Populating a LiveCycle PDF with PHP and MySQL
    http://www.andrewheiss.com/Tutorials?page=LiveCycle_PDFs_and_MySQL
    HTML form that passed data into a PDF
    http://www.mactech.com/articles/mactech/Vol.20/20.11/FillOnlinePDFFormsUsingHTML/index.htm l
    and an example
    http://accesspdf.com/html_pdf_form/

Maybe you are looking for

  • Will Apps play on TV with  composite A/V cable?

    I need help. I am a music teacher and have downloaded some great Christmas apps. onto my TOuch I want to show them on a tv or an LCD projector. I have a composite cable and have everything hooked up, but I can't get a signal on my projector. When I h

  • Family Pack...posting iWeb from multiple computers?

    So I apologize if this is a silly question...but need to verify my hunch. If I purchase a .mac family pack, can we post multiple iWeb sites from each of our four computers to that .mac account? So the sites would be, for example, web.mac.com/smithfam

  • How to use diskpart to format a drive to GPT

    Booting and partitioning of GPT for Windows 8:   1.Boot from the Windows 8 install media (You must initiate this boot from a device labeled as a UEFI device, or the installation of Windows 8 will produce an error that the OS cannot be installed to a

  • Paragraph Styles going crazy

    Hi guys, Maybe this has an easy solution but all of the sudden my paragraph styles went nuts. I do apply Headline Style like the upper text which says "El Pase" and it transforms into the text below in pink warning letters. It says i do not have the

  • [svn] 4291: Merge SDK fix to BlazeDS

    Revision: 4291 Author: [email protected] Date: 2008-12-11 14:25:13 -0800 (Thu, 11 Dec 2008) Log Message: Merge SDK fix to BlazeDS Bug: BLZ-288 - Consumer is only receiving first pushed message when Consumer and RemoteObject that is used to push the m