Fop
  1. Fop
  2. FOP-1344

basic-link doesn't cover all text inside

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 0.93
    • Fix Version/s: None
    • Component/s: general
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: Other
    • External issue ID:
      42034

      Description

      from the discussion on fop-user:

      That sounds like a bug, reproduced with latest FOP TRUNK.

      I've noticed that the fo:basic-link i-p-d does not fit to the available i-p-d
      when it contains a fo:page-number-citation.
      You should fill in a bug report in bugzilla.

      For more help, I've shrinked your snippet.

      Pascal

      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <!-- defines page layout -->
      <fo:layout-master-set>
      <fo:simple-page-master master-name="1" page-height="297mm"
      page-width="210mm" margin-top="2cm" margin-left="1.5cm"
      margin-right="1.5cm">
      <fo:region-body/>
      </fo:simple-page-master>
      </fo:layout-master-set>

      <fo:page-sequence master-reference="1">
      <fo:flow flow-name="xsl-region-body">
      <fo:block font-size="30pt">
      Table of Contents
      </fo:block>

      <fo:block font-size="14" text-align-last="justify">
      <fo:basic-link background-color="green" end-indent="0mm"
      internal-destination="_toc_level1_32" border="solid red 1pt">
      Level 1 Text
      <fo:leader leader-pattern="dots"/>
      <fo:page-number-citation ref-id="_toc_level1_32"/>
      </fo:basic-link>
      </fo:block>

      <fo:block font-size="14" text-align-last="justify">
      <fo:basic-link background-color="green" end-indent="0mm"
      internal-destination="_toc_level1_32" border="solid red 1pt">
      Level 1 Text
      <fo:leader leader-pattern="dots"/>
      </fo:basic-link>
      </fo:block>

      <fo:block break-before="page" id="_toc_level1_32">
      Level 1 Text
      </fo:block>
      </fo:flow>
      </fo:page-sequence>
      </fo:root>

      > ----Message d'origine----
      > De : gelzhaeuser@gmail.com gelzhaeuser@gmail.com De
      > la part de Thomas Gelzhaeuser
      > Envoyé : lundi 2 avril 2007 14:36
      > À : fop-users@xmlgraphics.apache.org
      > Objet : basic-link doesn't cover all text inside
      >
      > Hi fopsters.
      >
      > I'm trying now to create a table of contents in my pdf
      > document by using basic-link and page-number-of-citation as
      > it has been discussed here on the list before.
      >
      > Unfortunately, the text of the toc-entry is not completely
      > within the link. Most importantly, the page number is not
      > clickable. Any Ideas why this is so?
      > I attached a smallish example which illustrates what I did.
      >
      > Thanks a lot.
      >
      > Thomas.

        Issue Links

          Activity

          Show
          Jeremias Maerki added a comment - Fixed: http://svn.apache.org/viewvc?rev=1042934&view=rev
          Hide
          Glenn Adams added a comment -

          batch transition to closed; if someone wishes to restore one of these to resolved in order to perform a verification step, then feel free to do so

          Show
          Glenn Adams added a comment - batch transition to closed; if someone wishes to restore one of these to resolved in order to perform a verification step, then feel free to do so

            People

            • Assignee:
              fop-dev
              Reporter:
              Thomas Gelzh
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development