Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos
Introduction
This weblog presents Java code to create a PDF file to be displayed in EP6 portal using AbstractPortalComponent.
I currently use this solution to convert all my reporting htmlb table display to PDFs.
I am going to use iText's open source api to create a PDF file.
These apis can also be used to read PDF file. For more information about api check out the site. www.lowagie.com/iText/.
There is plenty of documentation and example code at this site.


Required Jars:
You can download the following iText jar from http://www.lowagie.com/iText/download.html.

servlet.jar, itext-1.2.jar


Steps to create PAR component

Step 1:
Create an AbstractPortalComponent using Eclipse or Netweaver Studio. Add the above jar (itext-1.2.jar) to PORTAL-INF->lib folder.



Step 2:
Add the following lines to doContent method.


Step 3:
Deploy it in portal and run it. You should get the following output.
6 Comments