You can only add metadata after creating the PdfWriter and it's also safer to get the PdfContentByte after opening the document. The metadata is in the Info dictionary and is never compressed, look near the end of the document. Printer drivers can offset, shrink, skew and generally distort the picture and the same go for the printers themselves. Add to that that Acrobat itself has the option shrink to fit and others that make the dimensions change. In general postscript printers are more precise by virtue of the almost inexistent conversion.
Best Regards, Paulo Soares ----- Original Message ----- From: "David Thielen" <[EMAIL PROTECTED]> To: "itext" <[EMAIL PROTECTED]> Sent: Saturday, March 08, 2003 15:27 Subject: Re: [iText-questions] Problems with headers & positioning Hello; I ran this with Document.compress = false; and the generated pdf is correct. So Acrobat is causing problems 3 - 5 below. Which is pretty bad for something that claims to create exact documents. But still no author or header. Any ideas on that? thanks - dave ----- Original Message ----- From: David Thielen <mailto:[EMAIL PROTECTED]> To: itext <mailto:[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 8:31 PM Subject: [iText-questions] Problems with headers & positioning Hi; I wrote the attached simple program to show the problems I am having: 1. It does not show the author 2. It does not show the header (unless it's in some compressed stream). 3. The baselines of the 4 lines of text should be at multiples of 1". However, y starts off at 1-7/32" and by the fourth line it's at 4-1/8" So it's offset and shrinking. The X origin does the same thing, starts off at 1-1/8" and is at 3-15/16" by the fourth. 4. The boxes should all be 1"x1" boxes at 1" multiples. However, they are all 15/16"x15/16" boxes and their offset is also shrinking. 5. Same with the bitmap, both the offset and the size. Am I missing something here? I can understand a printer driver offsetting everything on the paper a little. But the fact that everything on the paper (I printed the test.pdf to measure) is smaller is worrisome. Any ideas? thanks - dave ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
