[jira] [Resolved] (FOP-3057) Empty text in the font Source Code Pro

2022-03-24 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3057.

Fix Version/s: trunk
   Resolution: Fixed

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

> Empty text in the font Source Code Pro
> --
>
> Key: FOP-3057
> URL: https://issues.apache.org/jira/browse/FOP-3057
> Project: FOP
>  Issue Type: Bug
>  Components: renderer/pdf
>Affects Versions: 2.6, 2.7
> Environment: Windows 7 Pro 64-bit
> Java version 1.8.0_281
>Reporter: Alexander Dyuzhev
>Assignee: Simon Steiner
>Priority: Critical
> Fix For: trunk
>
> Attachments: test.fo.xml, test_SourceCodePro_fop_2.5.pdf, 
> test_SourceCodePro_fop_2.6.pdf, test_SourceCodePro_fop_2.6_embed_full.pdf
>
>
> I use the font 'Source Code Pro' from here: 
> [https://github.com/adobe-fonts/source-code-pro/blob/482adcaccf9777f2850974e08c60e706b1ad9169/TTF/SourceCodePro-Regular.ttf]
> FOP config fragment:
> {code:xml}
> 
>   
> 
> {code}
> This block:
> {code:xml}
> text Source Code 
> Pro text
> {code}
> renders ok in FOP 2.5 (see attached test_SourceCodePro_fop_2.5.pdf),
> but renders empty space in FOP 2.6 and 2.7 for the font 'Source Code Pro' 
> (see attached test_SourceCodePro_fop_2.6.pdf).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-24 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-3059:


What about using:
TransformerFactory factory = TransformerFactory.newInstance();

> Open JDK 11 with FOP fail on transform to PDF
> -
>
> Key: FOP-3059
> URL: https://issues.apache.org/jira/browse/FOP-3059
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.4, 2.6
>Reporter: Yakir Goaron
>Priority: Critical
>
> When using FOP with SAX factory on open JDK 11 there is an error when calling 
> the transform from java code.
> The following error shows :
> Class org.apache.fop.fo.FOTreeBuilder does not implement the requested 
> interface org.xml.sax.ContentHandler
> Although the FOTreeBuilder implement the interface it seems that due too the 
> java version it is incompatible. 
> For now I have tried with FOP 2.4 and FOP 2.6  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Comment Edited] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-24 Thread Yakir Goaron (Jira)


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

Yakir Goaron edited comment on FOP-3059 at 3/24/22, 10:31 AM:
--

I might be able to copy the relevant parts here if thats ok . 
The whole code is a little problematic.
The code that I am using :
FopFactory fopFactory = null;
FOUserAgent foUserAgent = null;

 fopFactory = FopFactory.newInstance( new File( "." ).toURI() );
foUserAgent = fopFactory.newFOUserAgent();
bufferedOutputStream = new FileOutputStream( pdfFilename );
 bufferedOutputStream = new BufferedOutputStream( bufferedOutputStream );

Source src = new StreamSource(xmlFilename);
    Source xsltSrc = new StreamSource(xslFullName);

com.saxonica.config.EnterpriseTransformerFactory factory = new 
com.saxonica.config.EnterpriseTransformerFactory(EnterpriseConfiguration.cfg);

 Fop fop = 
fopFactory.newFop(org.apache.xmlgraphics.util.MimeConstants.MIME_PDF, 
foUserAgent, bufferedOutputStream);

Transformer transformer = factory.newTransformer( xsltSrc );

transformer.setParameter("versionParam", "2.0");

 Result res = new SAXResult( fop.getDefaultHandler() );

transformer.transform(src, res);


was (Author: JIRAUSER286370):
I might be able to copy the relevant parts here if thats ok . 
The whole code is a little problematic.

> Open JDK 11 with FOP fail on transform to PDF
> -
>
> Key: FOP-3059
> URL: https://issues.apache.org/jira/browse/FOP-3059
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.4, 2.6
>Reporter: Yakir Goaron
>Priority: Critical
>
> When using FOP with SAX factory on open JDK 11 there is an error when calling 
> the transform from java code.
> The following error shows :
> Class org.apache.fop.fo.FOTreeBuilder does not implement the requested 
> interface org.xml.sax.ContentHandler
> Although the FOTreeBuilder implement the interface it seems that due too the 
> java version it is incompatible. 
> For now I have tried with FOP 2.4 and FOP 2.6  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-24 Thread Yakir Goaron (Jira)


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

Yakir Goaron commented on FOP-3059:
---

I might be able to copy the relevant parts here if thats ok . 
The whole code is a little problematic.

> Open JDK 11 with FOP fail on transform to PDF
> -
>
> Key: FOP-3059
> URL: https://issues.apache.org/jira/browse/FOP-3059
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.4, 2.6
>Reporter: Yakir Goaron
>Priority: Critical
>
> When using FOP with SAX factory on open JDK 11 there is an error when calling 
> the transform from java code.
> The following error shows :
> Class org.apache.fop.fo.FOTreeBuilder does not implement the requested 
> interface org.xml.sax.ContentHandler
> Although the FOTreeBuilder implement the interface it seems that due too the 
> java version it is incompatible. 
> For now I have tried with FOP 2.4 and FOP 2.6  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Assigned] (FOP-3057) Empty text in the font Source Code Pro

2022-03-24 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-3057:
--

Assignee: Simon Steiner

> Empty text in the font Source Code Pro
> --
>
> Key: FOP-3057
> URL: https://issues.apache.org/jira/browse/FOP-3057
> Project: FOP
>  Issue Type: Bug
>  Components: renderer/pdf
>Affects Versions: 2.6, 2.7
> Environment: Windows 7 Pro 64-bit
> Java version 1.8.0_281
>Reporter: Alexander Dyuzhev
>Assignee: Simon Steiner
>Priority: Critical
> Attachments: test.fo.xml, test_SourceCodePro_fop_2.5.pdf, 
> test_SourceCodePro_fop_2.6.pdf, test_SourceCodePro_fop_2.6_embed_full.pdf
>
>
> I use the font 'Source Code Pro' from here: 
> [https://github.com/adobe-fonts/source-code-pro/blob/482adcaccf9777f2850974e08c60e706b1ad9169/TTF/SourceCodePro-Regular.ttf]
> FOP config fragment:
> {code:xml}
> 
>   
> 
> {code}
> This block:
> {code:xml}
> text Source Code 
> Pro text
> {code}
> renders ok in FOP 2.5 (see attached test_SourceCodePro_fop_2.5.pdf),
> but renders empty space in FOP 2.6 and 2.7 for the font 'Source Code Pro' 
> (see attached test_SourceCodePro_fop_2.6.pdf).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-24 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-3059:


Can we see the java code your using

> Open JDK 11 with FOP fail on transform to PDF
> -
>
> Key: FOP-3059
> URL: https://issues.apache.org/jira/browse/FOP-3059
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.4, 2.6
>Reporter: Yakir Goaron
>Priority: Critical
>
> When using FOP with SAX factory on open JDK 11 there is an error when calling 
> the transform from java code.
> The following error shows :
> Class org.apache.fop.fo.FOTreeBuilder does not implement the requested 
> interface org.xml.sax.ContentHandler
> Although the FOTreeBuilder implement the interface it seems that due too the 
> java version it is incompatible. 
> For now I have tried with FOP 2.4 and FOP 2.6  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-24 Thread Yakir Goaron (Jira)


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

Yakir Goaron commented on FOP-3059:
---

Create a java project with SAX and FOP .

Set the SAX as transformation as the converter and the FOP as output to PDF.

Then try to run it in JAVA 11 and up (I am using open JDK) there will be an 
error of incompatible 

> Open JDK 11 with FOP fail on transform to PDF
> -
>
> Key: FOP-3059
> URL: https://issues.apache.org/jira/browse/FOP-3059
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.4, 2.6
>Reporter: Yakir Goaron
>Priority: Critical
>
> When using FOP with SAX factory on open JDK 11 there is an error when calling 
> the transform from java code.
> The following error shows :
> Class org.apache.fop.fo.FOTreeBuilder does not implement the requested 
> interface org.xml.sax.ContentHandler
> Although the FOTreeBuilder implement the interface it seems that due too the 
> java version it is incompatible. 
> For now I have tried with FOP 2.4 and FOP 2.6  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-24 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-3059:


How do you replicate this issue?

> Open JDK 11 with FOP fail on transform to PDF
> -
>
> Key: FOP-3059
> URL: https://issues.apache.org/jira/browse/FOP-3059
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.4, 2.6
>Reporter: Yakir Goaron
>Priority: Critical
>
> When using FOP with SAX factory on open JDK 11 there is an error when calling 
> the transform from java code.
> The following error shows :
> Class org.apache.fop.fo.FOTreeBuilder does not implement the requested 
> interface org.xml.sax.ContentHandler
> Although the FOTreeBuilder implement the interface it seems that due too the 
> java version it is incompatible. 
> For now I have tried with FOP 2.4 and FOP 2.6  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)