DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9335>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9335

fo:basic-link generates multiple linked rectangles in PDF

           Summary: fo:basic-link generates multiple linked rectangles in
                    PDF
           Product: Fop
           Version: 0.20.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: pdf renderer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


An <fo:basic-link> element containing multiple words when rendered to PDF will 
result in a 'linked rectangle' around each word in the link, rather than one 
rectangle for the entire link as would be expected.

Each word links to the same destination, so the effect is (almost) the same, 
except that the rectangles do not include the whitespace between words, and the 
file size of PDFs with many multi-word links can be dramatically increased, to 
the point of visibly slowing rendering speed.

For example:

  <fo:block>The rain <fo:basic-link external-destination="spain.pdf">in 
Spain</fo:basic-link> falls mainly in the plain.</fo:block>

will render as:

  +------------------------------------------------+
  |         +--+ +-----+                           |
  |The rain |in| |Spain| falls mainly in the plain.|
  |         +--+ +-----+                           |
  +------------------------------------------------+

rather than the expected:

  +----------------------------------------------+
  |         +--------+                           |
  |The rain |in Spain| falls mainly in the plain.|
  |         +--------+                           |
  +----------------------------------------------+

NB: Arved has indicated on fop-dev that "The multiple linked areas are an 
ancient debugging artifact, that seems to have become the norm."

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to