Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iText PDF export

 
Vijay Ramasamy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vijay and welcome to Javaranch!

Can you tell us what version you are using and show a snippet of your code?
 
Vijay Ramasamy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any help is much appreciated. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic