This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Anyone else used iText before?? - having border isssue

DC Dalton
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im using the iText package to creat PDF files from my program. Its working fine except on MAJOR issue. No matter what I do I get margins on the sides of the document. I have tried everything I can find in the package but to no avail. Im using this constructor :
Rectangle pageSize = new Rectangle(612, 792);
Document document = new Document(pageSize, 0, 0, 0, 0);
Which SHOULD give me a 8.5 x 11 document with NO margins. The top & bottom are fine, no margin but no matter what I do I get side margin of a inch, both in the actual pdf & when I print. This is reeking havok with the pages I need to print out. Im also setting my table to 0 EVERYTHING, I dont think thats it....I think its the document thats causing the issue, but here is the table code:
Table table = new Table(3);
If anyone can help please let me know, Im running short of hair to pull out! Thanks
[ October 21, 2002: Message edited by: DC Dalton ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic