RFC returning PDF form in Binary table

Hello,
In our earlier application we were using a RFC to return PDF form as a table of binary fields and then these fields were concatenated and .pdf extension addded at the end. This will then display correctly in browser as a pdf form. Typically, this returns about 30000+ lines of binary for one form.
Now we are migrating this application to Portal and I'm trying to display all this information through Adobe Interactive form. We do not currently have any other RFC to return all data that is part of the existing PDF document returned by current RFC. Getting all that data through one RFC is a tedious and time consuming task that we want to avoid. Is there a way to use the binary table returned by existing application and convert it to a pdf form? I was thinking of using the 'pdfsource' property of Interactive form - but am not sure about the possibilities.
Can anyone help with some pointers?
Thanks,
Vishwas.

I'm using following code to concatenate the binary string and then to display the PDF file.
Concatenation was being done in earlier application and there is no code available for reference. I've tried following code, it opens the Adobe PDF viewer but it always shows error "File does not start with %PDF-". Please let me know if the code below is correct or is there something I need to do differently.
  public void wdDoInit()
    //@@begin wdDoInit()
IWDMessageManager manager = wdComponentAPI.getMessageManager();
//Populate data for RFC
wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setKappl("V1");
wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setKschl("ZA00");
wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setKunag("0001000021");
wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setKunwe("0001000023");
wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setVbeln("0000018261");
//Call RFC
wdThis.wdGetPDF_from_Binary_compController().executeZ_Sd_Get_Output_Pdf_Verify_Input();
  int num = wdContext.nodePdf4().size();
//Initial string
  String s = "";
for(int n=0;n<num;n){
//Concatenate binary data in string with Radix 2
BigInteger bi = new BigInteger(wdContext.nodePdf4().getPdf4ElementAt(n).getData());
s= bi.toString(2);+
   manager.reportSuccess(s);
// Display pdf
    IWDResource resource = WDResourceFactory.createCachedResource(s.getBytes(), "file.pdf", WDWebResourceType.PDF);
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getUrl(0),"file.pdf");
    window.show();
   //@@end
It opens the Adobe PDF viewer but gives error "file does not start with %PDF-".
What is it that I'm not doing correctly here?
Thanks,
Vishwas.
The data being returned from RFC is in RAW format. Is it same as Binary?
Edited by: Vishwas Madhuvarshi on Mar 6, 2008 10:54 PM

Similar Messages

  • I'm having trouble converting a Word Form to a PDF form because the table cells are importing incorrectly. How can I fix it?

    I am converting a form from Word to PDF. The form includes several tables and the tables are converting with weird lines where the corners meet. I've tried everything. I've even retyped a portion of the form and tried importing it but it still had the weird lines. I'd rather not recreate the form in PDF because it's not short and I already have a perfectly good form to import. Any suggestions?

    What version of Word? What version of Acrobat? How exactly are you converting the file?

  • Fill pdf form from database table

    I am working on small application for my employer. We have record fo all new employee in table and want to fill PDF (I-9) from database using APEX application.
    Below PDF form, we want to fill from database table.
    http://www.uscis.gov/files/form/I-9.pdf
    I am not sure how to take from APEX. Any ideas?
    I know one way to export from database table and import to PDF form.
    Is there any other way?
    Thanks

    If I understand you correctly then I need to first export the xml file using Data-> Load sample XML data and later create template in template.rtf and upload data using APEX in template. In this case I need to create rtf template exactly similar to http://www.uscis.gov/files/form/I-9.pdf.
    I am not sure is there any way to to used existing pdf template or save pdf template to rtf template. Later that template can be used to populate data using APEX.

  • Fields in returned PDF form are blank unless clicked.

    I see several references to this issue, which have lead me here:
    http://kb2.adobe.com/community/publishing/885/cpsid_88564.html
    and here:
    http://blogs.adobe.com/pdfdevjunkie/2009/11/script_to_fix_mac_osx_previewa.html
    These sites offer a script that needs to be installed, but the question I have is installed where? On the computer that makes the forms? On the computer(s) (different from the origin) that receive the forms? 
    Also, maybe I am unobservant, but I cannot find a way to add to a discussed/answered question, hence I am asking this again, even though I have seen other responses.
    Thanks,

    The script is intended to go on the computer(s) that receive the forms. But if the person who receives the forms has Acrobat and the original blank form, it is better to export the form data from the damaged form and import it into the blank form, for a number of reasons.

  • SENDING PDF FORMS VIA MAILS

    Dear friends,
    I have to developed one object through which i can send
    my invoice print in pdf format to the respected users email id.
    Can this be also done via using attachment.
    We are taking Print using va02 and out put type zsin.
    Please help me out.
    Thanks and Regards
    vivek

    Vivek do you mean that you want to create a  attachment of type PDF  and this dcouemnt is a online document and
    can you let me know are you using any ABAP program or a workflow to send the email.
    Try like this
    In the program you make use of the FM FP_FUNCTON_MODULE_NAME and you have to call the function module that is generated by the above FM.
    The Properties of ADOBE forms are associated with the structure FP_FORMOUPUT fill the relevant fields in the structure.
    Now after performing the above two steps you need to convert the PDF form to BINARY for this you have to make use of the FM SCMS_XSTRING_TO_BINARY this is because you have to pass the binary content to the workflow conatiner using the Fm SAP_WAPI_WORKFLOW_START by using conatiner parameter of TABLES part.
    create a Z BO or if you are familiar with OO ABAP then create a class and inside that class or BO create a method  in side this method all you to do is the converted PDF to BINARY for this use
    SCMS_BINARY_TO_XSTRING and after converting call the FM SAP_WAPI_ATTACHMENT_ADD.
    In SAP_WAPI_ATTACHMENT_ADD you have to pass the document attributes for like name , type  title, so for this you have to fill a structure of type SWR_ATT_ID and you have to pass this to SAP_WAPI_ATTACHMENT_ADD  and this FM will retrun a DOC ID and you ahve to pass this ID to the TASK and the from TASK to workflow &_ATTACH_OBJECTS& in the workflow is responsible to handle the attachments...
    Any more help needed revert back

  • How to get contents from field of a pdf form?

    Hi Experts,
    I am creating an application in which I have a table in pdf form and the table is bound to a node of the context of the view. Now I want to change value of one column of the table and the updated value is needed in a BAPI, which will be called on a submit button. But How to get this updated value. In WebDynpro JAVA it is done automatically by reflecting back the values to the context node. How to achieve this in WebDynpro ABAP. Please Help.
    Thanks and Regards.
    Vaibhav Tiwari.

    Hi.
    You marked this question as answered. I have the same requirement. Can you please share the solution.

  • Haw to create dynamic PDF with dynamic flowing tables across pages?

    Hi!
    Sorry for my english, I use it very rarely
    I try creating PDF form with many tables (example document: https://docs.google.com/open?id=0BxTpZtaOkLBbcEJzdGJFcXVSWDJ0RlladUZJd1hMZw). But, when the table or any element hit the bottom of page, they just flow over it. Also in designer elements don't distribute across pages but just disappear on first page bottom. I want to dynamically distribute elements across pages. What I do incorrect?
    m

    Please share you form with me [email protected]
    I will try to solve the problem.
    Nith

  • How to make a PDF form call Web service and return a static pdf for user to print?

    Hi all,
    Can anyone help me regarding the feasibility of using PDF forms for my following case?
    I would like to create a Dynamic pdf form. User only have the Acrobat reader. they can enter some information. Then have a submit button. when user click the submit button, it can call the web service with data. then Web service returns a Static PDF document based on data and the user can print it out. (and maybe save as separate pdf file)
    1. Is that possible to implement? Because I know PDF can call web service, but dont know how it handle when the webservice returns another static PDF document. could it able to handle the responds and open up in another acrobat reader?
    2. As I understand I need to have Live Cycle Designer to create a pdf  and make it Reader Enabled. So user can user reader to call webservice? am I correct?
    3. What minimum reader that user need to have? PDF reader 7 or above?
    4. I have a webservice serve the same purpose for web. But if I want the same web services can serve both web and PDF form. So, whatever client (PDF or Web)make the web service call, server returns the PDF document to client. Is that possible ? Do I need to make any changes on web service?
    5. Do I need to get any other Adobe server product? (other than Live Cycle Designer )
    Thanks a lot

    We have done a similar approach in the past and yes, it can be doable.
    1. Is that possible to implement? Because I know PDF can call web service, but dont know how it handle when the webservice returns another static PDF document. could it able to handle the responds and open up in another acrobat reader?
    Srini: We have developed a Servlet to talk to Webservice. Based on the Webservice response, the Servlet, prepares the Byte stream and sends it to Webbrowser to display as a PDF. The PDF data was submitted to Servlet in XML format.
    But if you do not want to use the above approach, then you have to use the Workbench Process.
    Submit the PDF data to a Workbench process and the inside process, execute Webservice Service with the data. Once the response is received, prepare the data XML and render a PDF with it.
    To do this, you need LiveCycle Server and Reader Extensions server component.
    2. As I understand I need to have Live Cycle Designer to create a pdf  and make it Reader Enabled. So user can user reader to call webservice? am I correct?
    Srini: If you want to use the Servlet, you can Reader extend the PDF with Acrobat.. But if you want to submit the data directly to Webservice, then you need Reader Extensions server component.
    3. What minimum reader that user need to have? PDF reader 7 or above?
    Srini: Not sure but Reader 8 and above should work.
    4. I have a webservice serve the same purpose for web. But if I want the same web services can serve both web and PDF form. So, whatever client (PDF or Web)make the web service call, server returns the PDF document to client. Is that possible ? Do I need to make any changes on web service?
    Srini: If you use the Servlet approach, then you can re-use the same webservice. But if you want to submit directly to the same webservice, you may need to change it to suit your data XML.
    5. Do I need to get any other Adobe server product? (other than Live Cycle Designer )
    Srini: If you use the Servlet approach, you do not need any server component but other approach, you need Livecycle Server and Reader Extensions server component.
    Thanks
    Srini

  • Error in Data in table on pdf form...

    Hi experts,
             I am designing a pdf form in Live cycle Designer in Java Web Dynpro. Now In that form i want to show a table which can contain more than one row depending on the data fetched. Every thing is fine, but the data shown in the table in pdf form is not correct. Its taking only the first row of the dataset and showing it in the third row of the table and first, second rows of the table are coming blank. what could be the reason. please help.
    Thank and Regards.
    Vaibhav Tiwari.

    Hi,
    Please save the PDF with the three rows of data and send it to me in the following address.
    Cheers
    Satya

  • How do you change the default return email when distributing a PDF form

    Hello everyone,
    I am trying to distrube a pdf form as a customer survey to various client/contact emails.  As a test, I chose to distribute the form, filled in the form distribution information and I send the form to myself. However, when I filled it out and chose 'submit form' it prompted me with the return email address that I know is incorrect and want to change.
    As the author of the form, I need to change the default return email address, but there is no option to do so when I choose to distribute the pdf form  or any new form that I create (only prompted me the very first time I chose to distribute a form). 
    Does anyone know how to change the return email address and information for form distribution?  Can someone please help me with this? 
    Thank you very much!
    -Ryan

    The email address that it uses it what is set in the Identity user preference: Edit > Preferences > Identity > Email Address
    so change it there before you distribute.

  • Hi I have trouble returning a completed PDF form to sender - it looses my filled in info - how do I solve this?

    Hi I have trouble returning a completed PDF form to sender - it looses my filled in info - how do I solve this?

    Are there any dialog boxes popping up behind your Yahoo screen?
    I have intermittent problems attaching files in Yahoo mail and this is usually the reason.  I'm also using an iMac (10.7.3) and this is likely the problem.
    It is generally a Yahoo issue rather than a Mac problem.

  • How to return fillable pdf form via distribute function in live cycle?

    I am trying to have a fillable form be submitted back/returned by e-mail (through using outlook)to multiple users, via the distribute form function through livecycle, so that they know a pdf form has been completed and sent back and that I can place the information in the dataset as well (in case I need to export the info). Currently the distribute function only accepts it going to one e-mail, even if I seperate the e-mails with a ";". How do I have the form e-mail multiple users and allow me to place the form field data go into a dataset via distribution?

    I tried it and I am seeing what you are seeing. If I send to a single user then it works fine. I think it might be outlook blocking the multi-address through programmatic interfaces. They do this so that viruses cannot turn your mail client into a spam generation. This is simply a guess.

  • PDF form from Excel spreadsheet/table

    I am developing a process where folks enter data (all text) to a central spreadsheet, and someone uses Acrobat X to generate a form. The form needs checkboxes (one per table row), and a digital signature above the table. I'm running into a couple of issues:
    1) I am trying to automate the creation of checkboxes, so that whoever is generating the final PDF form does not need to add a checkbox for each row. I noticed that in Excel, in Develop mode, one can add checkboxes, and on my first try, the PDF form creator seemed to translate those automatically into PDF form checkboxes so that no extra manual step was needed. In my last few tries, the conversion no longer auto-converts checkboxes. Any tips on this?
    2) I also noticed that whereever there is blank space, the form creator inserts a text field. Even for table cells that have text in them, if there's any white space, presto, here comes a text field inserted into that very cell, usually named after the text already in the cell. Is there any way to avoid this?

    Which version of Acrobat do you have? If X, then there should be an option
    in your Excel to Mail Merge the spreadsheet, which is basically what you
    describe. However, I'm not sure if it can also automatically email the
    files to the recipients.
    I have developed a script that can do the merge, *and *automatically email
    the file to each person. Have a look here for more info:
    http://try67.blogspot.com/2011/09/acrobat-mail-merge-and-email.html

  • Can the responses submitted from a pdf form be viewable in a table format in SharePoint?

    I created a pdf form with Acrobat X. My plan it to upload the form to SharePoint and allow users to use this form to submit "help desk" type issues. However, I have a virtual team that need to view the responses in a table format so they can filter and sort the growing list of responses. Acrobat seems to only allow me to save the "response" file on my own desktop, not SharePoint. Is there a way for the responses to be stored and viewed in a SharePoint workspace so that members of the virtual team can view and sort the users' responses in a table format?

    Yeah that's the best bet, though if you don't want to make a bunch of fields, you can also just save it with the Typewriter tool enabled in Acrobat (Tools > Typewriter > Enable Typewriter Tool in Adobe Reader).  Then, the person viewing it will get a little typewriter tool that they can use.  I think they have to have version 9 of Adobe Reader.
    But it looks the best to add in all the fields individually.
    Hope that helps,
    Phyllis

  • Adobe PDF Form: Include text in table

    Hi,
    Im kinda new to Adobe Forms, and this may seem like a very basic question.
    I have copied a standard SAP VAT invoice adobe form and Im making changes to it.
    I have added an "include text" (which has multiple lines) to an already existing table with multiple columns.
    The problem is that while the include text prints correctly when it expands, the entire table does not expand along with it.
    So when the include text goes into many lines, it exceeds the table boundary and overwrites other areas of the form.
    The table layout is like this .
    Column1                Column2 Column3 Column4 Column5 Column6 
    Inc text                    50$        1.00       PAID       DELIV
    Many Lines       -
    Line3
    Line4
    Line5
    Is there any grouping or somehting that i have to do?
    Thanks,
    John

    Basically, you need to create a pdf form.
    Add a text field to your form.
    There you can choose which font your want the text to appear in.
    The trick is, when you export from InDesign, in the "Advanced Tab" — set "Subset fonts when percentage…" to 0%, so the whole font embeds.'
    I believe there's an option in Acrobat to embed the font as well, but I'm not recalling what it it.
    But that will ensure the font appears correctly.
    d

Maybe you are looking for

  • Question on Schedule Manager (SCMA)

    Hi all, Is there a way for me to setup Schedule Manager (SCMA) directly in production without opening the production client for direct change?  Currently, any change that I make related to this transaction on both QA and Prod systems results to error

  • Can't use DBLINK in Forms 4.5!!!

    Hi All, Can i use dblink in forms 4.5..b'coz it is giving me an error.. like PL/SQL Check#20108 Pls. inofrm your Oracle represnative Thanx in advance!!!

  • How can I automatically rename files based on an excel doc?

    I am a scientist and recieve data files from some of my experiments with arbitrary, computer-generated names. For example, if I perform an experiment with four samples, which I name Sample1, Sample2, Sample3, and Sample4, I get back 4 data files name

  • Finding problem when displaying a Interative list report

    Hi All,     I have a req where i have to display some records in my detail list after clicking on the primary list.     On th basis list i have a user command 'A' and some of records are being displayed on my screen.     Here i have to click on any o

  • Delivery created with out stock

    Hi folks,              Sales order has been created for 'X' material,but there is 0 stock available for this material "X", ATP has been carried out and has proposed a further date, but when try to create a delivery,delivery documnet has been created