• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

iText PDF export

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any help is much appreciated. Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic