You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Adrian Edwards <ad...@netimpact.com.au> on 2002/05/22 09:07:48 UTC
Why do links generate multiple rectangles in PDF?
Can anyone (Arved?) give me a brief explanation of why one <fo:basic-link> will generate multiple link rectangles (one for each word!) in a PDF rendering?
This would seem to have a dramatic effect on the file size of larger PDF documents with many multi-word links. It's such a (seemingly) strange behaviour that there must be some justification, although I can't find it in the mailing list archives.
Any help appreciated.
Adrian Edwards
Application Developer
Netimpact Online Publishing
http://www.netimpact.com.au
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
RE: Why do links generate multiple rectangles in PDF?
Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
> -----Original Message-----
> From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
> Sent: May 22, 2002 6:07 PM
> To: fop-dev@xml.apache.org
> Subject: Re: Why do links generate multiple rectangles in PDF?
>
> Arved Sandstrom wrote:
> > So that's your answer. :-) The multiple linked areas are an ancient
> > debugging artifact, that seems to have become the norm.
>
> The annoying part is that the link area excludes
> the whitespace between the words. Or is this
> intentional?
> Line breaks and in particular hyphenation in a
> link aren't handled properly either.
>
> J.Pietschmann
Excluding the WS was intentional in the sense that it was intended to show
the individual wrapping of linked words, during debugging.
By now I am not surprised that other stuff is out of sync.
Arved
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: Why do links generate multiple rectangles in PDF?
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Arved Sandstrom wrote:
> So that's your answer. :-) The multiple linked areas are an ancient
> debugging artifact, that seems to have become the norm.
The annoying part is that the link area excludes
the whitespace between the words. Or is this
intentional?
Line breaks and in particular hyphenation in a
link aren't handled properly either.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
RE: Why do links generate multiple rectangles in PDF?
Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
Hi, Adrian
It's been quite a while but I recall that at the time that basic-link code
was written (long enough ago that they were still called simple-links) there
was an option to choose between link rectangles per word, which aws intended
more as a debugging setting, or combining link rectangles into larger
rectangles where possible (that is, if the geometry permitted).
It was certainly the intention (and I believe it worked this way) that a
number of linked line areas all with the same inline-progression dimension
would result in _one_ linked rectangle. As one example.
So that's your answer. :-) The multiple linked areas are an ancient
debugging artifact, that seems to have become the norm.
Regards,
AHS
> -----Original Message-----
> From: Adrian Edwards [mailto:adrian@netimpact.com.au]
> Sent: May 22, 2002 4:08 AM
> To: fop-dev@xml.apache.org
> Subject: Why do links generate multiple rectangles in PDF?
>
>
> Can anyone (Arved?) give me a brief explanation of why one
> <fo:basic-link> will generate multiple link rectangles (one for
> each word!) in a PDF rendering?
>
> This would seem to have a dramatic effect on the file size of
> larger PDF documents with many multi-word links. It's such a
> (seemingly) strange behaviour that there must be some
> justification, although I can't find it in the mailing list archives.
>
> Any help appreciated.
>
> Adrian Edwards
> Application Developer
> Netimpact Online Publishing
> http://www.netimpact.com.au
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org