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

    Hi,

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

    http://www.lowagie.com/iText/download.html

    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.

    Regards,

    Vishweshwara P.K.M.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Smruti,

      You can use this doc.

      http://scn.sap.com/docs/DOC-2627

      or

      included the ITEXT.jar

      then follow the below

      Document document = new Document(PageSize.A4);

      document.open();

      PdfPTable table = new PdfPTable(1);

      PdfPCell cell;

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

      table.addCell(cell);

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

      table.addCell(cell);

      document.add(table);

      document.close();

      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"));

      regards,

      Ram

  • May 26, 2012 at 05:44 AM

    Hi Smruthi,

             Follow the below thread. it will be very helpful

    http://scn.sap.com/thread/2126000

    Regards

    Uday

    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)

    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50fd998b-494f-2b10-c2ab-e3513a857f62?QuickLink=index&overridelayout=true

    How to check if the ADS Service is running properly
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60afe503-74e0-2a10-59b1-d92ad0dff62b?QuickLink=index&overridelayout=true

    Tutorial on installing credentials and configuring ADS

    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f03414f8-d4ce-2a10-d4b6-ab201b329d98?QuickLink=index&overridelayout=true

    Regards,

    -Amol Gupta

    Add comment
    10|10000 characters needed characters exceeded