So your original suggestion of wrapping the template in an image would 
center the template automatically on the page? If so do this seem like a 
good practice as I may be doing this to hundreds of legal documents...

Thanks.


>From: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]>
>Reply-To: Post all your questions about iText here 
><[email protected]>
>To: Post all your questions about iText here 
><[email protected]>
>Subject: Re: [iText-questions] Coordinates of a PdfTemplate!
>Date: Thu, 08 Mar 2007 15:24:40 +0100
>
>Rick DeFazio wrote:
> > Thanks... no other way to find out the original coords of the imported 
>page
> > then?
>
>Please read page 520 of the book:
>It explains that form XObjects (we call them PdfTemplates,
>because the word form might confuse people) are referenced
>in the page content stream like this:
>
>q 1 0 0 1 0 0 cm /Xf1 Do Q
>q 1 0 0 -1 0 842 cm /Xf1 Do Q
>q 1 0 0 1 100 400 cm /Xf1 Do Q
>q 0 -2 2 0 100 400 cm /Xf1 Do Q
>
>You could try to derive the coordinates from the values between
>the q and the cm (these are elements of a transformation matrix).
>However, this may not be sufficient: this transformation could
>be part of an other transformation, in which case the math to
>get the correct coordinates gets even more difficult.
>
>If Eric has read the book, he already knew this.
>He knows how to get the page stream because that too is
>explained in the book. If he has read chapter 18, he even
>knows how to manipulate a PDF at the object level...
>
>br,
>Bruno
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share 
>your
>opinions on IT & business topics through brief surveys-and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>iText-questions mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>Buy the iText book: http://itext.ugent.be/itext-in-action/

_________________________________________________________________
Your Space. Your Friends. Your Stories. Share your world with Windows Live 
Spaces. http://spaces.live.com/?mkt=en-ca


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to