Bacchin Verdiana wrote:
Hi Bruno.
I've a little problem.
I'm trying to build a pdf file using your libraries.
I'd like to add an image in the Header of the file, but I can't.
The HeaderFooter class doesn't permit it, and using the page events I
can't use the add method of the document property.
How can I do it?
If you really, really want to use the HeaderFooter object: you can wrap an Image in a Chunk and the Chunk in the Phrase that is used to construct the HeaderFooter object.
A better solution would be to use PageEvents to add the header. Define your top-margin, in order to have enough space for the Image and add the Image at an absolute position in an onEndPage event.
br, Bruno
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
