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

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

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 0.91
    • Fix Version/s: None
    • Component/s: renderer/pdf
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC
    • External issue ID:
      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. testcase1.fo
          2 kB
          Matt LeClair
        2. testcase2.fo
          1 kB
          Matt LeClair

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: