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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.5
    • None
    • renderer/svg
    • None
    • Operating System: Windows XP
      Platform: All
    • 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.

      Attachments

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

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            michael.bartmann@lisytec.de Michael Bartmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: