File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "iText PDF export" Watch "iText PDF export" New topic
Author

iText PDF export

Vijay Ramasamy
Greenhorn

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.

Vijay.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

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
Greenhorn

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

Thanks!

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



Following code has NO effect on both the handlers (Header & Footer):
xxxxxx.setLineWidth(1);
Vijay Ramasamy
Greenhorn

Joined: May 10, 2010
Posts: 5
Any help is much appreciated. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: iText PDF export
 
Similar Threads
How insert page footer in pdf when copy the pdf
Identify Header, trailer (footer) , Watermark and Body Sections for Existing PDF using iText5.0.5
Itext pdf jar 5.0.6 help
Adding Header and Footer to an existing PDF
How to convert word doc byte array into pdf programatically in struts action