Display PDF form XSTRING data

Hello,
I would like to display a form in Reader from SAP. I have the form data in the XSTRING variable.
Like the situation when you ask ADS through GETPDF = 'X' to return your form as XSTRING and you change your mind in the next program code and want to display it. Or when you store the uploaded PDF file data stream into a customer table and time to time you want to see what have you stored there.
Has anybody tried this?
Regards, Otto

I have found your code here: https://wiki.sdn.sap.com/wiki/display/ABAP/ReadanyOTFDatainAdobeReader
but I am missing something. I have no experience with dynpro (only WEBdynpro) etc.
I load the PDf data from the customer table, where there is a column PDF type RAWSTRING and assign it to your lv_content variable. I have created dynpro 100 and placed a custom control.
When I run this program it displays nothing. Do you have any idea what can be wrong?
Thank you, Otto

Similar Messages

  • When opening in filled PDF form, the data flashes and then blanks.  Adobe  Reader XI

    When opening in filled PDF form, the data flashes and then blanks.  Adobe  Reader XI
    I filled in this form with important data.  And saved it.  I have since opened it and printed it again.  Now when I open it the fields become blank  I can see them for a split second as it clears them.
    I believe I have updated to Reader XI since I filled it in.

    Hi Pat,
    Are you using Adobe Reader XI? And not Acrobat. It does not ask me to save the form if there are unsaved changes.
    I have used previous versions of reader for saving this form data and it did allow me to save it with ctrl+s. And those versions did prompt me to save the changes before closing.
    I guess I should not have updated the reader.

  • Cannot display pdf form with Adobe Reader 9.1.3

    Since the last update of my Reader (last version is 9.1.3), I can't display pdf form in the workspace. I got a blank page.
    Is anybody have the same problem?

    -  Go to the registry HKEY_CLASSES_ROOT > Software > Adobe >Acrobat> delete any older version that is older than the one you just updated to make sure it contains only the current one you have for both Acrobat Reader and/or Pro version since it did not removed when you uninstall or update.
    - Also go the installed directory where you installed the Acrobat and delete any folder that contains older version, same here with the registry, it did not remove when you uninstall/update acrobat reader or pro.
    The above steps also solve the problem of can not open pdf file within Internet Explorer or browser as well.
    Han

  • Exporting one specific pdf form field data to a specific webpage field

    Hello there.
    I am currently creating a form in which I need to export one specific pdf form field data to a specific webpage field to avoid typing it again or hitting ctrl+c and then ctrl+v to the webpage, as there are several records that need to be copied and pasted.
    I read that there is no access to the clipboard within pdf therefore, would like to know if there is any way to do that without accessing the clipboard.
    I am a newbie and have been learning by searching the forums and Google, therefore, would appreciate any insight on whether or not this is possible using javascript or the "submit form" funcion.
    Any help is greatly appreciated!

    Hi George, thanks for your response!
    The main issue I have is that this web page is in fact a government page in which I have to manually copy and paste information.
    I have no idea how to automate this process - I have access to the scripts on the page to see what I am able to do, but since I do not have much experience (only very basic javascripting), any other insight would be great!

  • Allow reader users to save pdf form with data

    I want to create a form that an adobe reader user can open and save a copy as a pdf with the data in the form. I know that requires reader extensions - what i can't seem to figure out is if I already have this included and how to do it. I have LiveCycle Designer ES 8.2 - which is the download I end up at when searching LC with reader extensions.
    Does anyone have instructions on how to do this or know whether that functionality is available in the version I'm running?

    You can add the Reader Extesnion right to save the form with data locally in two different ways.
    1. In Acrobat Pro open the form and under the Advanced/Extend Features in Adobe Reader will walk you through a wizard. Once the wixard is finished, save the file and use that one. This technique is limited to 500 users by licence.
    2. LiveCycle Reader Extensions Server has a User Interface that allwos you to pick the rights you want. There are no luser imitations to this option.
    If you do not have either, option 1 is a lot simpler. You can download a trial copy of Acrobat Pro and try it.
    Paul

  • How to populate Adobe LiveCycle Designer generated  PDF Forms with data from Database in Windows app

    Hi
    I have a PDF template designed in Adobe LiveCycle Designer. This template has form fields which needs to be filled with data programmatically. I am using windows application in C#.Net 2005 in which I want to retrieve data from database and merge this data into PDF form in respective fields.
    How this can be achieved?
    I searched a lot & I found that we can process the XDP file generated from PDF to acheive this. I created the XDP file out of the PDF template created in designer. But I don't know how to merge data from database into that XDP file in respective fields and again convert this XDP file back to PDF programmatically. Can anybody help me ? This is urgent.
    Thanks in advance.
    Sambhaji

    Please ignore the above code.<br />The following one is correct one.<br />using System;<br />using System.Data;<br />using System.Configuration;<br />using System.Web;<br />using System.Web.Security;<br />using System.Web.UI;<br />using System.Web.UI.WebControls;<br />using System.Web.UI.WebControls.WebParts;<br />using System.Web.UI.HtmlControls;<br />using System.Text;<br />public partial class _Default : System.Web.UI.Page <br />{<br />    protected void Page_Load(object sender, EventArgs e)<br />    {<br />        Response.ContentType = "application/vnd.adobe.xdp+xml";<br />        StringBuilder responseString = new StringBuilder();<br />        responseString.Append("<?xml version='1.0' encoding='UTF-8'?>");<br />        responseString.Append("<?xfa generator='AdobeLiveCycleDesigner_V8.0' APIVersion='2.5.6290.0'?>");<br />        responseString.Append("<xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'>");<br />        responseString.Append("<xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'>");<br />        responseString.Append("<xfa:data>");<br /><br />        responseString.Append("<form1>");<br />        responseString.Append("<TextField1>Homer</TextField1>");<br />        responseString.Append("<TextField2>Simpson</TextField2>");<br />        responseString.Append("<field name ='DropDownList1'>");<br />        responseString.Append("<items save='1'>");<br />        responseString.Append("<text>1</text>");<br />        responseString.Append("<text>2</text>");<br />        responseString.Append("<text>3</text>");<br />        responseString.Append("</items>");<br />        responseString.Append("</field>");<br /><br />        responseString.Append("</form1>");<br /><br />        responseString.Append("</xfa:data>");<br />        responseString.Append("</xfa:datasets>");<br />        responseString.Append("<pdf  href='C:\\Test.pdf' xmlns='http://ns.adobe.com/xdp/pdf/' />");<br />        responseString.Append("</xdp:xdp>");<br /><br />        Response.Write(responseString);<br />        Response.Flush();<br />        Response.End();<br />    }<br />}

  • Prepopulating PDF forms with data from XML file

    How can I get a PDF form to open pre-populated with data from an XML file automatically? I've been using Adobe LifeCycle Designer 8.0 and there doesn't seem to be a way to do it. The closest I came was to use the ImportData method, but that only lets you specify a data file if the form is signed (certified), which these aren't and don't need to be because we're using them on an internal company web page. ImportData works if there is no file name, but then the user has to navigate to and select the correct file, which we can't rely on our users to do.
    I've researched this problem for days on this and other websites and haven't found an answer (one Adobe advisor suggested purchasing LifeCycle Forms, which is not an option because it's a $10,000 software package and the company wouldn't authorize a purchase that steep). We will buy a less-expensive option if there is one. We'll even hire a consultant if we can find one to who can design a supportable solution. All suggestions will be much appreciated.

    Hi Sharon
    The easiest way is:
    - Open your PDF form within Acrobat
    - From the File menu, import the XML form data into the form
    - From the File menu, use Save As... to save the file with a new name.
    The new PDF will be identical to the original one, but will have the data embedded in it. Voila.
    If you want the same form to pre-populate with different XML files depending on the circumstances, or if you're generating the XML on the fly, then things get more complicated. (And more expensive.) As your consultant said, LiveCycle Forms is one option, but it is expensive (actually even more than 10K). There are other options, including Cold Fusion, custom servlets, etc.
    Howard
    http://www.avoka.com

  • Submit pdf form fields data as customized template

    Hi
    Is it possible to submit pdf form fields as a customized template?
    when the form is submited, I want it to be emailed to me as text form and the form field data would be autopopulated into the text template.
    Im not sure but is this how fdf works?
    if so, how do i get my form to be submitted as fdf?
    please help.
    thanks.

    Here you go .....the 3 fields at the top are where you enter data. The allfields field is the field that creates your special format and teh submitted data field is what you woudl recieve in the email. Note that i changed th ebinding for the first three fields so that they are not included as separate items in the data file. This shoudl simplify what you recieve. I cam change the format of what is written to the allfields if you need a different distinction. In this example I hardcoded everything ....depending how many fields there are on yours i woudl use a different approach (using some complicated code) but the concept woudl be the same. I woudl find all of the fields on your form and loop through all of these objects in a for loop construct this will reduce th eamount of code dramatically and also allow you to modify the form to add or remove fields as you see fit without having to change the code.
    Make sense?
    Paul

  • Pdf form for data from another form with data, xml or pdf, tables not expanding

    Sir,
    I am using Adobe Acrobat 9 Pro and LifeCylce to do these forms. I have made several subforms for a Risk Assessment for the mission they fly. I have also made up another form with tables that would connect with each subform data. This form also will give me and others a % of the values received from the data to help us with seeing problem area towards Safety.
    I am able to connect the data to the form from the Risk Forms but when I go and add another group of data it over writes the data that was already in the data collection form. The tables are dynamic and able to expand with the generated data but when I compile several Risk Forms, xml. data into one single data group, the receiving tables will not except this data. To compile the data I am in Acrobat and using the form-manage form data-merge data to spreadsheet than enter as a report that is xml. Still not working. I also tried to save the form, with data already in the tables, and then opened it again and add data to it, it will over write the existing data in the form. This form does work great with the generated data in LiveCycle.
    Any suggestions???

    Thanks Paul
    Did as you said and for each subform binding tab made sure I have "Repeat subform for each data item" checkbox and still no change when I add the data.
    I even tried to combine the xml data and that file just has the main page and not the data pages. just another problem that is happening.
    Any other suggestions on this expanding tables and receive single forms one at a time.
    Bill

  • Preview not displaying PDF form properly

    Hi, I volunteer at a high school where there are macs installed. The students are trying to fill out their FAFSA form which I have downloaded from the Dept of Education's website. It displays properly inside Acrobat Reader for both Windows and Mac. The answer fields are set up as boxes, one letter for each box. In Acrobat Reader, you can fill out the form, and the each letter would appear inside each box. But when we open it up in Preview, which is what the school is using by default, the boxes disappear, and filling out the forms make them look like they're regular text input fields.
    The PDF file is here: http://www.federalstudentaid.ed.gov/docs/colorEnglish_fafsa2009-2010.pdf
    I don't want to have to install Acrobat Reader on these Macs because I don't want to mess with the school's computers like that. Is there a way we can get Preview to open up this file and have it display properly? I have Acrobat Pro at home, if I need to do something to "convert" or "fix" the file, I can.
    Thank you!

    I have also had problems with PDFs in Preview recently. Some PDFs created by Acrobat Pro don't display correctly. One document I received recently was full of grey squibbles in Preview. I opened it in Acrobat Pro and everything was as it should be. This has happened several times now.
    However I don't want to open Acrobat Pro just to read a PDF, so I have, despite resistance, installed Acrobat Reader. It loads very quickly, so it's not like the old Acrobat used to be. It is basically an acceptable solution. Hopefully Apple will address this issue soon.

  • How do I make a PDF form with data-merge capabilities (to use with .xls spreadsheet)?

    I would like to design a form in InDesign (CS2), export it to a PDF, use Adobe LiveCycle to make it into a form, then use data from an excel spreadsheet to populate the form in a repetative fashion so that each person in the spreadsheet gets a populated form with only their applicable data on it. Is this possible?

    You can use LiveCycle Designer's Data Connection to access an SQL data base. Excel can act as an SQL database.

  • Fill a pdf form with data using Java code

    Hi,
    Modern formats of Acrobat ".pdf" files allows to define form fields.
    I have a datasource, let's say in a database.
    I want to fill my ".pdf" with my database-stored data automatically, and want to write Java code for that.
    1. What is the best way to achieve this ?
    2. Is it necessary to install Acrobat Distiller server and if so what web services should I invoke ? Where is the doc ?
    3. Are there efficient Java libraries to do so ?
    Thank you for helping... As ever, this is kind of an emergency case
    Have a good day.
    Phil

    Take a look at the FDF Toolkit for Java:
    http://www.adobe.com/devnet/acrobat/fdftoolkit.html
    That will allow you to, through Java, construct an FDF that contains all your form data.  You then add a reference to your "template" PDF file in the FDF as well and send the FDF to the client.  Acrobat will open the FDF, see the reference to the PDF, open the PDF and then merge any data contained in the FDF with the PDF.

  • PDF form sending data back as FDF

    Hi there,
    I created a pdf from a Indesign doc and opened it in acrobat 9 to use form wizard, I successfully managed to save and send the pdf from my mac to my partners pc. He was able to fill in the form but when clicking the submit by email button it was only sending me back the FDF file. I checked my settings on the submit button but had checked the box for 'PDF the whole document'. I had notes from an earlier version of acrobat and it stated that after I have created the form and saved the mailto button etc, under 'advanced' I should click on 'Enable usage rights in Adobe Reader'. Yet I could not find this so I tried 'Extend features in Adobe Reader' but this stills sends me back the FDF file which I cannot access the data from.
    Ideally I would like the pdf to come back rather than the FDF is there any way this can happen?
    Kirsty

    Sorry, but I am a little confused.
    Let me give you a scenario.
    The user clicks the button on the JSP it sends the primary key value or user id to the servlet.
    The servlet calls my session entity beans and returns data base on that call.
    At that point the servlet has the data. Even if I set it in the session object in the servlet, I will have to populate the jsp how?
    Do I set the values on the jsp from the servlet or within the jsp itself? Use setparameter, setattribute?
    The button click starts it all off, but when the servlet is done processing, will I need to detect some other event in the jsp if I want to to populate the fields from within the jsp?
    In other words, if I put code in the jsp to populate the text fields after the servlet is finished executing, what triggers the code ((YourObject) request.getSession().getAttribute("your key")) to process inside jsp?
    I am making sense.

  • Pdf form field data disappearing?

    I am a designer creating fillable field form pdfs (service agreements, questionnaires) for a client (event services management) to send to their customers to fill out, in some cases sign digitally, and email back.  In most cases, the fields the customers typed information in is blank in the returned form pdf.
    Customers have been using Adobe Acrobat, Apple Preview, and presumably other pdf software.  We have started to insist they only use Acrobat, but even in those cases the data fields are coming back blank.
    I have read of instances where formatting fields within the form for font and font size can cause problems.  Is that really the case?
    I do optimize the pdfs when saving to be compatible as far back as Acrobat 4.
    Any assistance is greatly appreciated!!!

    This was the original file from my computer which hasn't been opened in Preview at any point.  Dropbox uses some sort of PDF reader to view PDFs. I had to open up the PDF before I could share it to my Adobe Reader app.
    So, now I've worked out how to transfer the original, uncorrupted, PDF file to Adobe Reader on my iPhone by connecting my phone to iTunes on my computer.  And the ultimate proof is that the problem still occurs and therefore I believe this is a glitch with the Adobe Reader app specifically (it doesn't happen with my desktop Adobe Reader) which means form boxes with strokes applied don't always work.
    You're welcome to try this for yourself - here's the original uncorrupted file.  Although I've saved this one into Dropbox so that I can share, I haven't opened it in Dropbox:
    https://www.dropbox.com/s/kutwzrrlfo4dpyg/Example%20page.pdf.zip
    I've just removed the stroke and it works fine, even after opening in Preview first. This doesn't matter because the Adobe Reader app highlights all the fields by default anyway, so the stroke isn't needed in this case.
    Thanks

  • PDF form template displaying multiple sets of data loaded from xfdf

    Hello
    I would like to use PDF Forms with data stored in xfdf files.
    Is it possible to create pdf form (template) for displaying and printing multiple sets of data stored in xfdf?
    For example: pdf form contains 2 sets of data. Form field names:  F_1 and F_2.
    I have 7 sets od data. All I need is to create pdf and xfdf that can be displayed in PDF reader and printed
    as document consisting of 4 the same pages containing different data in form fields loaded from xfdf file.
    (something similar to Mail merge in MS Office Word).
    How it would be done? Is it possible to make such pdf, xfdf?
    If yes, where I can find examples (tutorial) of creating such forms, please?
    Thanks.
    J. Jas

    It is possible but not just a simple import of data.
    Each form field in the multiple page PDF would need a unique name not repeated on another page of the PDF. Fortunately the Acrobat form standard includes the "template" object and this object can be spawned or used to add a new page with the form fields automatically renamed with a prefix string of the page number and template added to each form field on the new page. So if one were to import a row from your tab delimited file into the template, one could then spawn a new page from the template with the data and rename the fields so there would be no conflict of like named fields.
    A Lesson in Templates for Adobe Acrobat by Dave Wraight
    With newer versions of Acrobat there is a mail merge feature.
    Create PDFs from Word mail merges

Maybe you are looking for