Cfpdfform with Livecycle

I'm trying to submit a PDF file from Livecyle to a coldfusion
web server and have that PDF file saved there.
I've created a Livecycle PDF in Livecycle Designer 9.0 where
I simply have one Submit as PDF button. It submits to my test.cfm
page which contain one line (which should simply create the file
'testupload.pdf' on the server:
<cfpdfform action="populate" source="#PDF.Content#"
destination="testupload.pdf" overwrite="yes"/>
I get an error:
An exception as occurred in the processing of PDF forms:
There is data in the #PDF.content# variable when I perform a
<cfdump #PDF.content#>
I'm following the example directly from:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=formsPDF_09.html
-Scott

I'm trying to submit a PDF file from Livecyle to a coldfusion
web server and have that PDF file saved there.
I've created a Livecycle PDF in Livecycle Designer 9.0 where
I simply have one Submit as PDF button. It submits to my test.cfm
page which contain one line (which should simply create the file
'testupload.pdf' on the server:
<cfpdfform action="populate" source="#PDF.Content#"
destination="testupload.pdf" overwrite="yes"/>
I get an error:
An exception as occurred in the processing of PDF forms:
There is data in the #PDF.content# variable when I perform a
<cfdump #PDF.content#>
I'm following the example directly from:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=formsPDF_09.html
-Scott

Similar Messages

  • Unicode (international) characters in cfpdfform with LiveCycle PDFs

    Hi all
    These are the details of my environment:
    ColdFusion version: 8.0.1
    Update level: C:/ColdFusion8/lib/updates/chf8010004.jar
    Server OS: Windows Vista 64
    Web server: Apache
    I'm using cfpdfform in ColdFusion 8 to read a Livecycle 8.2.1 pdf form straight into the browser window, enter text into a couple of fields and then submit the form back to the same CF page and use the submitted XML to populate the same form.
    So, the relevant bit of my code is as follows:
    <cfif IsDefined("PDF")>
        <cfpdfform action="read" source="#PDF.content#" xmldata="myXMLData" />
        <cfset myXMLData = XMLParse(myXMLData)>
        <cfpdfform action="populate" source="c:\temp\myPDFForm.pdf" xmldata="#myXMLData#" overwritedata="true" />
    <cfelse>
        <cfpdfform action="populate" source="c:\temp\myPDFForm.pdf">
            <cfpdfsubform name="topmostSubform">
                <cfpdfformparam name="TextField1" value="Hello! The time is #TimeFormat(Now(), 'HH:mm:ss')#" />
            </cfpdfsubform>
        </cfpdfform>       
    </cfif>
    This all works just fine, except that any multibyte unicode characters (e.g. Chinese) I enter into any text fields are lost (turned to question marks) when the form is populated from the submitted XML, even though I can see that the Unicode characters remain intact if I do a cfdump of the myXMLData variable on page submission.
    I ordinarily have no problems with Unicode. I can write unicode characters in multiple foreign character sets to database and retrieve them just fine. I have site pages in several international character sets, and, as I have stated, the text I enter is displayed correctly in the correct foreign characters when I view a cfdump of the submitted form, so this appears to be specifically related to the PDF form populate side of things (or a setting in LiveCycle).
    I have an inkling that the cause is that the LiveCycle form has its  text fields set to allow rich text and has a specific font set against  the fields, so I'm wondering whether the foreign character font, which  displays fine when I enter it into the form, is being lost (overwritten by the LiveCycle field font) when read  back into the form. Any ideas as to how to overcome this problem would  be gratefully accepted.

    Okay, I think I got to the bottom of this. The following full page code works:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>cfpdfform Post and Populate Example</title>
    </head>
    <body>
    <cfoutput>
    <cfif IsDefined("PDF")>
        <cfpdfform action="read" source="#PDF.content#" xmldata="myXMLData" result="data" />
        <cfpdfform action="populate" source="c:\temp\myLiveCycleForm.pdf" xmldata="#myXMLData#" />
    <cfelse>
        <cfpdfform action="populate" source="c:\temp\myLiveCycleForm.pdf" />
    </cfif>
    </cfoutput>
    </body>
    </html>
    The key to stopping the Chinese characters from breaking was to remove the overwritedata attribute from the populate tag on the action page. In other words, changing
    <cfpdfform action="populate" source="c:\temp\myLiveCycleForm.pdf" xmldata=""#myXMLData#" overwriteData="yes" />
    to
    <cfpdfform action="populate" source="c:\temp\myLiveCycleForm.pdf" xmldata="#myXMLData#" />
    fixed the problem.
    As an interim measure, I wrote out the submitted PDF form XML to a file and took a look at what was happening and used the XML file as the basis for populating the PDF form, like this:
    <cfif IsDefined("PDF")>
         <cfpdfform action="read" source="#PDF.content#" xmldata="myXMLData" result="data" />
        <cffile action="write" file="c:\temp\myXMLData.xml" output="#myXMLData#" charset="utf-8" nameconflict="overwrite">
        <cfpdfform action="populate" source="c:\temp\myLiveCycleForm.pdf" xmldata="c:\temp\myXMLData.xml" />
    <cfelse>
         <cfpdfform action="populate" source="c:\temp\myLiveCycleForm.pdf" />
    </cfif>
    As well as causing the Chinese characters to break, the overwritedata attribute when populating the form appears to strip out any rich text  formatting (CSS) from form fields.
    Dropping the overwritedata attribute preserved the Chinese characters, regardless of whether the PDF form is populated directly from the posted PDF XML (as in the full example above) or via an XML file.
    On a separate issue (one I'll post to the LiveCycle forum but I'm mentioning here for other people's reference), any XML which contains in-line CSS formatiing (e.g. individual words in bold text) using the span tag causes a ColdFusion error when used to populate the PDF form.

  • PDF created with LiveCycle will not display

      All the other PDF links in the email work.  However, the document created with LiveCycle give me this error in Firefox.  I have made all the updates according to Firefox for Adobe Reader and Java.  Still receiving this.  Any suggestions???  I can see it in Explorer but not firefox or Chrome.  Not everyone that will get this particular document will use Explorer.  Unfortunately, I need a fast answer.

    Well, since I fixed it in Chrome, it works for me.  However, my partner beside me doesn't have Chrome and he gets the same generic screenshot that I had earlier, even though we made the changes in his Firefox.  We're baffled...... The interactive form is the only form we can't pull. 

  • How can I create a solution with Livecycle

    I work for a high school and we have about 12 pdfs that we need parents to read/scroll through, then 10 (different) pages that we want them to print, complete and return to the school.  Finally, we want them to see a "Thank you, you have done all you have to do" type screen.  We want to make it as user friendly as possible so I was thinking...
    Reading pages, 1 at a time with next at bottom.
    Click next and it takes them on.  When they get to printing pages 1 print button prints all pages we need them to print. Click next, and it takes them to optional print pages.
    Click next and it says, thank you.
    How can I make this happen if I already have all the pdfs?
    Help please.
    John Dent
    [email protected]

    Thank you soo much.  A few questions?
    They weren't created in designer but could I just import all of them?
    How do "build the structure" for the naviagtion?
    Where/how do you add the script.
    Thanks again,
    John Dent
    Date: Fri, 30 Jul 2010 07:01:08 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I create a solution with Livecycle
    I assume that all of these PDFs were created in Designer. If so you can add any buttons that you want to appear on every page (Next, Previous) onto the Master page then there is script you can add to the buttons to actual move the pages (xfa.host.pageDown() and xfa.host.pageUp()). The Prin button can be added to the specific page and you can pass the page numbers that you want to print as a parameter to the print command. Lastly when you get to the last page and the click Complete you can display a messageBox with your Thank you message.
    Hope that helps
    Paul
    >

  • Reader 11.0.07 does not display content of PDFs created with LiveCycle Designer ES 8.1

    We use some PDFs created with LiveCycle Designer ES 8.1 which do not show any content when opened with Reader 11.0.07, only a blank display area or erratic copies of the screen behind it. Documents look fine in print preview though and also print correctly. Tried to change various security or display settings, no effect. Tried other machines, different hardware, different OS versions (Win7, Win8), same effect on every single device with 11.0.07 installed.
    Any ideas, anyone?!?

    Hi,
    Not sure why you are resolving the node (??), also I would not be inclined to include a period in the object name (.), maybe this is why you are resolving the node.
    Also I don't see in the script where you are calling the instanceManager, in order to use the addInstance method.
    Having said that the problem may be in the File > Form Properties > Defaults tab:
    Check that Preserve script changes is set to Automatic.
    Lastly is the form Reader Enabled? It would need to be for users with Reader to save the changes, including new instances of a repeating element.
    Niall

  • PDF Generation with LiveCycle Data Services

    Hi everybody!
    I am using LiveCycle Data Services to generate a dynamic pdf. I worked with this tutorial : livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/pdfgen_1.html and i adapted the code to my own example.
    I created a pdf template with livecycle designer and i succeed to generate the pdf thanks to LiveCycle Data Services.
    Here is my problem :
    In LiveCycle Designer i create a table and bind my data connection (from xml source) to this table and i bind subforms to repeating data.
    It works when i try to open an overview of the pdf with LiveCycleDesigner.
    But when i try to generate the pdf with livecycle data service, there is no repeat of my data. There is only a number of items corresponding to the minimum of repeating i set in livecycle designer binding window...
    Is it possible to generate repeating data with LiveCycle DS ?
    an example of my xml source :
    <item id="1">
         <data>blabla</data>
    </item>
    <item id="2">
         <data>blabla</data>
    </item>
    In livecycle designer, if i set the minimum of repeating to 1,  LiveCycle DS generate a pdf with only one item.
    if i set the minimum of repeating to 2,  LiveCycle DS generate a pdf with only 2 items. etc.
    I don't know how to generate an indeterminate number of items...
    Thanks in advance for your help.
    Bye
    Guillaume

    Hi Guillaume,
    there is no limitation. Dynamic PDF files can be generated with Livecycle Data Services.
    You should have a look at the XML file generated by your Flex code. Try to save it and see how the XML file behaves when you generate a PDF preview with Designer. You can go to the menu:  File >  Properties > Preview > Use XML test data...
    With the XFAHelper class, you can either load a PDF or a XDP file. Have you tried with a XDP ?
    I've attached a dynamic PDF file that I've created for a customer. I generate a dynamic PDF file using LiveCycle Data Services. Maybe you'll find some clues within the file.
    Michael

  • Is possible in acrobat reader fill in and save interactive PDF created with LiveCycle Designer?

    is possible in acrobat reader fill in and save interactive PDF created with LiveCycle Designer?

    Hi,
    Only if the form has been Reader Enabled before it is sent out to the user with Reader.
    There are two ways of Reader Enabling the form. One using Acrobat Standard v9 or Acrobat Professional v8 (both have license restrictions). The other is to use LC Reader Extensions ES2, which is a server product (additional costs).
    Some info here:
    http://www.assuredynamics.com/index.php/2010/11/using-livecycle-forms-in-acrobat-and-reade r/
    A search of the forums for "Reader Extensions" or "Reader Enable" will give more information.
    Hope that helps,
    Niall
    Assure Dynamics

  • Difficulty compilation modulates pdf created with LiveCycle

    I have created some forms with LiveCycle, but once open with the Reader, as soon as footstep from a line to the other of the form, the content disappears.
    Can you help to resolve me the problem?
    Thanks.

    Post your question in the forum for LiveCycle Designer.

  • I am unable to edit a form created with LiveCycle version 8.5 with LiveCycle Version ES1.

    I am trying to edit a form created with LiveCycle version 8.08.2073 (installed with Adobe Pro 8).  I am using LiveCycle version ES (installed with Adobe Pro 9).  I can open the fhe form, but the tools are greyed out.  It apears the file is locked for editing, but I cannot determine where/how to unlock it.

    You should try to start in safe mode which runs a file check. You hold the shift key down during a start up till there is a progress bar towards thr bottom of the screen. This start will take a longer time than normal. In safe mode try the functioins you are having problems with to see if there is an improvement. Some links below to read.
    http://support.apple.com/kb/ht1564
    http://support.apple.com/kb/ht1455

  • Making a PDF with LiveCycle then being able to edit pages, insert pages, delete pages, attach files to document, be readable in Adobe Reader etc.

    We have been working for some time with LiveCycle to creat a documents and have experienced a host of problems with the end product.
    1.  Images inserted into the LiveCycle PDF document often come up as "broken links" after editing the document and resaving it.
    2.  Documents will not display in Acrobat reader unless a digital signature is applied to them and the document is re-saved.
    3.  After making the document, we are unable to use Adobe Pro to insert pages, delete pages, or insert files into the document as attachments.
    The end state was to use the simplicity of LiveCycle to create a document and do most of the hard work, and then save it as a PDF document that could be easily edited with Adobe Pro.  It has proven difficult, to say the least, to figure out how to make this work.
    Thanks in advance for any assistance.

    1- Thank you
    2- It only seems rational that if I make a form with LiveCycle that I should be able to view it with Adobe Reader or Adobe Pro.
    Making a form with LiveCycle to be distrubuted to personnel internally that have Adobe Reader and Adobe Pro and cannot open it without it having a digital signature field in it that has just recently been signed just doesn't make sense.  Nor does it seem to make sense to have to purchase 200 additional licenses just for LiveCycle so that people can open a PDF that was made with LiveCycle.  If I make it in LiveCycle and only people with LiveCycle can open it, what is the purpose of making it to begin with?
    3- This also totally sucks.  In a standard Adobe Doc I can at least attach documents to it?
    So, what, exactly then, is the purpose of LiveCycle if the only benefit it seems to provide is ease of creation, but the end product has way less functionality?
    And how do I go about contacting an Adobe rep on the phone in regards to this without getting "there is no support for this product, go to Adobe.com"
    We have millions of dollars of Adobe software and can't get support other than hunting and pecking in these forums?  Really?

  • Adobe Acrobat 9 with LiveCycle

    I created a form using Adobe Acrobat 9 with LiveCycle for my work place every time I distribute the form and get a response it goes into different data bases instead of getting all responses under one how can I compile all responses under one data I created a form using Adobe Acrobat 9 with LiveCycle for my work place every time I distribute the form and get a response it goes into different data bases instead of getting all responses under one how can I compile all responses under one data

    Designer ES is distributed with both Acrobat 9 Pro and Acrobat 9 Pro Extended for Windows.
    Steve

  • Looking for a person familar with Livecycle 8 webservices

    These forums are great but I have gotten over my head and instead of posting question after question, I would rather like to hire someone already familar with this subject.
    I am looking for a person familar with Livecycle webservices to assist with my PDF running in an Adobe Reader 8 and 9 enviroment to send and recieve data with my PHP/MySQl Internet server.
    See PHP script snipet code examples: http://www.tylerbutler.com/projects/Pages/ParsingXFDFinPHP.aspx
    Thank you so much
    kpenner36 at yahoo d o t c o m

    Kensington LiquidAUX for iPhone and iPod
    http://store.apple.com/us/product/TR824LL/A?fnode=MTY1NDA0Mw&mco=MTA4MzcxMDg
    no stand, but has a wireless remote.
    Belkin TuneBase Direct with Handsfree for iPhone
    http://store.apple.com/us/product/TY247LL/A?fnode=MTY1NDA0Mw&mco=MTM3NzgxNDQ
    I like this one because it also double as a hands free car kit
    Monster iCarCharger AUX 1000 for iPhone and iPod
    http://store.apple.com/us/product/TW684LL/A?fnode=MTY1NDA0Mw&mco=MTA4MzY3NTI&p=1 &s=topSellers
    Kensington LiquidAUX Deluxe for iPhone and iPod
    http://store.apple.com/us/product/TR951LL/A?fnode=MTY1NDA0Mw&mco=MTA4MzcwODQ
    this one has a wireless remote that you can strap onto your steering wheel to control music playback. it's much easer to use then to try and use your touch screen while driving.
    Message was edited by: Sherman Campbell

  • Uploading pdf files created with LiveCycle Designer ES4

    I uploaded some pdf files to my server that were designed with LiveCycle Designer ES4.  I can open them directly from the server using my SmartFTP program, however when I
    try to download using the URL, I get the following message:
    Please wait. . .
    If this message is not eventually replaced by the proper contenst of teh document, your PDF viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows . . . .
    I have both the latest version of Adobe Reader and Acrobat Pro XI installed on the computer.
    Any thoughts??

    Hi,
    Only if the form has been Reader Enabled before it is sent out to the user with Reader.
    There are two ways of Reader Enabling the form. One using Acrobat Standard v9 or Acrobat Professional v8 (both have license restrictions). The other is to use LC Reader Extensions ES2, which is a server product (additional costs).
    Some info here:
    http://www.assuredynamics.com/index.php/2010/11/using-livecycle-forms-in-acrobat-and-reade r/
    A search of the forums for "Reader Extensions" or "Reader Enable" will give more information.
    Hope that helps,
    Niall
    Assure Dynamics

  • Merging data with LiveCycle questions

    I have LiveCycle Designer 8.0 and I didn't find a forum for it so just point me in the right direction if this is not the place.
    I have a couple of questions with merging data with Livecycle PDFS
    1. XDP is the file format for merging data with LiveCycle created PDFs (FDF was with Acrobat)? if not, what is the format?
    2. We want different colors of the same PDF without actually making the different PDFS, is there a way we can do this through the merging the data?  For example: In the XDP file, we specify the color of the border of a rectangle.  When the PDF merges with the data, will the PDF be able to change the border of the rectangle with the specified color?
    3. Can a picture (a specific size) be merged in the PDF?
    Thanks!

    1. XDP is the file format for merging data with LiveCycle created PDFs (FDF was with Acrobat)? if not, what is the format?
    An XDP file is simply an XML file that packages a PDF file in XML, along with XML form and template data. Data can be merged from generic .xml or the XML version of FDF called XFDF.
    2. We want different colors of the same PDF without actually making the different PDFS, is there a way we can do this through the merging the data?  For example: In the XDP file, we specify the color of the border of a rectangle.  When the PDF merges with the data, will the PDF be able to change the border of the rectangle with the specified color?
    Yes. Consider a field called 'firstName'. I can add a script to the form:ready event that checks the value of the data merged with the field and changes the border edge color to red if the data is not equal to 'Steve'.
    // customer.page1.firstName::ready:form - (JavaScript, client)
    if (this.rawValue != "Steve") {
         this.border.edge.color.value = "255,0,0";
    3. Can a picture (a specific size) be merged in the PDF?
    Yes.
    Steve

  • IPad PDF with LiVeCycle Designer

    Will I ever be able to open a PDF on my iPad that was created with LiveCycle Designer?

    XFA (LiveCycle) support is a feature that is requested frequently.  As such, it is something we are looking to provide some level of support for in a future release.  If the Mobile Reader were to support Static XFA form fill-in, would this meet your needs?  Or do you require additional features above and beyond this capability?
    Darrell

Maybe you are looking for

  • How can I change the preview in imessage on a mac, when notifing me?

    how can I change the preview in imessage on a mac, when notifing me? I want it not to preview, just to show me the name of the person sending me the message, not the name of the person sending the message and the message they wrote.

  • Login Failing Everytime - Stuck Threads

    Whenever I call Authentication.login(username, password, request) - I am getting a stuck thread. any ideas? Mar 31, 2004 8:26:50 AM PST> <Warning> <WebLogicServer> <BEA-000337> <ExecuteTh ead: '14' for queue: 'default' has been busy for "660" seconds

  • Calling external executables from .jsx

    Hi I'm looking to do some Perforce (revision control) work from inside a Photoshop .jsx. There is a Perforce plugin for Photoshop but it does not seem to interface with the Photoshop CS2 Automation system in any way. My question is, does the Photosho

  • Dropped my BB 8520 in water

    Hello Everyone ,  I need some advice , I dropped my Balckberry curve 8520 in water , i quickly picked it up removed the battery and cleaned it up, i switched on the phone it came on but the voice activation went crazy , i switched it off again let it

  • Removing Apples address entry

    Sorry if this has been asked before, but searching for this title gives more than many answers (apple and address book gives tons of entries) I bought my computer in Sweden, Apple Sweden's HQ address was in the address book, deleted it and it was gon