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

Remove example SVG file using external links

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5, 2.2, 2.3, 2.4, 2.6, 2.7
    • 2.8
    • foreign/svg, image/svg
    • None
    • The file was processed using the fop CLI in both Ubuntu 20.04 (+ OpenJDK 11) and Windows 10 (+OpenJDK 18) with similar results.

    Description

      FOP fails to render SVG files provided as external links. The following error is returned where I ran the provided example file in examples/svg/external.fo

      SEVERE: SVG error: The file format is not supported. No ImagePreloader found for file:/home/asitha/Downloads/fop-2.7/fop/examples/fo/svg/boxes.svg
      org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for file:/home/asitha/Downloads/fop-2.7/fop/examples/fo/svg/boxes.svg
          at org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:181)
          at org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:127)
          at org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123)
          at org.apache.fop.svg.AbstractFOPImageElementBridge.createImageGraphicsNode(AbstractFOPImageElementBridge.java:78)

      Command:
      ./fop examples/fo/svg/external.fo temp.pdf

      The same command works without any issues in version 2.1, 2.0, and 1.1.

      Attachments

        Activity

          People

            ssteiner Simon Steiner
            Sena Asitha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: