> -----Original Message-----
> From: Paul Warren [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 17:48
> To: Paulo Soares
> Cc: [EMAIL PROTECTED]
> Subject: Re: [iText-questions] Implementing image maps
>
> On Tue, May 14, 2002 at 04:38:29PM +0100, Paulo Soares wrote:
> > Link coordinates are always relative to the page and that's the way PDF
> > works. It's impossible for the moment to make it relative to the
> template as
> > it would require to store the transformation matrix, something that is
> not
> > done now. You'll have to place the images at absolute positions and work
> > from there.
>
> OK. The difficulty I see in doing this is in mixing the graphics and
> text (and in particular, tables). From reading the tutorial, it looks
> like I not use the Document class, and instead should do the text layout
> using columns, as this allows me call get/setYLine and thus stop and
> start text around the graphics.
>
> My next question is then how to handle tables. Given that I'll be using
> absolute position, it sounds like I need to use PdfPTables. What
> concerns me is how to split PdfPTables across multiple pages where
> necessary. Presumably, I need to look at each row and call
> "getRowHeight" to determine what will fit on a page, and then call
> writeSelectedRows appropriately.
>
That's the way to do it.
> Would it be worth me attempting to develop a patch to allow relative
> link co-ordinates?
>
It would be a rewrite, not a patch! The links are output to the pdf
page by page but the template is only written on document close. The
internal structure would have to change a lot. Currently there's work being
done to change a pdf document in place and one of the changes will be to
defer the writing of all annotations to the end. Then it will be trivial to
add an AffineTransform to keep track of the matrix.
Best Regards,
Paulo Soares
> cheers,
>
> Paul
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions