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 bu...@apache.org on 2002/12/06 14:44:46 UTC
DO NOT REPLY [Bug 15137] New: -
links not active with preceeding blocks that use a padding
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=15137>.
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=15137
links not active with preceeding blocks that use a padding
Summary: links not active with preceeding blocks that use a
padding
Product: Fop
Version: 0.20.4
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: pdf renderer
AssignedTo: fop-dev@xml.apache.org
ReportedBy: wendler@five-towers.de
Hi there,
the activatable area of an internal/external link seems to get computed such
that the 'y' coordinate leaves out paddings of preceeding blocks. That has the
effect that one can activate the link only when targeting a bit HIGHER on the
page. If one moves the mouse cursor over the link text it simply doesn't seem
to work (no cursor change, no effect when clicking)
... below is a complete sample demonstrating the bug.
WORKAROUND: use 'space-...' instead of 'padding...'
Best regards, Mike.
<?xml version="1.0" ?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<!-- specify space for page margins here -->
<fo:simple-page-master
margin-top="4cm"
margin-left="3cm"
margin-right="2cm"
master-name="default">
<fo:region-body />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="default">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:block space-after.optimum="3pt" font-family="serif" id="top">
FOP is the world's first print formatter driven by XSL formatting
objects. It is a Java 1.1 application that reads a formatting object
tree and then turns it into a PDF document. The formatting object
tree, can be in the form of an XML document (output by an XSLT engine
like XT or Xalan) or can be passed in memory as a DOM Document or (in
the case of XT) SAX events.
</fo:block>
<fo:block padding-bottom="20pt" border-style="solid">
<fo:block>a test block with some padding</fo:block>
</fo:block>
<fo:block >
<fo:block>CLICK HERE! (this is actually a simple block of text
only!)</fo:block>
</fo:block>
<fo:block>
<fo:basic-link
internal-destination="top"
text-decoration="underline"
color="blue">... top of page </fo:basic-link>(this is the actual
internal link which doesn't seem to work
because the active area is out of place on the y coordinate)
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org