File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes iText PDF export Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "iText PDF export" Watch "iText PDF export" New topic

iText PDF export

Vijay Ramasamy

Joined: May 10, 2010
Posts: 5
Hi, I am trying to export PDF using iText. I am having difficulties in setting up the line width for the header and footer. I am creating objects of PDFTemplate, it draws up the line, but when i make the zoom to 100% I see that the Header line is thicker than the Footer line.
Not sure how iText manages the line thickness. Even i tried setting up the setLineWidth() method, but no use. Any help is much appreciated.

Martijn Verburg

Joined: Jun 24, 2003
Posts: 3275

Hi Vijay and welcome to Javaranch!

Can you tell us what version you are using and show a snippet of your code?

Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Vijay Ramasamy

Joined: May 10, 2010
Posts: 5
Hi Martijn,


I am using iText 2.1.0 and following is my code snippet:

Following code has NO effect on both the handlers (Header & Footer):
Vijay Ramasamy

Joined: May 10, 2010
Posts: 5
Any help is much appreciated. Thanks.
I agree. Here's the link:
subject: iText PDF export
It's not a secret anymore!