on 05-17-2012 8:12 PM
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
sap standard solution----generate form by adobe document service,
general java solution, google it, some open source lib can do that job. pdfbox, itext...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
Regards,
-Amol Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Smruthi,
Follow the below thread. it will be very helpful
http://scn.sap.com/thread/2126000
Regards
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.