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

[PATCH] reference-orientation and negative values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.5
    • None
    • layout/unqualified
    • Operating System: other
      Platform: Other
    • 36391

    Description

      Using -90, -180 and -270 as reference-orientation instead of 90, 180 and 270
      results in content being drawn outside its block.

      This is because the Coordinate Transformation Matrix does not contain a
      translation in for negative values. The translation is added (in
      CTM.getCTMandRelDims) for positive values but not negative.

      I also added these negative values in CTM.rotate so that the CTM gets cleans
      zeroes instead of approximate 1E-12 thingies.

      I attached a simple test file to test the bug and its correction.

      The result is still weird for 180 and -180 (and different from XEP), but I think
      it could be quite a little bit harder to explain.

      Attachments

        1. 36391_reforient_after.pdf
          2 kB
          Yannick Valot
        2. 36391_reforient_before.pdf
          2 kB
          Yannick Valot
        3. 36391_reforient.diff
          1 kB
          Yannick Valot
        4. 36391_reforient.fo
          3 kB
          Yannick Valot

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            yvalot@gmail.com Yannick Valot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: