Forms Service generated pdf null data

I'm using the Visual Studio project from the livecycle blog (http://blogs.adobe.com/livecycle/2008/01/invoke_livecycle_with_visual_b.html) to merge the sample purchase order (PO.pdf) with xml data.
lcFormsResult.outputContent.remoteURL comes back with a valid url, which I can open in IE to view the pdf. However, I would like to get the binary data and display that instead, but lcFormsResult.outputContent.binaryData is coming back as Nothing, likewise with blobRenderPDFForm.binaryData. Any idea why this might be or how I can get the binary data?

The BLOB type is used to represent the com.adobe.idp.Document object in WSDL. The BLOB type is used to send/return the data to/from the LiveCycle server via the following ways: <br /><br />(1) Base64-encoded string passed in the BLOB.BinaryData field.<br />(2) MIME or DIME attachment with the attachment id passed in the BLOB.AttachmentID field.<br />(3) Web hosted resource addressed with HTTP URL passed in the BLOB.RemoteURL field.<br /><br />Sometime back, the default way for result BLOBs has changed from (1) to (3). The reason is that the SOAP Reply message is much smaller this way, as it doesn't include the actual Document content. <br /><br />If you still want to get the data as base64 encoded string in BLOB.BinaryData field, then you will have to update your code to enforce the base64-encoded way. <br /><br />To achieve it, the service SOAP URL must be appended with a special "?blob=base64" postfix. Here is an example of how this can be done in C#:<br /><br />EchoServiceService service = new EchoServiceService();  <br />service.Url = <br />"http://<host>:<port>/soap/services/EchoService?blob=base64";<br /> . . .<br /><br />Here is a Java example:<br /><br /> EchoServiceServiceLocator locator = new EchoServiceServiceLocator();  java.net.URL url = new java.net.URL(<br />     "http://<host>:<port>/soap/services/EchoService?blob=base64");<br />EchoServiceService service = locator.getEchoService(url);  <br />. . .<br /><br />Thanks,<br />Mayank Gupta

Similar Messages

  • Smart forms convert to pdf binary data

    Dear All,
    I'm working on smart forms integrations with .net and  I need to send the smart forms PDF binary data though custom rfc .
    For that i'm  converting smart forms otf  data  to pdf in and pass this data  through rfc but this idata is is not wokring on .net guys when they are converting this on pdf..
    so is there any need of decoded smart forms otf data before passing through or i'm missing some basic step?
    Please guide me?
    Rg
    Anuj

    hi,
    Have a look on this wiki:
    [http://wiki.sdn.sap.com/wiki/display/Snippets/SmartformoutputtoPDFformat]
    And maybe this one could also interest you:
    [|http://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment]
    regards
    mickael

  • Reports generated with null data

    Hi,
    I setup a role which has read access to all records under different tab corretly. However, the reports are displayed with null data. Any idea?
    Thanks VK

    Hi Bobb,
    "Role-Based Can Read All Records" equal to No in my configuration. Requirement is not to allow report creation on others data.
    So, if I make it Yes, then they can access all data in CRMOD and create report. Please let me know if my understanding is correct.
    Thanks VK

  • Getting PdfSource property of a generated PDF --- null

    Hi All,
    I have generated an interactive PDF form. I want to uplaod it in KM and also send it through e-mail. I suppose the PdfSource property should contain the binary data of the form through which I can upload it in KM.
    But at runtime I am getting PdfSource value as null.
    Further I also need to email it.
    Please help.
    Thanks!

    Anubhav,
    Try this..
    Make sure pdfsourcce is type XSTRING.
    You have checked enabled on Interactive form .
    display type: native
    DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_pdfsource LIKE ls_context-pdfsource.
    get element via lead selection
      lo_el_context = wd_context->get_element(  ).
    get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `PDFSOURCE`
        IMPORTING
          value = lv_pdfsource ).
    Now use FM 'SCMS_XSTRING_TO_BINARY' to change it to binary
    and finally save this  in KM.
    cheers
    Vara

  • PDF form with one submit button that prints form and sanves PDF with data with a unique file name

    We have a long medical form that patients can fill out at kiosks as they wait to see a doctor. We want one button so that the patient can print out the form with one click (and finish filling it out by hand if it's not finished already) and the same button click will save the form with a unique file name (using last name, first name, date, and/or email address so that the identity of the person who filled out the form will be readily apparent to anyone who wants to grab the user's responses later). Is Acrobat capable of doing something like this? LiveCycle Designer maybe? And if we continue with the PDF form and add a submit button, is there a way to program the button click to print and to save?
    Thank you in advance of any suggestions that might accomplish this task.

    I am not sure about the print, but it can probably be done -- possibly with a bit of JavaScript. As to the saving of the form, that is not reasonable at a kiosk. You would want the data submitted to a server (particularly with patient data), no e-mail or accessible drive. You can collect the data and put it in a database or import it to the form for printing yourself.

  • XML not generating when null data present in the table

    Lets consider employee and dept tables and say one employee works in multiple departments,
    Dept table data:
    case1:
    emp_id     dept_name      dept_id
    1     Oracle     55
    1     Datawarehouse     56
    case 2:
    emp_id     dept_name      dept_id
    2     Oracle     55
    2     Datawarehouse     56
    2     Clearing House     
    2     Java     
    In Production environment, the below code generates xml for case 1 but not for case 2. In test environment , xml is getting generated for both the cases. It looks like null handling issue but why the same code behaves differently in qa and prod. dbms_xmlgen.getXML is not generating any exceptions. Any help would be appreciated.
    DECLARE
    ctx dbms_xmlgen.ctxHandle;
    xml CLOB;
    emp_no NUMBER := 7369;
    i PLS_INTEGER;
    BEGIN
    ctx := dbms_xmlgen.newContext('SELECT emp_id,name,salary, cursor(select emp_id, dept_name,dept_id from dept b where a.emp_id=b.emp_id) FROM emp a WHERE a.empno = '|| emp_no);
    xml := dbms_xmlgen.getXML(ctx);
    i := dbms_xmlgen.getNumRowsProcessed(ctx);
    dbms_output.put_line(TO_CHAR(i));
    END;
    Edited by: user512219 on May 22, 2012 12:52 PM

    Give the database version anyway, it could be a known bug.
    Are the NULL column(s) part of the join predicate?
    It's difficult to help in this situation, nobody but you has the real test case, so try to give as much details as possible.
    Wild guess : does this make a difference?
    dbms_xmlgen.setNullHandling(ctx, dbms_xmlgen.EMPTY_TAG);Edited by: odie_63 on 22 mai 2012 23:40

  • Need to add flex grid in livecycle form to generate dynamic PDF

    Hi,
    not sure this is the right fourm or not, but I require a way to add flex data grid in my livecycle form to generate PDF containing flex grid.
    I tried adding a flex swf in Flash Field in Live cycle but it is giving me
    Error #2032: Stream Error. URL: file://PDFMedia026281/g/framework4.6.0.23201.swf
    I am new to this environement so any help would be great.

    Hi,
    with Designer ES3 (formerly know as ADEP Designer) you can use Flash files within XFA forms.
    Check Niall O'Donovan's article.
    He has prepared a nice example of using flash charts which can be manipulated at runtime.
    http://www.assuredynamics.com/index.php/2011/10/whats-new-in-adep-designer/

  • Custom Purchase Order template causes Error while generating PDF

    The standard XSLFO works, my custom one errors:
    History of the world:
    1) I downloaded the XML Publisher thing for Word, installed it no problems
    2) Downloaded the XML data definition for the Standard Purchase Order from XML Publisher Administrator
    3) Created a blank word document and created the purchase order layout from scratch using the XML Publisher plug-in
    4) Previewed it as a PDF in word - it looked fine (well, it was a start)
    5) Exported the XSLFO
    6) In XML Publisher created a new template and uploaded the XSLFO
    7) Assigned the new template to the document in Purchasing
    All good... the new template is defintately the one being used by the PO Output for Communication program. The problem of course is that it throws a useless error message :) - namely:
    PoPrintingUtil.getBlobPDF(input,input) - After initializing the FOProcessor
    PoPrintingUtil.getBlobPDF(input,input) - After setting the i/o stream and output format
    PoPrintingUtil.getBlobPDF(input,input) - Error while generating the PDForacle.apps.xdo.XDOException
    genDoc() : Exceptionjava.lang.Exception: Error while generating PDF :null
    java.lang.Exception: Error while generating PDF :null
    java.lang.Exception: Error while generating PDF :null
         at oracle.apps.po.communicate.PoGenerateDocument.genDoc(PoGenerateDocument.java:2011)
         at oracle.apps.po.communicate.PoGenerateDocumentCP.runProgram(PoGenerateDocumentCP.java:421)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:148)
    When I run POXPOPDF in Debug I get:
    getArchiveOn(): APPROVE
    After calling genDocThu May 18 12:50:05 EST 2006
    Adding the blob to vector
    java.lang.NullPointerException
    java.lang.NullPointerException
         at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
         at oracle.apps.po.communicate.PoGenerateDocumentCP.runProgram(PoGenerateDocumentCP.java:304)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:148)
    I know no one can magically fix this for me (I wish!) but does anyone have any suggestions on what to do next? I have no conditional formatting or any other more complex functionality, just a really boring PO layout with a logo.
    Any suggestions welcome, in the meantime I will keep trawling through Metalink in search of a clue ;)
    Thanks
    Jo

    Hi Jo,
    The first version for which the Template Builder was released is 5.0
    Well, I guess I am one of the few who has a backported 4.5 version of the template builder. I did that for testing exactly your case. I just replaced our xdocore.jar file with the 4.5 version and it worked. The core.jar is not easily available. The files are part of the 4.5 patch, but I think it is too much work to get them out.
    However, I would strongly recommend to upgrade to a later version of XML Publisher. We made huge improvements, since 4.5 - performance, translation, RTF template capabilities....
    I just checked the process of converting an RTF template to FO and uploading it to EBS with 5.6.2 and it still worked. So it seems you can go straight to the latest version.
    Hope that helps,
    Klaus

  • Retaining labels on JPanel as text while generating PDF

    Hi,
    Our application is having a JLayeredPane on which user can create multiple components, draw arrows,text,etc. In short it is like bitmap. On this JLayeredPane, we can create tables and have some data into it. When the user generates PDF this data must get copied, to excel sheet or notepad for further analysis. Now the problem is that whenever we try to generate PDF with the image of panel as I am able to get BufferedImage of the entire JLayeredPanel, we are not able to fetch data from tables as this is the image getting inserted into PDF. So can any one suggest me about how to proceed?
    Thanks.

    Hi Jo,
    The first version for which the Template Builder was released is 5.0
    Well, I guess I am one of the few who has a backported 4.5 version of the template builder. I did that for testing exactly your case. I just replaced our xdocore.jar file with the 4.5 version and it worked. The core.jar is not easily available. The files are part of the 4.5 patch, but I think it is too much work to get them out.
    However, I would strongly recommend to upgrade to a later version of XML Publisher. We made huge improvements, since 4.5 - performance, translation, RTF template capabilities....
    I just checked the process of converting an RTF template to FO and uploading it to EBS with 5.6.2 and it still worked. So it seems you can go straight to the latest version.
    Hope that helps,
    Klaus

  • Image not displayed in pdf generated using Java API for Forms service

    Hi,
    I am creating a pdf document using Java API for Forms Service.
    I am able to generate the pdf but the images are not visible in the generated pdf.
    The image relative path is coming in the xml as defined below. The images are stored dynamically in the Livecycle repository each time a request is fired with unique name before the xml is generated.
    <imageURI xfa:contentType="image/png" href="../Images/logo.png"></imageURI>
    Not sure if I need to specify specify specific URI values that are required to render a form with image.
    The same thing is working when I generate pdf document using Java API for Output Service.
    As, I need to generate interactive form, I have to use Forms service to generate pdfs.
    Any help will be highly appreciated.
    Thanks.

    Below is the code snippet:
                //Create a FormsServiceClient object
                FormsServiceClient formsClient = new FormsServiceClient(myFactory);
                //Specify URI values that are required to render a form
                URLSpec uriValues = new URLSpec();
                                  // Template location contains the whole rpository path for the form
                uriValues.setContentRootURI(templateLocation);
               // The base URL where form resources such as images and scripts are located.  Whole Image path is passed in BaseUrl in the http format.
                      String baseLocation = repositoryPath.concat(serviceName).concat(imagesPath);   
                                  uriValues.setBaseURL(baseLocation);                                        
                // Set run-time options using a PDFFormRenderSpec instance
                PDFFormRenderSpec pdfFormRenderSpec = new PDFFormRenderSpec();
                pdfFormRenderSpec.setCacheEnabled(new Boolean(true));           
                pdfFormRenderSpec.setAcrobatVersion(com.adobe.livecycle.formsservice.client.AcrobatVersio n.Acrobat_8);
                                  //Invoke the renderPDFForm method and write the
                //results to a client web browser
                String tempTemplateName =templateName;
                FormsResult formOut = formsClient.renderPDFForm(tempTemplateName,
                                              inXMDataTransformed,pdfFormRenderSpec,uriValues,null);
                //Create a Document object that stores form data
                Document outputDocument = formOut.getOutputContent();
                InputStream inputStream = outputDocument.getInputStream();

  • In Responses, Can I export the data in a pdf form excluding null data?

    In Responses, Can I export the data in a pdf form excluding null data?

    Let me make sure I understand the request...  There is a feature in the Response table to "Save Response as PDF Form" and you'd like to do this excluding the null data (unanswered questions).  If that is correct it is not supported, the "Save Response as PDF form" will save a PDF that is the entire form filled out as the user filled it.
    Thanks,
    Josh

  • Cannot Save generated PDF, and associated data file is in french not english

    Hello,
    So I have 2 weird issues.
    First, after I save my newly created form as a PDF, I send it off to my coworker, they cannot save the document after filling it out, only print.  Checking the security settings on the document, everything is allowed except document assembly, changing the document, and creation of template pages, yet they cannot save the filled out form only print.  Created in LiveCycle Designer ES 8.2 with Adobe Reader 9.
    When I generated previewed data, the saved data is in french yet all of my settings are English including program, OS, and regional settings are all English US.
    Need help asap.

    Thanks for the reply.
    The option I was trying to do is:
    User has the Reader (form Reader Enabled using the full version of Acrobat before deployment. See licence restrictions)
    user can open form;
    fill it in;
    print it;
    data connections to databases and web services will NOT work;
    user can save the form.
    The actual answer to the question is this:
    Enable Reader users to save form data
    Ordinarily, Reader users can’t save filled-in copies of forms that they complete. However, you can extend rights to Reader users so they have the ability to do so. These extended rights also include the ability to add comments, use the Typewriter tool, and digitally sign the PDF.
    Open a single PDF, or select one or more PDFs in a PDF Portfolio.
    Choose Advanced > Extend Features In Adobe Reader.
    The other question regarding the data in french is still unknown why it is doing that.

  • New to Lifecycle, Error while generating PDF using Output service

    Hi All,
    I am using LC 8.x for weblogic. I am using the code given in the documents to generate PDF given XDP and XML data, using Output Service. I am getting the following error,
    Exception in thread "Main Thread" com.adobe.idp.DocumentError: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: Failed to load class com.adobe.idp.DocumentFileID (see the server-side log for details)
    at com.adobe.idp.DocumentManagerClient.clientSidePush(DocumentManagerClient.java:181)
    at com.adobe.idp.Document.passivateInitData(Document.java:865)
    at com.adobe.idp.Document.passivate(Document.java:704)
    at com.adobe.idp.Document.passivate(Document.java:661)
    at com.adobe.idp.Document.writeObject(Document.java:500)
    Any help is greatly appreciated.
    Thanks
    Raghu

    Hi
    I am also doing a similar activity. and getting a IllegalStateException.
    com.adobe.livecycle.output.exception.OutputException: java.lang.IllegalStateException
    at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(OutputClient.java:141)
    at CreatePDFDocument.main(CreatePDFDocument.java:56)
    Caused by: java.lang.IllegalStateException
    at com.adobe.idp.dsc.clientsdk.ServiceClientFactory$1.handleThrowable(ServiceClientFactory.j ava:67)
    at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:220)
    at com.adobe.livecycle.output.client.OutputClient.invokeRequest(OutputClient.java:436)
    at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(OutputClient.java:124)
    ... 1 more
    Caused by: java.lang.NoClassDefFoundError: org/apache/axis/soap/SOAPConstants
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.createMessageDispatcher(ServiceClientFac tory.java:586)
    at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.getMessageDispatcher(ServiceClientFactor y.java:543)
    at com.adobe.idp.dsc.clientsdk.ServiceClient.getMessageDispatcher(ServiceClient.java:239)
    at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:205)
    ... 3 more
    Please give a solution for this problom.
    regards
    Ullas

  • Generating PDF from form

    Is it possible to create a form that the user would fill with data ant that could click on a button to generate a pre-defined ready document that would have a different layout that the form but would contain the entered data?
    For example:
    User opens a form wher he is asked to provide his name - John
    He enters his name
    he clicks [FINISH]
    the form opens a PDF document that sais: Hello John!

    One possible way of accomplishing this would be to create a button (the "finish" button in this case)  which exports the form data and opens another file that has fields mapped to import the data created by the first form. You would have to provide a name for the file to which you are exporting data, so it may be better to have one button export the data and another launch the second form with the imported data.

  • API for generating PDF Form

    How can i generate PDF Form from .NET coding?

    Etymon� PJ is a developer toolkit for parsing, modifying, and creating PDF documents. The main part of the toolkit is a Java class library that provides software developers with an object representation of a PDF document and offers the following features:
    # Read and parse an existing PDF document
    # Extract data from an existing PDF document
    # Modify an existing PDF document
    # Create a new PDF document
    check this link
    http://www.etymon.com/pj/
    Renjith

Maybe you are looking for

  • Campaign determination log was switched on

    Dear Guru's In the Order Screen We have campaign management Whcih I have Turned On. Can you explain What is Campaign Management ? and What is the use of the same. regards, Amlan Sarkar

  • Cover Flow preview in Finder fails to work

    Hello, I updated recently to  OS X Mavericks, and since i updated there have been problems in the Preview (Cover Flow preview in Finder. When i open a folder and scroll down items, sometime there are 10 images and in cover flow shows only half and th

  • Word documents disappeared from iPad

    Hi! I recently downloaded Office for iPad and continued a book I am writing in Word, since I find it easy to use. After two days of writing (before i saved a back-up), I wanted to open the document (I saved it on my iPad), but it had disappeared! Whe

  • Image attach to a result list

    which are the folders we need to keep the images in so that we can attach the pics in a result list

  • Unable to connect macbook air with iphone 5s using bluetooth

    both the system able to pair the devices but getting disconnected within 1 sec. While same iphone 5s is connected to other bluetooth devices like my car's system.