Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1344

basic-link doesn't cover all text inside

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 0.93
    • None
    • unqualified
    • None
    • Operating System: Windows XP
      Platform: Other
    • 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.

      Attachments

        Issue Links

          Activity

            People

              fop-dev@xmlgraphics.apache.org fop-dev
              thomas@gelzhaeuser.de Thomas Gelzh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: