Convert the template into an image and place the image in a Chunk. The
template will then flow with the rest of the text.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: William S. Hayes [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 17:19
> To:   [EMAIL PROTECTED]
> Cc:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Absolute positioning of pdf templates.
> 
> Is there an easier way to place a template onto a pdf page?  Right now I
> am writing a generic pdf reporter that places the page number and the
> total pages on each page of the document.  The problem is that my reporter
> allows the margins to change.  Thus changing where the page numbers should
> go.
>  
> Right now my code does the following.
>  
> cb.addTemplate(template, 38 + len, 780);
>  
> where cb is of type PdfContentByte.
>  
> However this code only works when the margins are the defaults.  Is there
> a way to add a template that naturally falls in the flow of the text?  If
> not is the implementation of such a thing difficult?
>  
> thanks
> w. scott hayes
> [EMAIL PROTECTED]


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to