2 problems with populating pdf forms

I created a form in LiveCycle on top of an existing PDF.  The form has 2 text fields (a company name) and an image (a company logo), and all are dynamically populated depending on who requested the  form.  I am using CF 8 to read the database and populate the fields. See tags below.
1. I have tried a zillion different ways to generate a line feed in one of the text fields but to no avail. In all cases, the characters actually appear in the output text.   Supposedly the LiveCycle doc says I can use udf escape sequences like "\u000d\u000a" but those do not work  Other attempts included '\x0d\x0a' " \r" "<br>" \line but to no avail.
Does anyone know what character sequence to embed in a text field to cause a line feed in the output PDF?
2. I cannot find any documentation on how to specify the value for an imagefield on the PDF form.  I am trying to place a company logo but nothing comes out on the pdf. Apparently I need something other than value="logofilename.jpg" but I can't find any doc on what to use.
Here is my code - very simple:
        <cfpdfform source="#sourcePDFpath#" action="populate">
            <cfpdfsubform name="topmostsubform">
                <cfpdfformparam name="txtAssocName" value="#Trim(assocName)#"> <!--- this displays OK --->
                <cfpdfformparam name="txtAssocAddress" value="#Trim(assocAddrFields)#"   > <!--- line feeds are not working between city and state --->
                <cfpdfformparam name="logo" value="1.jpg"  >  <!--- image does not display --->
            </cfpdfsubform>
        </cfpdfform>
Thank you, in advance, for your help!

Not sure if there is a way to pass a graphic into a PDF like that, but I've done it lots of times by positioning the graphic onto a PDF file using the iText java library (ships with CF).  Might want to head over to http://www.lowagie.com/iText/ to check it out.

Similar Messages

  • Problems with Adobe PDF forms in Web Dynpro Java

    As of now , I have two major issues in developing Adobe PDF forms in Web Dynpro Java .
    1.Text getting wrapped and repeated from the first line :
    Any text field that flows to the next page gets wrapped at the end of the page and is again printed on the next page beginning from the first line .
    For eg:
    If I have 4 lines in a text field that is at the end of the page
    1111111111111111111111
    2222222222222222222222
    3333333333333333333333
    4444444444444444444444
    and the page holds space for only two lines it prints the lines
    1111111111111111111111
    2222222222222222222222
    in the first page and then proceeds to the next page and prints
    1111111111111111111111
    2222222222222222222222
    rather than printing
    3333333333333333333333
    4444444444444444444444
    2.No way to hide a page at runtime:
    It is not possible to hide a page in a PDF form at runtime . If scripting is used , the page turns into a blank page but not hidden .
    Any pointers on this????????
    Helpful answers will be suitably rewarded with points!!!!

    Yes,I am using the versions that you mentioned.
    I have a node called <b>MasterData</b> which is the root node for my PDF Form.I have a node called <b>GenData</b> inside this node whose <b>ctx_Appraisal_Type_Num</b> attribute is bound to a hidden TextField in my form.In the <b>docReady</b> event of this TextField, I am writing the following FormCalc script to hide my SubForm whose Id is <b>MngrCmptnc</b>
    if(MasterData.GenData.ctx_Appraisal_Type_Num == "2")
    then
    MasterData.MngrCmptnc.presence = "visible"
    MasterData.MngrCmptnc.MngrCmptnc.presence = "visible"
    MasterData.StrImp.presence = "visible"
    else
    MasterData.MngrCmptnc.presence = "hidden"
    MasterData.MngrCmptnc.MngrCmptnc.presence = "hidden"
    MasterData.StrImp.presence = "hidden"
    endif

  • Problems with activation PDF-forms

    Hi to everyone!
    I'm trying to make a simple PDF-form: to print data from SBOOK training table. I use BC480 course. I've already done Interface, Content and Layout, but I can't activate form! No errors were found during Check, but after activation I see message "Action canceled by user" and form remains inactive. I don't cancel any action.
    What could it be? Maybe somebody had such a problem?

    hi Tahzeeb,
    <b>create a context attribute <xyz></b>
    <b>goto <xyz> -> Properties -> type...</b>
    click on the 3 dots "..."
    you will get "Type selection"...
    choose 
    Dictionaries -> Local Dictionary - > com.sap.ide.webdynpro.uielementdefinitions
    -> visibility.... click "OK"
    <b>GOTO ur </b>
    interactive form ->properties->visible
    click on "..." and bind it to Context attribute <xyz>
    <b>whenever you want it the uielement to disappear</b>
    wdContext.currentContextElement().setXyz(WDVisibility.NONE);
    <b>whenever you want it the uielement to appear</b>
    wdContext.currentContextElement().setXyz(WDVisibility.VISIBLE);
    hope this helps.
    regards,
    -amol gupta
    Message was edited by:
            amol gupta

  • Problems with sending PDF form

    I am unable to send my PDF form through Microsoft Outlook mail. The error message states there I have the wrong Server name?

    How exactly are you sending that document?
    What do you have set in Adobe Reader | Edit | Preferences | Email accounts ?

  • Problem with preview PDF files on Windows 7 32bit

    Hello,
    in my office I have a problem with preview PDF files on my computers. The files are allright, but if I select a file and click on preview mode after ~ 10sec operation system write something "Preview this file is corrupt for PDF Preview Handler wrong". On other 64bit computers with same programs the preview is work. I try uninstall all Adobe soft (Reader, Flash), clean all Adobe data from folders in root and in register, but it is not solve this problem. On Microsoft forums wrote me, that the problem is probably with AR plugin.
    So, can someone help me?
    Config PC:
    Windows 7 32/64bit Pro
    Intel i3, 4GB
    Adobe Reader 11.0.5
    Adobe Flash Player 15 ActiveX
    Adobe Flash Player 15 plugin
    Preview Handler Surrogate Host ver.: 6.1.7601.17514
    Thank you for help.

    I think I figured it out after reading other forums. Thanks!

  • Problem with printing pdf file

    hello,
    lately i have problem with printing pdf file:
    i click on the print button and the respod is very slow
    it takes more than a minute till the print window apears.
    i tryied to install version X but it's the same, the problem exist only when printing via adobe reader,
    other programs i'd working much faster.
    please advice,
    thank you

    No, it is not set to overprint. Also, I have to add that the printing results were not consistent. Sometimes it covered and sometimes it did not.

  • Extend SAP R/3 4.x with Interactive PDF Forms

    Hi there,
    In this blog of Matthias Zeller <a href="http:///people/matthias.zeller2/blog/2004/06/22/the-hidden-secret-of-adobe-reader hidden secret of Adobe Reader</a> there is the following paragraph:
    <i>While mySAP ERP 2004 provides many business scenarios using Interactive Forms out-of-the-box, a lot of customers have asked me how they can use the new Interactive Forms with existing R/3 applications. Therefore, I would like to encourage you to vote for my SAP TechEd presentation proposal ("Extend your SAP R/3 4.x applications with interactive PDF forms"). I plan to discuss how you can connect your existing SAP R/3 applications with SAP Web AS 6.40 to enable interactive form workflows.</i>
    Can somebody tell me if this presentation is somewhere on SDN? Or can somebody tell me where i can find more information about this subject?
    Thx in advance.
    Regards Maarten.

    Hi Maarten,
    Here's a brief run-down on how you could make use of SAP/Adobe Interactive Forms and Workflow:
    1) Remember that a form is really just a UI for collecting data.  A PDF form can be used to collect data online (connected to your SAP system) or offline, e.g. you could send it as a mail attachment, fill it in, and email it to a central point for uploading into the system. 
    2) The main requirements for using SAP Interactive Forms are:
    a) A NW04 (6.40) or NW04s (7.00) WebAs (Java Stack) to run Adobe Document Services. This is the critical component that assigns ReaderRights to the document, e.g. so that the user can change the data and save it on the document.   You could run a WebAs like this alongside your R/3 4.7 - e.g. if you have an XI system or Enterprise Portal you could use that system to run Adobe Document Services.  Every form you create must be generated via the Adobe Document Services to get the Reader Rights. Note: Get a NW04s environment if you can - as this release has usefuul new features such as loading attachments to the PDF, using digital signatures, etc.
    b) A WebDynpro application to generate the Adobe form via Adobe Document Services, and to execute the Adobe Form when using online mode, and to upload offline forms.  Tutorials on how to do this are available in SDN - have a look at the Adobe section within WebDynpro. Note: From ECC 5.0 there are some standard WebDynpros apps provided, but in R/3 4.7 you will need to write your own.
    c) There's also a licensing requirement for any production custom forms (SAP provided forms and cosmetic changes to those forms are free) so make sure you get your SAP account manager involved to help sort out how your intended usage will fit in with your current license agreement and any discounts that may apply.
    3) To use the "form" with workflow has some additional requirements:
    a) You need to store the data entered via the form somewhere that is accessible by Workflow.  The easiest approach here is to use the standard form handling technique Internet Service Requests.  Transaction QISRSCENARIO will let you define all of the form fields, give you BADIs for doing validation, raising workflow events, etc.  Also from ECC 5.0 onwards using Adobe forms as the form entry is a standard option for this technique, so this will help reduce the upgrade impact when you eventually do upgrade.
    b) Assuming you use ISRs, have your WebDynpro App call the function module ISR_PROCESS_EVENT to pass the data to R/3 and do the validation checks.
    c) Assuming you use ISRs, you use the BOR object for notification such as BUS2078, as your main object for the workflow.  The form data is attached to the notification and can be retrieved using function module ISR_SPECIAL_DATA_GET.
    d) If you want to call your WebDynpro App from SBWP (I take you don't have Enterprise Portal?) then use transaction WF_EXTSRV to define the web service to call your WebDynpro app and generate a workflow task for it.  Also you must configure transaction WF_HANDCUST to enable R/3 to handle web services.  Note: If you do have the Enterprise Portal, you can use transaction SWFVISU instead.
    I'd strongly recommend you read the ISR cookbook at http://service.sap.com/isr as well.   ISRs aren't the only way to use Adobe forms with R/3 but they are extremely handy if you want to use your Adobe form with Workflow.
    As for Lotus Notes, you can use your WebDynpro app to generate and send/receive a form to/from an email address.  You can also put a hyperlink in your workflow task to call your WebDynpro app and use RSWUWFML2 (swap to Enhanced Notifications when you upgrade) to send out a mail with the hyperlink attached as per usual.
    You'll also find some useful threads on Adobe forms and Workflow in the SDN BPM Forum.  So if you have workflow specific questions try raising them in the BPM forum.
    Enjoy!
    Regards,
    Jocelyn

  • I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server wher

    I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server where the PDFs open fine) I get an error 'There was an error processing a page. Invalid function resource' The other one just doesn't open at all. Can anyone help with this please?

    Hello,
    Are the pdf linked correctly in the website? Is this a public website? If yes, please post the link here.
    ~Deepak

  • My Client is having a serious problem with the Contact Form Widget

    My Client is having a serious problem with the Contact Form Widget that I can not figure out how to correct.
    I created a website for a client and inserted a Contact Form widget on their 'Contact Us' page. Whenever anyone uses the form, the e-mail my client receive shows my e-mail address as the sender. So, when they 'reply' to the e-mail, the reply is sent to me and not the person who sent the original message. This creates a major problem in that I get barraged with e-mail replies while my client's potential customers go without a response.
    When I look at  'Site Manager > System E-Mails > Workflow Information > E-mail From Address' on the site's Admin Console, it shows my e-mail information. Is this is what needs to be changed?  If it is, what needs to be placed in that field so that the e-mail my client receives shows the senders e-mail information in the 'From' field.  My client wants to be able to click reply and have the message sent to the right party. They would be very upset if they have to cut and past the senders e-mail address from the body text on every contact they receive.
    Their feeling is that if I can't find a way to make the contact form work the way it should, then it's useless to them.
    Can anyone help me figure this out? I really don't want to disappoint my first client.

    Are you on a plan that has the CRM feature that stores your customers' data? If so, the idea of the contact form is that you'll receive a notification that there's been an inquiry filled out on your contact form and there should be a link in that email notification that leads to the "Case" that was created when that customer filled out a contact form.  You can click that link and visit the case for that customer in your BC site and reply to them from there so that all of the correspondence is logged in the CRM for safe-keeping and for your records.
    If your client finds this is too much work to login to BC to reply every time, then you should check to see if you have the "Customer Service Ticketing" feature on your hosting plan.  This is a feature where you create a dedicated email account (like [email protected]) and the BC system will automatically login to that email account and pull any emails in that inbox and convert them to a customer case for the sender of the email and then it will send out a notification via email to any of the BC Admin users you delegate as "Customer Service Agents".  Since the CST integrates with the BC CRM it lets you reply directly within the email-- but when you reply it will be going to that same email address dedicated to the CST but once the CST service checks your email again and sees that you replied to this inquiry it will log your reply against the customer's case and sends your reply via email back to them so that all the correspondance gets logged on BC's CRM but you can still reply via email.
    There's no way to use the default web forms to update the "From" or "Reply-To" address.. it must come from an approved email address to avoid spam issues.  On most web services you cannot change the "from" address anyway but usually you can at least specify the "Reply-To" address so that when someone hits "reply" in their email client it will reply to whoever you setup as the "Reply-To" address.
    Here's some more information about CST: http://kb.worldsecuresystems.com/kb/customer-service-ticketing.html?bc-partner
    I don't think the CST feature is in the webMarketing BC plan-- I think it's only in the webCommerce plan so if you have less than an webCommerce plan you have to tell your client to reply through BC by clicking the link in the notification they get.  You can justify it by saying its one or two more steps but it keeps the entire convo on record in their CRM for easy referral later.

  • Problem with navagation of forms

    Hi everybody
    I have a problem with navigation of forms
    I have two forms say a and b.In form a i have a button and i want, when i press that button the form b should open.I wrote when_button_pressed trigger for that button in form a as open_form('b'); Raise form_trigger_failure;
    When i run form a and press the button form b is not opening.It is giving me a message as 'form b cannot be opened'
    Can somebody tell me where i am wrong.I have compiled b.
    TIA
    Prajakta

    Why are you using Raise form_trigger_failure;
    You don't need it.
    Try doing open_form('b.fmx');
    If this doesnt work
    I think your problem is that the fmx file for form b is not in the path to be found.
    make sure to include the direcoty in the forms60_path or have it in the same directory as form a.

  • Very big problem with JSF about FORM and "id=" for HTML form's elements and

    I have discovered a very big problem with JSF about FORM and "id=" for HTML form's elements and java instruction "request.getParameterNames()".
    Suppose you have something like this, to render some datas form a Java Beans :
    <h:dataTable value="#{TablesDb2Bean.myDataDb2ListSelection}" var="current" border="2" width="50%" cellpadding="2" cellspacing="2" style="text-align: center">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:outputText id="nameTableDb2" value="#{current.db2_name_table}"/>
    </h:column>
    </h:dataTable>
    Everything works fine...
    Suppose you want to get the name/value pairs for id="nameTableDb2" and #{current.db2_name_table} to process them in a servlet. Here is the HTML generated :
    <td><span <span class="attribute-name">id=<span class="attribute-value">"j_id_jsp_1715189495_22:0:nameTableDb2">my-table-db2-xxxxx</span></td>
    You think you can use the java instructions :
    Enumeration NamesParam = request.getParameterNames();
    while (NomsParam.hasMoreElements()) {
    String NameParam = (String) NamesParam.nextElement();
    out.println("<h4>"++NameParam+ "+</h4>);
    YOU ARE WRONG : request.getParameterNames() wants the syntax *name="nameTableDb2" but JSF must use id="nameTableDb2" for "<h:outputText"... So, you can't process datas in a FORM generated with JSF in a Servlet ! Perhaps I have made an error, but really, I wonder which ?
    Edited by: ungars on Jul 18, 2010 12:43 AM
    Edited by: ungars on Jul 18, 2010 12:45 AM

    While I certainly appreciate ejb's helpful responses, this thread shows up a difference in perspective between how I read the forum and how others do. Author ejb is correct in advising you to stay inside JSF for form processing if form processing is what you want to do.
    However, I detect another aspect to this post which reminds me of something Marc Andreesen once said when he was trying to get Netscape off the ground: "there's no such thing as bad HTML."
    In this case, I interpret ungar's request as a new feature request. Can I phrase it like this?
    "Wouldn't it be nice if I could render my nice form with JSF but, in certain cases, when I REALLY know what I'm doing" just post out to a separate servlet? I know that in this case I'll be missing out on all the nice validation, conversion, l10n, i18n, ajax, portlet and other features provided by JSF".
    If this is the case, because it really misses the point of JSF, we don't allow it, but we do have an issue filed for it
    https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=127
    If you can't wait for it to be fixed, you could decorate the FormRenderer to fix what you want.
    I have an example in my JSF book that shows how to do this decoration. http://bit.ly/edburnsjsf2
    Ed

  • Problem with downloading PDFs

    I have just downloaded a new version of Adobe Reader X 10.1.2 but can't download PDFs such as my electricity bill and t.v. licence

    Thanks for your help.  I’ve now sorted it via help from the site where I was trying to download the PDF from.  The following action solved the problem:
    ·        Click on 'Tools' then 'Internet Option'
    ·        Click 'Advanced'
    ·        Scroll down to Security
    ·        Uncheck 'Do Not Save Encrypted Pages to Disk'
    ·        Click 'Apply'
    ·        Click 'OK'
    Re: problem with downloading PDFs
    created by MichaelKazlow <http://forums.adobe.com/people/MichaelKazlow>  in Adobe Reader - View the full discussion <http://forums.adobe.com/message/4228358#4228358

  • Problems with Submitting the form

    Hey Guys,
    I have a form with 7 different fields. my form is connected with the database. once the user fills out the information and clicks on submit the entry should be saved in the database.
    Everything is working fine. i can establish connection with the database. my only problem is that when i click on submit its not adding the entry in the database. I think i have problems with this command
    <form method = "post" > . Any helpo will be really appreciated. I am posting some part of the code.
    <%!
      public void jspInit() {
        try {
          Class.forName("org.apache.derby.jdbc.ClientDriver");
          System.out.println("JDBC driver loaded");
        catch (ClassNotFoundException e) {
          System.out.println(e.toString());
    <body>
    <%
    String name, unit, title, supervisor, region, dept, date;
    %>
    <p align="center"><b><font size="5" face="Arial">LOGIN REQUEST FORM </font></b>
    <form method="POST">
    <p align="left"><b><font size="2">                           
         </b>Name:<b> <input type="text" name="name" size="20">   </b>Title   <b>
         <input type="text" name="title" size="20">         </b> Dept <b>         
         <input type="text" name="dept" size="20"></b></font></p>
         <p align="left"><font size="2"><b>                 
         </b>Supervisor: <b> <input type="text" name="supervisor" size="20"> </b>Region<b> 
         <input type="text" name="region" size="20">  </b>Business Unit<b>
         <input type="text" name="unit" size="20"></b></font></p>
         <p align="left"><font size="2"><b>              </b>
         Effective Date:<b> <input type="text" name="date" size="20"></b></font></p>
         <input type = "reset">
         <input type = "submit">
         <%
         name = request.getParameter("name");
         unit = request.getParameter("unit");
         title = request.getParameter("title");
         supervisor = request.getParameter("supervisor");
         region = request.getParameter("region");
         dept = request.getParameter("dept");
         date = request.getParameter("date");
         boolean error = false;
         String message = null;
         try {
              Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/sample");
              System.out.println("Connection Established");
              Statement s = con.createStatement();
              String sql = "SELECT name FROM users" +
              "WHERE name='" + name + "'";
              ResultSet rs = s.executeQuery(sql);
              if(rs.next()) {
                   rs.close();
                   message = "The username <B>" + encodeHtmlTag(name) + "</B> has already been taken. Please select another name.";
                   error = true;
              else {
                   rs.close();
                   sql = "INSERT INTO user" +
                   "(name, unit, title, supervisor, region, dept, date)" +
                   "VALUES" +
                   "('" + name + "'," + " '" + unit + "'," + " '" + title + "'," + " '" + supervisor + "',"
                   + " '" + region + "'," + " '" + dept + "'," + " '" + date + "')";
                   int i = s.executeUpdate(sql);
                   if(i==1) {
                        message = "User Added";
              s.close();
              con.close();
         catch(SQLException e) {
              message = "Error " + e.toString();
         catch(Exception e) {
              message = "Error" + e.toString();
              error = true;
         %>
    </form>
    </body>
    </html>

    Even if there was an exception being thrown, you wouldn't see it because you're catching it but not doing anything with the message:
    catch(SQLException e) {
              message = "Error " + e.toString();
         catch(Exception e) {
              message = "Error" + e.toString();
              error = true;
         }Try changing this part to:
    catch(SQLException e) {
              message = "Error " + e.toString();
                    e.printStackTrace();
         catch(Exception e) {
              message = "Error" + e.toString();
              error = true;
                    e.printStackTrace();
         }

  • I have problems with buttons and Forms in my trial proof of Indesign CC, how can I fix it?

    I have problems with buttons and Forms in my trial proof of Indesign CC, how can I fix it?

    Moved to InDesign forum.
    You can start by telling us what the problem is.

  • Problems with some PDF files

    Hi,
    I have problems with some PDF files. After clicking on link to the file Safari shows me insted of normal document (which is working on Windows) hashes, numbers etc like it was a problem with coding or something. First I was using Preview, I though that maybe installing Acrobat Reader with plugins will solve the problem, but ofcourse it didn't. Did somebody has this same problem?

    Back up all data.
    Please triple-click anywhere in the line below on this page to select it:
    defaults delete -app Safari WebKitOmitPDFSupport
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Quit Safari. Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    Wait for a new line ending in a dollar sign (“$”) to appear below what you entered. You can then quit Terminal. Test.

Maybe you are looking for