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

Negative values for margin-top and space-before attributes of fo:block are ignored

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 0.91
    • None
    • renderer/pdf
    • None
    • Operating System: Windows XP
      Platform: PC
    • 38054

    Description

      Negative values for margin-top and space-before attributes of fo:block have no
      effect on the position of text as rendered in PDF format. FOP seems to ignore
      negative values for these attributes. I assume the other margin-bottom, right
      left, etc. are effected as well. This was tested using FOP 0.91

      I tried to find out if the XSL-FO specs allow negative values here, but I didn't
      discover an answer. Negative values work in XEP, however, and are pretty darn
      useful. I tried to work around this by moving the fo:block with the top
      coordinate property, but that didn't work with FOP or XEP.

      Attachments

        1. testcase2.fo
          1 kB
          Matt LeClair
        2. testcase1.fo
          2 kB
          Matt LeClair

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            laklare@ml1.net Matt LeClair
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment