[jira] [Updated] (FOP-2677) Text in SVG with applied filter is not rendered

2017-01-06 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/FOP-2677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Tošovský updated FOP-2677:
--
Attachment: envelope.pdf
font-relief.svg
envelope.fo

> Text in SVG with applied filter is not rendered
> ---
>
> Key: FOP-2677
> URL: https://issues.apache.org/jira/browse/FOP-2677
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.1
>Reporter: Jan Tošovský
> Attachments: envelope.fo, envelope.pdf, font-relief.svg
>
>
> When attached XSL-FO with referenced SVG file is processed with FOP into PDF, 
> the text is not rendered.
> It is caused by org.apache.fop.svg.font.FOPGVTGlyphVector.draw method:
> {code:java}
> public void draw(Graphics2D graphics2d, AttributedCharacterIterator aci) {
> // NOP
> }
> {code}
> The text to render is finally passed to this method, but it does nothing.
> Originally reported as Batik Transcoder issue 
> https://issues.apache.org/jira/browse/BATIK-1133



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (FOP-2677) Text in SVG with applied filter is not rendered

2017-01-06 Thread JIRA
Jan Tošovský created FOP-2677:
-

 Summary: Text in SVG with applied filter is not rendered
 Key: FOP-2677
 URL: https://issues.apache.org/jira/browse/FOP-2677
 Project: FOP
  Issue Type: Bug
Affects Versions: 2.1
Reporter: Jan Tošovský


When attached XSL-FO with referenced SVG file is processed with FOP into PDF, 
the text is not rendered.

It is caused by org.apache.fop.svg.font.FOPGVTGlyphVector.draw method:
{code:java}
public void draw(Graphics2D graphics2d, AttributedCharacterIterator aci) {
// NOP
}
{code}
The text to render is finally passed to this method, but it does nothing.

Originally reported as Batik Transcoder issue 
https://issues.apache.org/jira/browse/BATIK-1133



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (FOP-2675) SVG in PDF prevents program from terminating

2017-01-06 Thread Alexander (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15804920#comment-15804920
 ] 

Alexander commented on FOP-2675:


I tried it with JDK 1.8.0_111 on the Windows-Machine and the problem still 
exists:

...fop-2.1>javac -cp build\fop.jar;lib\*;. Main.java

...fop-2.1>javac -version
javac 1.8.0_111

...fop-2.1>java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

...fop-2.1>java -cp build\fop.jar;lib\*;. Main
Jan 06, 2017 5:25:49 PM org.apache.fop.events.LoggingEventListener processEvent
WARNUNG: Font "Verdana,normal,400" not found. Substituting with "any,normal,400"
.
Jan 06, 2017 5:25:49 PM org.apache.fop.events.LoggingEventListener processEvent
WARNUNG: Font "Arial,normal,400" not found. Substituting with "any,normal,400".
Jan 06, 2017 5:25:49 PM org.apache.fop.events.LoggingEventListener processEvent
WARNUNG: Content overflows the viewport of an fo:block-container in inline-progr
ession direction by 85039 millipoints. (See position 34:76)
Jan 06, 2017 5:25:51 PM org.apache.fop.events.LoggingEventListener processEvent
INFORMATION: Rendered page #1.
...

> SVG in PDF prevents program from terminating
> 
>
> Key: FOP-2675
> URL: https://issues.apache.org/jira/browse/FOP-2675
> Project: FOP
>  Issue Type: Bug
>  Components: image/svg, renderer/pdf
>Affects Versions: 2.0, 2.1
> Environment: Windows 7/Java 7+8
>Reporter: Alexander
> Attachments: Main.java, fop.xconf, input.fo, jstack.txt
>
>
> When using a instream-foreign-object to render a svg-text, fop renders the 
> pdf correctly, but the program will not terminate after that.
> Using jstack I found 2 Threads with generic names (Thread 1 and Thread 3), 
> which are still not finished, which causes the program to continue running.
> If I comment-out the svg-part of my input-file the program exits normally, 
> which is why I believe the svg is the cause.
> I could recreate the issue with FOP 2.0 and 2.1 using Java 7 and Java 8.
> The issue sounds familiar to the point mentioned at
> https://xmlgraphics.apache.org/fop/faq.html#svghangs
> but since im using JDK 1.8 this should not be the problem here.
> I have attached the input-file, my program which uses fop embedded, the 
> fop.xconf as well as the jstack output.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (FOP-2675) SVG in PDF prevents program from terminating

2017-01-06 Thread Alexander (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15804870#comment-15804870
 ] 

Alexander commented on FOP-2675:


I just tried it on a linux-machine with JDK 1.8.0_101-b13. It worked there.
My problem might be that I dont have the newest jdk-version on the 
Windows-System (it's still 1.8.0_73-b02).

I will report back.

> SVG in PDF prevents program from terminating
> 
>
> Key: FOP-2675
> URL: https://issues.apache.org/jira/browse/FOP-2675
> Project: FOP
>  Issue Type: Bug
>  Components: image/svg, renderer/pdf
>Affects Versions: 2.0, 2.1
> Environment: Windows 7/Java 7+8
>Reporter: Alexander
> Attachments: Main.java, fop.xconf, input.fo, jstack.txt
>
>
> When using a instream-foreign-object to render a svg-text, fop renders the 
> pdf correctly, but the program will not terminate after that.
> Using jstack I found 2 Threads with generic names (Thread 1 and Thread 3), 
> which are still not finished, which causes the program to continue running.
> If I comment-out the svg-part of my input-file the program exits normally, 
> which is why I believe the svg is the cause.
> I could recreate the issue with FOP 2.0 and 2.1 using Java 7 and Java 8.
> The issue sounds familiar to the point mentioned at
> https://xmlgraphics.apache.org/fop/faq.html#svghangs
> but since im using JDK 1.8 this should not be the problem here.
> I have attached the input-file, my program which uses fop embedded, the 
> fop.xconf as well as the jstack output.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (FOP-2544) Incorrect pdf rendering from FO with embedded svg via java embedding

2017-01-06 Thread simon steiner (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

simon steiner resolved FOP-2544.

Resolution: Fixed
  Assignee: simon steiner

> Incorrect pdf rendering from FO with embedded svg via java embedding
> 
>
> Key: FOP-2544
> URL: https://issues.apache.org/jira/browse/FOP-2544
> Project: FOP
>  Issue Type: Bug
>  Components: foreign/svg, image/svg, renderer/svg
>Affects Versions: 2.0
>Reporter: Piotr Stefańczyk
>Assignee: simon steiner
> Attachments: 35ca62e7-238c-44c2-bb54-c83e1fc548c8.pdf, fop.xconf, 
> helloworld.fo
>
>
> I have problem with rendering pdf with embedded svg. When I render pdf from 
> command line everything is OK, but if I render fo programmatically then text 
> within svg is incorrect rendered. Every char have grey rectangle.
> I was trying render in version 1.1 programmatically and fo is correct 
> rendered to pdf.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (FOP-2544) Incorrect pdf rendering from FO with embedded svg via java embedding

2017-01-06 Thread simon steiner (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15804645#comment-15804645
 ] 

simon steiner commented on FOP-2544:


http://svn.apache.org/viewvc?view=revision=1777615

> Incorrect pdf rendering from FO with embedded svg via java embedding
> 
>
> Key: FOP-2544
> URL: https://issues.apache.org/jira/browse/FOP-2544
> Project: FOP
>  Issue Type: Bug
>  Components: foreign/svg, image/svg, renderer/svg
>Affects Versions: 2.0
>Reporter: Piotr Stefańczyk
> Attachments: 35ca62e7-238c-44c2-bb54-c83e1fc548c8.pdf, fop.xconf, 
> helloworld.fo
>
>
> I have problem with rendering pdf with embedded svg. When I render pdf from 
> command line everything is OK, but if I render fo programmatically then text 
> within svg is incorrect rendered. Every char have grey rectangle.
> I was trying render in version 1.1 programmatically and fo is correct 
> rendered to pdf.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)