Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Anyone else used iText before?? - having border isssue  RSS feed

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 ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!