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

SVG not handled / rendered / embedded properly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      It seems FOP does not handle all SVGs properly.

      The attached svg-test.fo which displays the attached files roadsign-attention.svg and med-folder-journal.svg demonstrate the problem.

      The result of fop-2.3/fop/fop svg-test.fo svg-test.pdf can be seen in svg-test.pdf, especially if you zoom in.

      The med-folder-journal.svg is properly displayed and scaled, the roadsign-attention.svg looks like the triangle is rendered to pixels that scale up, but the exclamation mark properly scales.

      Here the PDF content as screenshot on 1200%:

      Using the code at https://xmlgraphics.apache.org/batik/using/swing.html shows that Batik 1.10 can perfectly fine scale up the SVG:

        Attachments

        1. triangles-simplest.svg
          0.3 kB
          Jan Tošovský
        2. triangles-simplest.pdf
          24 kB
          Jan Tošovský
        3. svg-test.pdf
          8 kB
          Björn Kautler
        4. svg-test.fo
          0.7 kB
          Björn Kautler
        5. svg-no-border.pdf
          5 kB
          Jan Tošovský
        6. svg-border.pdf
          5 kB
          Jan Tošovský
        7. roadsign-attention.svg
          31 kB
          Björn Kautler
        8. med-folder-journal.svg
          27 kB
          Björn Kautler
        9. image-2019-02-28-18-00-01-566.png
          22 kB
          Björn Kautler
        10. image-2019-02-21-14-42-11-550.png
          5 kB
          Björn Kautler
        11. image-2019-02-21-14-41-29-088.png
          1 kB
          Björn Kautler
        12. image-2019-02-21-13-35-21-628.png
          26 kB
          Björn Kautler
        13. image-2019-02-21-12-17-26-206.png
          34 kB
          Björn Kautler
        14. image-2019-02-21-12-15-39-802.png
          25 kB
          Björn Kautler

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vampire Björn Kautler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: