Skip to Content

Export to pdf FORMAT

Dear Experts,

In my current application i am getting data from oracle system and i want to convert into pdf format please guide me how to proceed.

Thanks & Regards,

Smruti Ranjan Moharana

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    May 17, 2012 at 10:30 PM

    sap standard solution----generate form by adobe document service,

    general java solution, google it, some open source lib can do that job.  pdfbox, itext...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 18, 2012 at 03:42 AM


    You can achive this by means of IText Jar file, which you can find in the below link.

    You can create an external library DC and put this JAR in it and create public parts out of it. Use these public parts in your web dynpro DC to convert the context node data into a PDF file.


    Vishweshwara P.K.M.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Smruti,

      You can use this doc.


      included the ITEXT.jar

      then follow the below

      Document document = new Document(PageSize.A4);;

      PdfPTable table = new PdfPTable(1);

      PdfPCell cell;

      cell = new PdfPCell(new Paragraph("ONE"));


      cell = new PdfPCell(new Paragraph("TWO"));     




      byte[] b = new byte[100 * 1024];

      b =  document.toString().getBytes("UTF-8");


      IWDCachedWebResource pdfRes = WDWebResource.getPublicCachedWebResource(b, WDWebResourceType.PDF, WDScopeType.CLIENTSESSION_SCOPE,      wdThis.wdGetAPI().getComponent().getDeployableObjectPart(),"FileNameHelloText"));



  • May 26, 2012 at 05:44 AM

    Hi Smruthi,

             Follow the below thread. it will be very helpful



    Add comment
    10|10000 characters needed characters exceeded

  • Jun 08, 2012 at 08:19 AM

    Hi Smruti,

    You need to use an Adobe Interactive Form. These docs are slightly old but will give you a fair idea towards how to do it.

    There is an Interactive Form UI element in Web Dynpro Java. There might be some more open source alternatives but this one will be officially supported by SAP.

    Adobe Interactive Form Development within WebDynpro Java can be a little tedious but once development is complete, its very stable in production.

    An insight into Adobe Document Services (ADS)

    How to check if the ADS Service is running properly

    Tutorial on installing credentials and configuring ADS


    -Amol Gupta

    Add comment
    10|10000 characters needed characters exceeded