RE: [jira] [Created] (FOP-2428) Apache PDF issue with Wingding characters

2014-11-20 Thread A Gian
Can you provide your fop.xconf file along with a simple fo  file demonstrating 
the issue?  Have you tried fop-1.1 or trunk?Thanasis

 Date: Thu, 20 Nov 2014 07:41:34 +
 From: j...@apache.org
 To: fop-dev@xmlgraphics.apache.org
 Subject: [jira] [Created] (FOP-2428) Apache PDF issue with Wingding characters
 
 PRAVAT created FOP-2428:
 ---
 
  Summary: Apache PDF issue with Wingding characters
  Key: FOP-2428
  URL: https://issues.apache.org/jira/browse/FOP-2428
  Project: Fop
   Issue Type: Bug
   Components: fo/inline
  Environment: Windows, Unix
 Reporter: PRAVAT
 Priority: Critical
 
 
 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 
 U+00FDý      
 U+00FEþ   
 
 
 
 
 --
 This message was sent by Atlassian JIRA
 (v6.3.4#6332)
  

[jira] [Commented] (FOP-2428) Apache PDF issue with Wingding characters

2014-11-20 Thread Pascal Sancho (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14219309#comment-14219309
 ] 

Pascal Sancho commented on FOP-2428:


Before filing in an issue, please read Fop guidelines for submitting an issue 
[1].
More precisely, we encourage you to ask 1st on fop-users mailing list [2],
providing exhaustive information:
 - FOP version,
 - short XSL-FO file demonstrating the issue,
 - in your case: fop.xconf,
 - OS,
 - how Fop is invoked,
 - etc.

[1] http://xmlgraphics.apache.org/fop/bugs.html#issues_new
[2] http://xmlgraphics.apache.org/fop/gethelp.html#user-mailing-list

 Apache PDF issue with Wingding characters
 -

 Key: FOP-2428
 URL: https://issues.apache.org/jira/browse/FOP-2428
 Project: Fop
  Issue Type: Bug
  Components: fo/inline
 Environment: Windows, Unix
Reporter: PRAVAT
Priority: Critical
  Labels: ApachePDf, Wingding

 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 U+00FDý      
 U+00FEþ   



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


[jira] [Updated] (FOP-2428) Apache PDF issue with Wingdings characters

2014-11-20 Thread PRAVAT (JIRA)

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

PRAVAT updated FOP-2428:

Affects Version/s: 1.0
  Summary: Apache PDF issue with Wingdings characters  (was: Apache 
PDF issue with Wingding characters)

 Apache PDF issue with Wingdings characters
 --

 Key: FOP-2428
 URL: https://issues.apache.org/jira/browse/FOP-2428
 Project: Fop
  Issue Type: Bug
  Components: fo/inline
Affects Versions: 1.0
 Environment: Windows, Unix
Reporter: PRAVAT
Priority: Critical
  Labels: ApachePDf, Wingding

 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 U+00FDý      
 U+00FEþ   



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


[jira] [Commented] (FOP-2428) Apache PDF issue with Wingdings characters

2014-11-20 Thread PRAVAT (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14219340#comment-14219340
 ] 

PRAVAT commented on FOP-2428:
-

FOP version - 1.0
OS - Unix, Windows
XSL-FO desc:
fo:block font-family=Wingdings
þý
/fo:block

Result -  Output in PDF and RTF different, RTF converts the character that we 
want to use for. We can not change the actual text to unicode in the xsl-fo. 
With the actual text it works fine for RTF, not for PDF format.

fop.xconf:-

renderers
renderer mime=application/pdf
fonts
font metrics-url=Wingdings.xml embed-url=Wingdings.ttf
font-triplet name=Wingdings style=normal 
weight=normal/
/font
   /fonts
  /renderer
 renderer mime=application/rtf
fonts
font metrics-url=Wingdings.xml embed-url=Wingdings.ttf
font-triplet name=Wingdings style=normal 
weight=normal/
/font
   /fonts
  /renderer
renderers

Code Snippet:
Used below FOP API to transform the document: fo to PDF
FopFactory fopFactory = FopFactory.newInstance();
 fopFactory.setFontBaseURL(file:/// + fontFilesDirectory);
DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder();
Configuration cfg = cfgBuilder.buildFromFile(userConfigFile);
fopFactory.setUserConfig(cfg);
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, pdf);
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();
Source src = new StreamSource(fo);
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(src, res);

 Apache PDF issue with Wingdings characters
 --

 Key: FOP-2428
 URL: https://issues.apache.org/jira/browse/FOP-2428
 Project: Fop
  Issue Type: Bug
  Components: fo/inline
Affects Versions: 1.0
 Environment: Windows, Unix
Reporter: PRAVAT
Priority: Critical
  Labels: ApachePDf, Wingding

 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 U+00FDý      
 U+00FEþ   



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


[jira] [Resolved] (FOP-2428) Apache PDF issue with Wingdings characters

2014-11-20 Thread Glenn Adams (JIRA)

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

Glenn Adams resolved FOP-2428.
--
Resolution: Incomplete

Please provide the following:

1. minimal XSL-FO input file that demonstrates problem;
2. the output RTF and output PDF that you receive by running the command line 
version of FOP;

Note also that author supplied font metrics are no longer used, and are 
effectively ignored.

After you provide these files, then we can evaluate if this is a user error or 
an FOP problem.

 Apache PDF issue with Wingdings characters
 --

 Key: FOP-2428
 URL: https://issues.apache.org/jira/browse/FOP-2428
 Project: Fop
  Issue Type: Bug
  Components: fo/inline
Affects Versions: 1.0
 Environment: Windows, Unix
Reporter: PRAVAT
Priority: Critical
  Labels: ApachePDf, Wingding

 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 U+00FDý      
 U+00FEþ   



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


[jira] [Updated] (FOP-2428) Apache PDF issue with Wingdings characters

2014-11-20 Thread PRAVAT (JIRA)

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

PRAVAT updated FOP-2428:

Attachment: Wingdings.ttf
Sample.xml
Sample.rtf
Sample.pdf

File Attached for reference:
Input XSL-FO file - Sample.xml
Font used Wingdings.ttf

 Apache PDF issue with Wingdings characters
 --

 Key: FOP-2428
 URL: https://issues.apache.org/jira/browse/FOP-2428
 Project: Fop
  Issue Type: Bug
  Components: fo/inline
Affects Versions: 1.0
 Environment: Windows, Unix
Reporter: PRAVAT
Priority: Critical
  Labels: ApachePDf, Wingding
 Attachments: Sample.pdf, Sample.rtf, Sample.xml, Wingdings.ttf


 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 U+00FDý      
 U+00FEþ   



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


[jira] [Reopened] (FOP-2428) Apache PDF issue with Wingdings characters

2014-11-20 Thread PRAVAT (JIRA)

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

PRAVAT reopened FOP-2428:
-

Attached the required file for reference

 Apache PDF issue with Wingdings characters
 --

 Key: FOP-2428
 URL: https://issues.apache.org/jira/browse/FOP-2428
 Project: Fop
  Issue Type: Bug
  Components: fo/inline
Affects Versions: 1.0
 Environment: Windows, Unix
Reporter: PRAVAT
Priority: Critical
  Labels: ApachePDf, Wingding
 Attachments: Sample.pdf, Sample.rtf, Sample.xml, Wingdings.ttf


 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 U+00FDý      
 U+00FEþ   



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


[jira] [Resolved] (FOP-2428) Apache PDF issue with Wingdings characters

2014-11-20 Thread Glenn Adams (JIRA)

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

Glenn Adams resolved FOP-2428.
--
Resolution: Cannot Reproduce

 Apache PDF issue with Wingdings characters
 --

 Key: FOP-2428
 URL: https://issues.apache.org/jira/browse/FOP-2428
 Project: Fop
  Issue Type: Bug
  Components: fo/inline
Affects Versions: 1.0
 Environment: Windows, Unix
Reporter: PRAVAT
Priority: Critical
  Labels: ApachePDf, Wingding
 Attachments: Sample.pdf, Sample.rtf, Sample.xml, Wingdings.ttf, 
 fop.xconf, test.1.0.pdf, test.1.0.rtf, test.fo.xml, test.trunk.pdf, 
 test.trunk.rtf


 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 U+00FDý      
 U+00FEþ   



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


[jira] [Updated] (FOP-2428) Apache PDF issue with Wingdings characters

2014-11-20 Thread Glenn Adams (JIRA)

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

Glenn Adams updated FOP-2428:
-
Attachment: fop.xconf
test.trunk.rtf
test.trunk.pdf
test.1.0.rtf
test.1.0.pdf
test.fo.xml

Tested on both FOP 1.0 and current trunk. Unable to reproduce. Suggest you try 
with FOP configuration file I am using (attached) to see if your results vary. 
You need to put the font file into a ./fonts subdirectory of where you run FOP. 
This configuration disables font cache and loads only known fonts (from ./fonts 
subdirectory) which can help eliminate problems where FOP might be using a 
different font than you expect.

 Apache PDF issue with Wingdings characters
 --

 Key: FOP-2428
 URL: https://issues.apache.org/jira/browse/FOP-2428
 Project: Fop
  Issue Type: Bug
  Components: fo/inline
Affects Versions: 1.0
 Environment: Windows, Unix
Reporter: PRAVAT
Priority: Critical
  Labels: ApachePDf, Wingding
 Attachments: Sample.pdf, Sample.rtf, Sample.xml, Wingdings.ttf, 
 fop.xconf, test.1.0.pdf, test.1.0.rtf, test.fo.xml, test.trunk.pdf, 
 test.trunk.rtf


 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 U+00FDý      
 U+00FEþ   



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


[jira] [Updated] (FOP-2428) Apache PDF issue with Wingdings characters

2014-11-20 Thread PRAVAT (JIRA)

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

PRAVAT updated FOP-2428:

Attachment: myfop.xconf

 Apache PDF issue with Wingdings characters
 --

 Key: FOP-2428
 URL: https://issues.apache.org/jira/browse/FOP-2428
 Project: Fop
  Issue Type: Bug
  Components: fo/inline
Affects Versions: 1.0
 Environment: Windows, Unix
Reporter: PRAVAT
Priority: Critical
  Labels: ApachePDf, Wingding
 Attachments: Sample.pdf, Sample.rtf, Sample.xml, Wingdings.ttf, 
 fop.xconf, myfop.xconf, test.1.0.pdf, test.1.0.rtf, test.fo.xml, 
 test.trunk.pdf, test.trunk.rtf


 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 U+00FDý      
 U+00FEþ   



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


[jira] [Reopened] (FOP-2428) Apache PDF issue with Wingdings characters

2014-11-20 Thread PRAVAT (JIRA)

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

PRAVAT reopened FOP-2428:
-

Attached myfop.xconf because when I use your fop.xconf, it throws below error.

Exception in thread main java.lang.NoSuchMethodError: 
org.apache.commons.io.filefilter.FileFilterUtils.fileFileFilter()Lorg/apache/commons/io/filefilter/IOFileFilter;

Anyway, with myfop.xconf I keep all the font files in the same directory. I get 
below warning, when I run fop
 
WARNING: Glyph þ (0xfe, thorn) not available in font Wingdings-Regular.
WARNING: Glyph ý (0xfd, yacute) not available in font Wingdings-Regular.

 Apache PDF issue with Wingdings characters
 --

 Key: FOP-2428
 URL: https://issues.apache.org/jira/browse/FOP-2428
 Project: Fop
  Issue Type: Bug
  Components: fo/inline
Affects Versions: 1.0
 Environment: Windows, Unix
Reporter: PRAVAT
Priority: Critical
  Labels: ApachePDf, Wingding
 Attachments: Sample.pdf, Sample.rtf, Sample.xml, Wingdings.ttf, 
 fop.xconf, myfop.xconf, test.1.0.pdf, test.1.0.rtf, test.fo.xml, 
 test.trunk.pdf, test.trunk.rtf


 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 U+00FDý      
 U+00FEþ   



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


[jira] [Commented] (FOP-2428) Apache PDF issue with Wingdings characters

2014-11-20 Thread Glenn Adams (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14219456#comment-14219456
 ] 

Glenn Adams commented on FOP-2428:
--

As I mentioned in a comment above, the font metrics is no longer used starting 
around FOP 1.0 (FOP always uses the font file itself), so you can remove the 
font/ element from your config. Also, I'd suggest you specify the fonts 
directory and store only the one wingdings.ttf file in it (see the 
configuration file I attached).

 Apache PDF issue with Wingdings characters
 --

 Key: FOP-2428
 URL: https://issues.apache.org/jira/browse/FOP-2428
 Project: Fop
  Issue Type: Bug
  Components: fo/inline
Affects Versions: 1.0
 Environment: Windows, Unix
Reporter: PRAVAT
Priority: Critical
  Labels: ApachePDf, Wingding
 Attachments: Sample.pdf, Sample.rtf, Sample.xml, Wingdings.ttf, 
 fop.xconf, myfop.xconf, test.1.0.pdf, test.1.0.rtf, test.fo.xml, 
 test.trunk.pdf, test.trunk.rtf


 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 U+00FDý      
 U+00FEþ   



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


[jira] [Commented] (FOP-2428) Apache PDF issue with Wingdings characters

2014-11-20 Thread Glenn Adams (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14219464#comment-14219464
 ] 

Glenn Adams commented on FOP-2428:
--

you may have a version problem with your FOP installation; sounds like your 
version of apache commons does not correspond with the one used by your 
installation of FOP; i had no problem with using the config I attached on 
either FOP 1.0 or FOP trunk;

 Apache PDF issue with Wingdings characters
 --

 Key: FOP-2428
 URL: https://issues.apache.org/jira/browse/FOP-2428
 Project: Fop
  Issue Type: Bug
  Components: fo/inline
Affects Versions: 1.0
 Environment: Windows, Unix
Reporter: PRAVAT
Priority: Critical
  Labels: ApachePDf, Wingding
 Attachments: Sample.pdf, Sample.rtf, Sample.xml, Wingdings.ttf, 
 fop.xconf, myfop.xconf, test.1.0.pdf, test.1.0.rtf, test.fo.xml, 
 test.trunk.pdf, test.trunk.rtf


 The below unicode Character   s give different results for Apache RTF 
 and PDF format. The font used here is Winfdings. RTF gives the correct 
 output, where as the PDF does not find these characters. I am using APache 
 FOP 1.0.
 U+00FDý      
 U+00FEþ   



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