Skip to Content
avatar image
Former Member

Showing PDF without using InteractiveForm

Hi experts,

I receive PDF content from a RFC in the "XSTRING" format.

I can show this in an interactive form (by mapping the pdfSource property of my InteractiveForm with the Xstring), but then we need to install ACF on all the PCs of the customer.

So what I would like to do is display a PDF not included in a Web Dynpro.

I read in this forum (from Bogdan) that this could be a solution:

byte[] pdfContent={here document is created};

IWDCachedWebResource pdfResource=WDWebResource.getWebResource



pdfResource.getURL(),"Report View",true).open();

But how can I convert my Xstring format to byte[] ?

Thanks in advance for your answers.



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 07, 2005 at 06:33 PM

    any suggestions ?

    I have the same problem.

    thanks in advance.


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Julien.

      Yesterday I can solved it.

      I found a solution in a post, and it works.

      I am only coded this in the wddoInit, and I use a FileDownload UI element.

      //segun nota

      /* The FileDownload UI element requires: */

      final IWDAttributeInfo fileAttrInfo = wdContext.nodeOutput().getNodeInfo()


      final IWDModifiableBinaryType pdfType =




      /* In addition the FileDownload

      • UI element needs for defined resource types


      pdfType.setFileName( "MyPdfFile.pdf" );

      pdfType.setMimeType( WDWebResourceType.PDF );


      "bin_file" is the xstring parameters that return my RFC module function.

      Really I don't know the difference with your sample (I am newbbie in Java and webdynpro) but this code is the way that works in my aplication.

      Thanks a lot anyway!



  • Dec 15, 2005 at 03:37 AM

    Hi Julien,

    We have similar kind of requirement( reading PDF from RFC through JCO and saving it as PDF file in target system). The problem we are facing is when we are using XSTRING format in RFC its not supporting. Can you please tell us how to implement this. Currently we are reading pdf data as RAWDATA into a table, and this data is appending into multiple rows of the table. When we read PDF in this format the generated PDF is corrupting. Can you please tell us how to proceed?

    Thanks in advance 😊



    Add comment
    10|10000 characters needed characters exceeded