cancel
Showing results for 
Search instead for 
Did you mean: 

Export to pdf FORMAT

smruti_moharana
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

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

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

Answers (3)

Answers (3)

amolgupta
Active Contributor
0 Kudos

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-e3513a857...

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-d92ad0dff...

Tutorial on installing credentials and configuring ADS

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f03414f8-d4ce-2a10-d4b6-ab201b329...

Regards,

-Amol Gupta

udaykumar_kanike
Active Contributor
0 Kudos

Hi Smruthi,

         Follow the below thread. it will be very helpful

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

Regards

Uday

Former Member
0 Kudos

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.

smruti_moharana
Participant
0 Kudos

Dear Viswa,

MY Application is a webdynpro application canot be reusable,when i am displaying the url in internret explorer it is not displayed, is there any restriction for local webdynproapplication to display pdf through rfc.

Thanks & Regards,

Smruti Ranjan Moharana

junwu
Active Contributor
0 Kudos

what technology you are using to generate pdf?

how you display it?

SandipAgarwalla
Active Contributor
0 Kudos

If your application is wDJ., have you tried using Interactive PDF UI element in your view?

This is one of the easiest way  to display PDFs in WDJ apps.

You need to configure ADs server for it.

So from Oracle, get the data via beans or something, put it in global controller then map it to the view context (or direct) then pass the data onto the PDF UI element.

Sandip

smruti_moharana
Participant
0 Kudos

sanddp ji,

Thanks alot for ur reply if u have some step by step guide please provide it.

Thanks & Regards,

Smruti Ranjan Moharana

SandipAgarwalla
Active Contributor
0 Kudos

Go thru this link - this will get your started..

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

Then you can search in SDN for detailed steps

Sreejith1
Contributor
0 Kudos

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