• 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);
table.setTableFitsPage(true);
table.setBorder(0);
table.setDefaultCellBorder(0);
table.setPadding(0);
table.setSpacing(0);
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
Boost this thread!