[
https://issues.apache.org/jira/browse/BATIK-1133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Tošovský updated BATIK-1133:
--------------------------------
Attachment: drop-shadow.svg
Attaching another test case with simplified filter definition. Once the filter
is activated on text, that text disappears.
It worked in Batik 1.7, but fails in 1.8 regardless Java version (tested on
Oracle JDK 6-8 + OpenJDK 6-8).
It seems to be rather FOP issue as the PDF rendering is delagated to
PDFGraphics2D and other FOP classes.
> Batik-Rasterizer-1.8 (complied with FOP2.0) PDF conversion cannot convert
> filter correctly
> ------------------------------------------------------------------------------------------
>
> Key: BATIK-1133
> URL: https://issues.apache.org/jira/browse/BATIK-1133
> Project: Batik
> Issue Type: Bug
> Components: SVG Rasterizer
> Affects Versions: 1.8, trunk
> Environment: Batik-Rasterizer-1.8 (re-compile with FOP 2.0), Java
> 1.7.0.21
> Reporter: Billy Wan
> Attachments: drop-shadow.svg, text.jpg, text.pdf, text.png, text.svg
>
>
> 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>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]