I suspect your PDF's media/crop/etc boxes aren't set to 0,0,wid,heigh, but Something Else. You need to take the page's actual lower left corner into account when you set the CTM. Your current code ass-u-mes 0,0, and it looks like its wrong in this case. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer<Cardiff> DisCard = null;
________________________________ From: Dean Krueger [mailto:dmkrue...@gmail.com] Sent: Monday, May 10, 2010 11:15 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Problems with ConcatCTM Hi, I have a PDF that I am changing the art,trim,crop and media boxes, using PdfContentByte.ConcatCTM and writing to a PdfStamper object. This has always worked, until I came across this one PDF file. It seems that when I set the offset of the page all but one logo is moving. You can see the offset in the screen shot supplied. This is a single page PDF, can anyone think of what could possibly causing this. I have never seen this happen to any pdf before, normally when its offset the entire pdf moves as expected. I can furnish the PDF if anyone would like to see it, its 19meg. This is the main guts to the code: byte[] b = Reader.GetPageContent(page); PdfContentByte cb = new PdfContentByte(null); cb.ConcatCTM(1, 0, 0, 1, -5f, -5f); Thank you for any idea's! Dean No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.814 / Virus Database: 271.1.1/2842 - Release Date: 05/10/10 23:26:00
------------------------------------------------------------------------------
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/