Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1133

Batik-Rasterizer-1.8 (complied with FOP2.0) PDF conversion cannot convert filter correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8, 1.13
    • Fix Version/s: None
    • Component/s: SVG Rasterizer
    • Labels:
      None
    • Environment:
      Batik-Rasterizer-1.8 (re-compile with FOP 2.0), Java 1.7.0.21

      Description

      When using the Batik-Rasterizer-1.8 (recompiled with FOP2.0), the PDF can generate successfully but it is only blank page. PNG and JPEG can generate correct image. The SVG is as below:

      <svg width="450" height="400" xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink">
      <defs>
      <filter id="bevel" filterUnits="userSpaceOnUse">
      <feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"/>
      <feOffset in="blur" dx="4" dy="4" result="offsetBlur"/>
      <feSpecularLighting surfaceScale="5" specularConstant="0.75"
      specularExponent="20" lighting-color="#DDDDDD" in="blur"
      result="highlight">
      <fePointLight x="-5000" y="-10000" z="20000"/>
      </feSpecularLighting>
      <feComposite in="highlight" in2="SourceAlpha" operator="in" result="highlight"/>
      <feComposite in="SourceGraphic" in2="highlight" operator="arithmetic"
      k1="0" k2="1" k3="1" k4="0" result="highlightText"/>
      <feMerge>
      <feMergeNode in="offsetBlur"/>
      <feMergeNode in="highlightText"/>
      </feMerge>
      </filter>
      </defs>

      <text filter="url(#bevel)" x="30" y="100" font-size="60" font-family="Times">An SVG Filter</text>
      </svg>

        Attachments

        1. text.svg
          1.0 kB
          Billy Wan
        2. text.png
          21 kB
          Billy Wan
        3. text.pdf
          22 kB
          Billy Wan
        4. text.jpg
          16 kB
          Billy Wan
        5. drop-shadow.svg
          0.6 kB
          Jan Tošovský

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              billywan Billy Wan
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: