FOP
  1. FOP
  2. FOP-1259

[PATCH] Invalid PDF for certain numerical values in SVG lineargradient

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: renderer/svg
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: All
    • External issue ID:
      40699

      Description

      I use fop built from a recent source snapshot, as the svn access fails for me.
      The specific version I use is fop_trunk_20061004042355.
      I have a small svg file with only one path using a lineargradient, which
      for certain numerical values generates pdf which make acroat complain:
      "Ein nicht erkannter token "1.999999137575E-05" wurde gefunden"
      (this is german locale for "An unknown token ... was found").
      The exact numerial value of thi error message varies when certain
      coordinates in the path are modified.

      The path is a simple triangle, the x-coordinate of the first/last point
      is 0.0001; There is no error when I change this to 0.001.
      The opacity of the first stop in the linear gradient is 0.9; There is no
      error when I change this to 1.

      1. fop_problem.svg
        0.6 kB
        Michael Bartmann
      2. fop.patch
        0.8 kB
        Luis Bernardo
      3. test.fo
        0.5 kB
        Luis Bernardo
      4. test.pdf
        162 kB
        Luis Bernardo

        Activity

        Michael Bartmann created issue -

          People

          • Assignee:
            fop-dev
            Reporter:
            Michael Bartmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development