RE: font configuration in fop
Hi Mehdi, Here I have attached the font Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 08, 2010 1:44 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, Could you send the font file? Thanks Mehdi On 8 November 2010 03:13, SriKrishnan srikrish...@techset.co.uk wrote: Hi Mehdi, Thanks for your guidance. I have changed the syntax errors I done as per you mentioned, it moves the lines further. But still there are some errors occurs. Can You help me to identify these? FYR: C:\java -cp C:\fop-1.0\build\fop.jar;C:\fop-1.0\lib\avalon-framework-4.2.0.jar;C:\f op-1.0\lib\commons-logging-1.0.4.jar;C:\fop-1.0\lib\commons-io-1.3.1.jar org.apache.fop.fonts.apps.TTFReader -d C:\Advent\3b2fonts\OpenTypeFonts\Goudy.otf Goudy.xml TTF Reader for Apache FOP 1.0 Parsing font... Reading C:\Advent\3b2fonts\OpenTypeFonts\Goudy.otf... sfnt version: OpenType with CFF data Reading 10 dir tables dir tables: [post, CFF , name, cmap, OS/2, hmtx, head, GPOS, maxp, hhea] flags: 3 - 11 unit per em: 1000 font bbox: xMin=-168 yMin=-213 xMax=1001 yMax=967 Number of glyphs in font: 229 hhea.Ascender: 967 - 967 internal units hhea.Descender: -213 - -213 internal units Number of horizontal metrics: 229 Exception in thread main java.lang.NoClassDefFoundError: org/apache/xmlgraphics/fonts/Glyphs at org.apache.fop.fonts.truetype.TTFFile.initAnsiWidths(TTFFile.java:492) at org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:541) at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:209) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:164) Caused by: java.lang.ClassNotFoundException: org.apache.xmlgraphics.fonts.Glyphs at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 4 more Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Thursday, November 04, 2010 7:08 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, Just to add, I forgot to mention, you're also using the the wrong character to denote folders / is a Unix/Linux folder separator, in windows command line you have to use \. So your final command should be: java -cp C:\fop-1.0\build\fop.jar;C:\fop-1.0\lib\avalon-framework-4.2.0.jar;C:\f op-1.0\lib\commons-logging-1.0.4.jar;C:\fop-1.0\lib\commons-io-1.3.1.jar org.apache.fop.fonts.apps.TTFReader -d C:\OpenTypeFonts\Goudy.otf Goudy.xml That is of course presuming everything is in the correct directories as specified. Thanks Mehdi On 4 November 2010 12:29, Chen Yang cy...@hrsg.ca wrote: Hi Srikrishnan, Here is the command I used for Chinese fonts in Linux # java cp /root/Desktop/fop/build/fop.jar:/root/Desktop/fop/lib/avalon-framework-4.2.0 .jar:/root/Desktop/fop/lib/commons-logging-1.0.4.jar:/root/Desktop/fop/lib/c ommons-io-1.3.1.jar:/root/Desktop/fop/lib/xmlgraphics-commons-1.4.jar org.apache.fop.fonts.apps.TTFReader /usr/share/fonts/simhei/simhei.ttf /usr/share/fonts/simhei/simhei.xml Chen From: SriKrishnan [mailto:srikrish...@techset.co.uk] Sent: November-04-10 6:11 AM To: fop-users@xmlgraphics.apache.org Subject: font configuration in fop Hi All, I want to configure Goudy font in my fop. I tried something like below as per mentioned in the Documentation: D:\xslfojava -cp C:/fop-1.0/build/fop.jar;C:/fop-1.0/lib/avalon-framework-4.2.0.jar;C:/f op-1.0/lib/commans-logging-1.0.4.jar;C:/fop-1.0/lib/commons-io-1.3.1.jar org.apache.fop.fonts.apps.TTFReader -d C:/ OpenTypeFonts/Goudy.otf Goudy.xml But I encountered some error message as follows: Exception in thread main java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:119) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 1 more Can anybody helpme to understand what about this? And how to solve this? Thanks in Advance, Srikrishnan - To unsubscribe, e-mail: fop-users-unsubscr
RE: font configuration in fop
Hi Mehdi, It is already defined in fop.bat file as follows: set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.4.jar Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 08, 2010 2:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, You also need to include the xmlgraphics-commons JAR file to your class path, it's in the FOP directory in [FOP]/lib folder. Just to add, when you execute the command you'll see that Open-Type Compact Font Format aren't supported yet. Just so you know, I don't know if you want to continue on this path. Thanks Mehdi On 8 November 2010 08:42, SriKrishnan srikrish...@techset.co.uk wrote: Hi Mehdi, Here I have attached the font Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 08, 2010 1:44 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, Could you send the font file? Thanks Mehdi On 8 November 2010 03:13, SriKrishnan srikrish...@techset.co.uk wrote: Hi Mehdi, Thanks for your guidance. I have changed the syntax errors I done as per you mentioned, it moves the lines further. But still there are some errors occurs. Can You help me to identify these? FYR: C:\java -cp C:\fop-1.0\build\fop.jar;C:\fop-1.0\lib\avalon-framework-4.2.0.jar;C:\f op-1.0\lib\commons-logging-1.0.4.jar;C:\fop-1.0\lib\commons-io-1.3.1.jar org.apache.fop.fonts.apps.TTFReader -d C:\Advent\3b2fonts\OpenTypeFonts\Goudy.otf Goudy.xml TTF Reader for Apache FOP 1.0 Parsing font... Reading C:\Advent\3b2fonts\OpenTypeFonts\Goudy.otf... sfnt version: OpenType with CFF data Reading 10 dir tables dir tables: [post, CFF , name, cmap, OS/2, hmtx, head, GPOS, maxp, hhea] flags: 3 - 11 unit per em: 1000 font bbox: xMin=-168 yMin=-213 xMax=1001 yMax=967 Number of glyphs in font: 229 hhea.Ascender: 967 - 967 internal units hhea.Descender: -213 - -213 internal units Number of horizontal metrics: 229 Exception in thread main java.lang.NoClassDefFoundError: org/apache/xmlgraphics/fonts/Glyphs at org.apache.fop.fonts.truetype.TTFFile.initAnsiWidths(TTFFile.java:492) at org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:541) at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:209) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:164) Caused by: java.lang.ClassNotFoundException: org.apache.xmlgraphics.fonts.Glyphs at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 4 more Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Thursday, November 04, 2010 7:08 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, Just to add, I forgot to mention, you're also using the the wrong character to denote folders / is a Unix/Linux folder separator, in windows command line you have to use \. So your final command should be: java -cp C:\fop-1.0\build\fop.jar;C:\fop-1.0\lib\avalon-framework-4.2.0.jar;C:\f op-1.0\lib\commons-logging-1.0.4.jar;C:\fop-1.0\lib\commons-io-1.3.1.jar org.apache.fop.fonts.apps.TTFReader -d C:\OpenTypeFonts\Goudy.otf Goudy.xml That is of course presuming everything is in the correct directories as specified. Thanks Mehdi On 4 November 2010 12:29, Chen Yang cy...@hrsg.ca wrote: Hi Srikrishnan, Here is the command I used for Chinese fonts in Linux # java cp /root/Desktop/fop/build/fop.jar:/root/Desktop/fop/lib/avalon-framework-4.2.0 .jar:/root/Desktop/fop/lib/commons-logging-1.0.4.jar:/root/Desktop/fop/lib/c ommons-io-1.3.1.jar:/root/Desktop/fop/lib/xmlgraphics-commons-1.4.jar org.apache.fop.fonts.apps.TTFReader /usr/share/fonts/simhei/simhei.ttf /usr/share/fonts/simhei/simhei.xml Chen From: SriKrishnan [mailto:srikrish...@techset.co.uk] Sent: November-04-10 6:11 AM To: fop-users@xmlgraphics.apache.org Subject: font configuration in fop Hi All, I want to configure Goudy font in my fop. I tried something like below as per mentioned in the Documentation: D:\xslfojava -cp C:/fop-1.0/build/fop.jar;C:/fop-1.0/lib/avalon-framework-4.2.0.jar;C:/f op-1.0/lib/commans-logging-1.0.4.jar;C:/fop-1.0/lib/commons-io-1.3.1.jar org.apache.fop.fonts.apps.TTFReader -d C:/ OpenTypeFonts/Goudy.otf Goudy.xml But I encountered some error message as follows: Exception in thread main java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
RE: font configuration in fop
Hi Mehdi, Sorry I forgot that, yes as per the syntax we are not used fop at the time of creating font file. I came to know from Document that in newer version, we dont need to create xml font matrics. So now I just added the following lines in my font configuration xml file as follows: font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\ARIALN.TTF font-triplet name=ArialN style=normal weight=normal/ font-triplet name=ArialNTT style=normal weight=normal/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\ARIALNB.TTF font-triplet name=ArialN style=normal weight=bold/ font-triplet name=ArialNTT style=normal weight=bold/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\ARIALNBI.TTF font-triplet name=ArialN style=italic weight=bold/ font-triplet name=ArialNTT style=italic weight=bold/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\ARIALNI.TTF font-triplet name=ArialN style=italic weight=normal/ font-triplet name=ArialNTT style=italic weight=normal/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\times.ttf font-triplet name=tnr style=normal weight=normal/ font-triplet name=tnrTT style=normal weight=normal/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\timesbd.ttf font-triplet name=tnr style=normal weight=bold/ font-triplet name=tnrTT style=normal weight=bold/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\timesbi.ttf font-triplet name=tnr style=italic weight=bold/ font-triplet name=tnrTT style=italic weight=bold/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\timesi.ttf font-triplet name=tnr style=italic weight=normal/ font-triplet name=tnrTT style=italic weight=normal/ /font !--directory recursive=trueC:\Windows\Fonts/directory-- directory recursive=trueC:\Advent\3b2fonts\OpenTypeFonts/directory directory recursive=trueC:\Advent\3b2fonts\TrueTypeFonts/directory auto-detect/ /fonts It works as per my expectation. The only problem is base font Times New Roman was not substituted by the configured Times font. Can anybody help me, how to overwrite default base font? Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 08, 2010 3:03 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, It may be so, but if you're using the command you've specified above, you've not invoking this with the fop.bat, you're using the java command and specifying the class path directly, thus the java -cp (cp = classpath). The fop.bat is just a file that contains all the commands that you'd otherwise write in the command line, it must be called directly if you want to take advantage of the parameters within it. Since you're not using the fop.bat you'll need to include xmlgraphics-commons when you're calling TTFReader, because TTFReader references org.apache.xmlgraphics.fonts.Glyphs. Hope I've made myself clear there. Mehdi On 8 November 2010 09:13, SriKrishnan srikrish...@techset.co.uk wrote: Hi Mehdi, It is already defined in fop.bat file as follows: set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.4.jar Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 08, 2010 2:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, You also need to include the xmlgraphics-commons JAR file to your class path, it's in the FOP directory in [FOP]/lib folder. Just to add, when you execute the command you'll see that Open-Type Compact Font Format aren't supported yet. Just so you know, I don't know if you want to continue on this path. Thanks Mehdi On 8 November 2010 08:42, SriKrishnan srikrish...@techset.co.uk wrote: Hi Mehdi, Here I have attached the font Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 08, 2010 1:44 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, Could you send the font file? Thanks Mehdi On 8 November 2010 03:13, SriKrishnan srikrish...@techset.co.uk wrote: Hi Mehdi, Thanks for your guidance. I have changed the syntax errors I done as per you mentioned, it moves the lines further. But still there are some errors occurs. Can You help me to identify these? FYR: C:\java -cp C:\fop-1.0\build\fop.jar;C:\fop-1.0\lib\avalon-framework-4.2.0.jar;C:\f op-1.0\lib\commons-logging-1.0.4.jar;C:\fop-1.0\lib\commons-io-1.3.1.jar org.apache.fop.fonts.apps.TTFReader -d C:\Advent\3b2fonts\OpenTypeFonts\Goudy.otf Goudy.xml TTF Reader for Apache FOP 1.0 Parsing font... Reading C:\Advent\3b2fonts\OpenTypeFonts\Goudy.otf... sfnt version: OpenType with CFF data Reading 10 dir tables dir tables: [post, CFF , name, cmap, OS/2, hmtx, head, GPOS, maxp, hhea] flags
RE: font configuration in fop
Hi Mehdi, Thanks for your help. As per you expected in my fo I have changed as follows: fo:block font-size=10pt line-height=10.5pt text-align=justify font-family=tnr Actually what is the problem with Default times is, I assume it is a postscript font TimesNewRomanPSMT. This supports only ASCII range. Whereas in Times New Roman (TrueType) we have UTF-8 support character ranges. So that, I tried to substitute that. But eventhough I have updated my fo. In the pdf it only embedded default font Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 08, 2010 3:46 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, Yes the XML font matrix is deprecated, it's probably something I should have said before but it's all in the wiki so I presumed you looked in there first. As for your problem with Times New Roman font, I'm not 100% on this, but I think it's because you've using font-triplet name=tnr..., thus your new font will be called tnr rather than Times New Roman. Also, I'm not sure it's wise to name the same font with 2 names (just as a matter of principle) as you have with almost all your manually configured fonts, unless you know what you're doing, in which case ignore me. I hope that helps Mehdi On 8 November 2010 09:44, SriKrishnan srikrish...@techset.co.uk wrote: Hi Mehdi, Sorry I forgot that, yes as per the syntax we are not used fop at the time of creating font file. I came to know from Document that in newer version, we dont need to create xml font matrics. So now I just added the following lines in my font configuration xml file as follows: font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\ARIALN.TTF font-triplet name=ArialN style=normal weight=normal/ font-triplet name=ArialNTT style=normal weight=normal/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\ARIALNB.TTF font-triplet name=ArialN style=normal weight=bold/ font-triplet name=ArialNTT style=normal weight=bold/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\ARIALNBI.TTF font-triplet name=ArialN style=italic weight=bold/ font-triplet name=ArialNTT style=italic weight=bold/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\ARIALNI.TTF font-triplet name=ArialN style=italic weight=normal/ font-triplet name=ArialNTT style=italic weight=normal/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\times.ttf font-triplet name=tnr style=normal weight=normal/ font-triplet name=tnrTT style=normal weight=normal/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\timesbd.ttf font-triplet name=tnr style=normal weight=bold/ font-triplet name=tnrTT style=normal weight=bold/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\timesbi.ttf font-triplet name=tnr style=italic weight=bold/ font-triplet name=tnrTT style=italic weight=bold/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\timesi.ttf font-triplet name=tnr style=italic weight=normal/ font-triplet name=tnrTT style=italic weight=normal/ /font !--directory recursive=trueC:\Windows\Fonts/directory-- directory recursive=trueC:\Advent\3b2fonts\OpenTypeFonts/directory directory recursive=trueC:\Advent\3b2fonts\TrueTypeFonts/directory auto-detect/ /fonts It works as per my expectation. The only problem is base font Times New Roman was not substituted by the configured Times font. Can anybody help me, how to overwrite default base font? Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 08, 2010 3:03 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, It may be so, but if you're using the command you've specified above, you've not invoking this with the fop.bat, you're using the java command and specifying the class path directly, thus the java -cp (cp = classpath). The fop.bat is just a file that contains all the commands that you'd otherwise write in the command line, it must be called directly if you want to take advantage of the parameters within it. Since you're not using the fop.bat you'll need to include xmlgraphics-commons when you're calling TTFReader, because TTFReader references org.apache.xmlgraphics.fonts.Glyphs. Hope I've made myself clear there. Mehdi On 8 November 2010 09:13, SriKrishnan srikrish...@techset.co.uk wrote: Hi Mehdi, It is already defined in fop.bat file as follows: set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.4.jar Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 08, 2010 2:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, You also need to include the xmlgraphics-commons JAR file
RE: font configuration in fop
Hi Mehdi, Actually I want to use Times New Roman (TrueType) (TIMES.ttf). But as default TimesNewRomanPSMT only get embedded with my PDF Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 08, 2010 4:44 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, I'm not sure what you're trying to do, could you explain what you're expecting to happen? You've specified embed-url for the tnr font, thereby specifying that you want to embed this font into your pdf file. Mehdi On 8 November 2010 10:38, SriKrishnan srikrish...@techset.co.uk wrote: Hi Mehdi, Thanks for your help. As per you expected in my fo I have changed as follows: fo:block font-size=10pt line-height=10.5pt text-align=justify font-family=tnr Actually what is the problem with Default times is, I assume it is a postscript font TimesNewRomanPSMT. This supports only ASCII range. Whereas in Times New Roman (TrueType) we have UTF-8 support character ranges. So that, I tried to substitute that. But eventhough I have updated my fo. In the pdf it only embedded default font Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 08, 2010 3:46 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, Yes the XML font matrix is deprecated, it's probably something I should have said before but it's all in the wiki so I presumed you looked in there first. As for your problem with Times New Roman font, I'm not 100% on this, but I think it's because you've using font-triplet name=tnr..., thus your new font will be called tnr rather than Times New Roman. Also, I'm not sure it's wise to name the same font with 2 names (just as a matter of principle) as you have with almost all your manually configured fonts, unless you know what you're doing, in which case ignore me. I hope that helps Mehdi On 8 November 2010 09:44, SriKrishnan srikrish...@techset.co.uk wrote: Hi Mehdi, Sorry I forgot that, yes as per the syntax we are not used fop at the time of creating font file. I came to know from Document that in newer version, we dont need to create xml font matrics. So now I just added the following lines in my font configuration xml file as follows: font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\ARIALN.TTF font-triplet name=ArialN style=normal weight=normal/ font-triplet name=ArialNTT style=normal weight=normal/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\ARIALNB.TTF font-triplet name=ArialN style=normal weight=bold/ font-triplet name=ArialNTT style=normal weight=bold/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\ARIALNBI.TTF font-triplet name=ArialN style=italic weight=bold/ font-triplet name=ArialNTT style=italic weight=bold/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\ARIALNI.TTF font-triplet name=ArialN style=italic weight=normal/ font-triplet name=ArialNTT style=italic weight=normal/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\times.ttf font-triplet name=tnr style=normal weight=normal/ font-triplet name=tnrTT style=normal weight=normal/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\timesbd.ttf font-triplet name=tnr style=normal weight=bold/ font-triplet name=tnrTT style=normal weight=bold/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\timesbi.ttf font-triplet name=tnr style=italic weight=bold/ font-triplet name=tnrTT style=italic weight=bold/ /font font kerning=yes embed-url=C:\Advent\3b2fonts\TrueTypeFonts\timesi.ttf font-triplet name=tnr style=italic weight=normal/ font-triplet name=tnrTT style=italic weight=normal/ /font !--directory recursive=trueC:\Windows\Fonts/directory-- directory recursive=trueC:\Advent\3b2fonts\OpenTypeFonts/directory directory recursive=trueC:\Advent\3b2fonts\TrueTypeFonts/directory auto-detect/ /fonts It works as per my expectation. The only problem is base font Times New Roman was not substituted by the configured Times font. Can anybody help me, how to overwrite default base font? Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 08, 2010 3:03 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, It may be so, but if you're using the command you've specified above, you've not invoking this with the fop.bat, you're using the java command and specifying the class path directly, thus the java -cp (cp = classpath). The fop.bat is just a file that contains all the commands that you'd otherwise write in the command line, it must be called directly if you want to take advantage of the parameters within it. Since you're not using the fop.bat you'll
RE: font configuration in fop
Hi Mehdi, Thanks for your guidance. I have changed the syntax errors I done as per you mentioned, it moves the lines further. But still there are some errors occurs. Can You help me to identify these? FYR: C:\java -cp C:\fop-1.0\build\fop.jar;C:\fop-1.0\lib\avalon-framework-4.2.0.jar;C:\f op-1.0\lib\commons-logging-1.0.4.jar;C:\fop-1.0\lib\commons-io-1.3.1.jar org.apache.fop.fonts.apps.TTFReader -d C:\Advent\3b2fonts\OpenTypeFonts\Goudy.otf Goudy.xml TTF Reader for Apache FOP 1.0 Parsing font... Reading C:\Advent\3b2fonts\OpenTypeFonts\Goudy.otf... sfnt version: OpenType with CFF data Reading 10 dir tables dir tables: [post, CFF , name, cmap, OS/2, hmtx, head, GPOS, maxp, hhea] flags: 3 - 11 unit per em: 1000 font bbox: xMin=-168 yMin=-213 xMax=1001 yMax=967 Number of glyphs in font: 229 hhea.Ascender: 967 - 967 internal units hhea.Descender: -213 - -213 internal units Number of horizontal metrics: 229 Exception in thread main java.lang.NoClassDefFoundError: org/apache/xmlgraphics/fonts/Glyphs at org.apache.fop.fonts.truetype.TTFFile.initAnsiWidths(TTFFile.java:492) at org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:541) at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:209) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:164) Caused by: java.lang.ClassNotFoundException: org.apache.xmlgraphics.fonts.Glyphs at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 4 more Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Thursday, November 04, 2010 7:08 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font configuration in fop Hi SriKrishnan, Just to add, I forgot to mention, you're also using the the wrong character to denote folders / is a Unix/Linux folder separator, in windows command line you have to use \. So your final command should be: java -cp C:\fop-1.0\build\fop.jar;C:\fop-1.0\lib\avalon-framework-4.2.0.jar;C:\f op-1.0\lib\commons-logging-1.0.4.jar;C:\fop-1.0\lib\commons-io-1.3.1.jar org.apache.fop.fonts.apps.TTFReader -d C:\OpenTypeFonts\Goudy.otf Goudy.xml That is of course presuming everything is in the correct directories as specified. Thanks Mehdi On 4 November 2010 12:29, Chen Yang cy...@hrsg.ca wrote: Hi Srikrishnan, Here is the command I used for Chinese fonts in Linux # java cp /root/Desktop/fop/build/fop.jar:/root/Desktop/fop/lib/avalon-framework-4.2.0 .jar:/root/Desktop/fop/lib/commons-logging-1.0.4.jar:/root/Desktop/fop/lib/c ommons-io-1.3.1.jar:/root/Desktop/fop/lib/xmlgraphics-commons-1.4.jar org.apache.fop.fonts.apps.TTFReader /usr/share/fonts/simhei/simhei.ttf /usr/share/fonts/simhei/simhei.xml Chen From: SriKrishnan [mailto:srikrish...@techset.co.uk] Sent: November-04-10 6:11 AM To: fop-users@xmlgraphics.apache.org Subject: font configuration in fop Hi All, I want to configure Goudy font in my fop. I tried something like below as per mentioned in the Documentation: D:\xslfojava -cp C:/fop-1.0/build/fop.jar;C:/fop-1.0/lib/avalon-framework-4.2.0.jar;C:/f op-1.0/lib/commans-logging-1.0.4.jar;C:/fop-1.0/lib/commons-io-1.3.1.jar org.apache.fop.fonts.apps.TTFReader -d C:/ OpenTypeFonts/Goudy.otf Goudy.xml But I encountered some error message as follows: Exception in thread main java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:119) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 1 more Can anybody helpme to understand what about this? And how to solve this? Thanks in Advance, Srikrishnan - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
font configuration in fop
Hi All, I want to configure Goudy font in my fop. I tried something like below as per mentioned in the Documentation: D:\xslfojava -cp C:/fop-1.0/build/fop.jar;C:/fop-1.0/lib/avalon-framework-4.2.0.jar;C:/f op-1.0/lib/commans-logging-1.0.4.jar;C:/fop-1.0/lib/commons-io-1.3.1.jar org.apache.fop.fonts.apps.TTFReader -d C:/ OpenTypeFonts/Goudy.otf Goudy.xml But I encountered some error message as follows: Exception in thread main java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:119) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 1 more Can anybody helpme to understand what about this? And how to solve this? Thanks in Advance, Srikrishnan
RE: JEuclid and FOP
Hi All, Thanks for all your help. Now I have successfully created mathml.pdf by updated the below two lines in fop.bat set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jeuclid-core-3.1.9.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jeuclid-fop-3.1.9.jar Thanks a lot, Srikrishnan -Original Message- From: Simon Pepping [mailto:spepp...@leverkruid.eu] Sent: Tuesday, November 02, 2010 4:43 PM To: fop-users@xmlgraphics.apache.org Subject: Re: JEuclid and FOP On Mon, Nov 01, 2010 at 09:31:23PM +0100, J.Pietschmann wrote: On 01.11.2010 13:20, Peter Hancock wrote: I am not a windows user and so there may be an environmental reason you are not have success but I do not think that is likely. The fop.bat for windows isn't nearly as intelligent as the fop shell script used on Linux/Unix. In particular, on windows each jar which has to be included into the classpath gets an explicit line in the fop.bat, while the shell script automatically includes every jar it finds in the lib subdirectory. The fop.cmd command file should also automatically includes every jar in the lib subdir, but usually the fop.bat command takes precedence. I created fop.js for the same purpose. It should also include all jar files in the lib subdirectory automatically. Since I do not use MS Windows myself, I did not use or test it recently. Simon So in order to so in order to get FOP with JEuclid working on Windows with the fop.bat command, the fop.bat file has to be modified to add the JEuclid jars to LOCALCLASSPATH (this should'nt be too hard). Or just call fop.cmd explicitely: fop.cmd mathml.fo mathml.pdf - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
catalog with fop 1.0
Hi all, I came to knew that in fop version 1.0 there is a possibility to use catalog. Can anybody mention the correct syntax for that? I have tried something like below, but it doesn't work: Fop -xml sample.xml -xsl sample.xsl -catalog c:/catalog.xml -foout sample.fo My OS: Windows XP Professional My Fop: version 1.0 My catalog: Oasis xml catalog My public identifier in xml is as follows: !DOCTYPE article PUBLIC -//NLM//DTD Journal Publishing DTD v2.3 20070202//EN journalpublishing.dtd Thanks, Srikrishnan
RE: JEuclid and FOP
Hi Pete, Thanks for aware me about the new version. Now I have downloaded fop 1.0. Even in that I am not able to fix Mathml option. FYI: as per I mentioned in my mail readme.fop file which available inside the jeuclid-3.1.9-distribution.zip, itself they mentioned that both the jar files are copied into fop 0.95 version. Can you please help me to fix this problem either in fop 1.0 or fop 0.95? Thanks, Srikrishnan -Original Message- From: Peter Hancock [mailto:peter.hanc...@gmail.com] Sent: Monday, November 01, 2010 4:05 PM To: fop-users@xmlgraphics.apache.org Subject: Re: JEuclid and FOP Hi SriKrishnan, Recent versions of jeuclid are not compatible with fop 0.95: examples/mathml/build.xml of 0.95 refers to a jeuclid class net.sourceforge.jeuclid.MathBase, however this was removed from jeuclid in revision 425:c7cae27888cf (in 2007). The mathml support in FOP is now maintained by the JEuclid project, as stated in the examples/mathml/README of FOP trunk. I would recommend ugrading your version of FOP to 1.0 or even trunk and then follow the jeuclid-fop integration instructions that should be found somewhere at either http://jeuclid.sourceforge.net/ or http://sourceforge.net/projects/jeuclid/ If you really need to use 0.95 (although I certainly recommend upgrading to at 1.0 or above) then you will have to figure out which version of jeuclid is compatible and then probably build it from the source. Shout out if this is your only practical solution and I can help you out further. Pete On Sun, Oct 31, 2010 at 8:44 AM, SriKrishnan srikrish...@techset.co.uk wrote: Hi all, Can anybody provide me a step-by-step installation procedure document of Jeuclid plugin in FOP? As I am new to FOP and java, I dont know how to solve this problem. Because I have downloaded and copied the following files: jeuclid-core-3.1.9.jar jeuclid-fop-3.1.9.jar in my C:\fop-0.95\examples\mathml\lib folder (as per mentioned int the readme.txt file residing inside that folder) also as per the below instruction in the readme.fop file which available inside the jeuclid-3.1.9-distribution.zip, --- JEuclid FOP plug-in --- Installation * Pre-requesites The JEuclid FOP plug-in is tightly integrated with FOP development, it will therefore only work with specific versions of FOP. For this version you need: * FOP 0.95beta or 0.95 * Actual installation Copy the these files into your fop's lib/ directory * jeuclid-core-x.x.x.jar * jeuclid-fop-x.x.x.jar [] If you have downloaded the full JEuclid distribution, these files can be found in the repo/ sub-directory. That's it! Enjoy MathML support in FOP. I have copied the two files inside the following folder C:\fop-0.95\lib Eventhough I encountered the same error as follows: C:\fop-0.95\examples\mathml\docsfop mathml.fo mathml.pdf Oct 31, 2010 2:07:07 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker WARNING: Unknown formatting object http://www.w3.org/1998/Math/MathML^math Can anybody help me to fix this issue? FYI: MY OS: Windows xp professional My FOP Version: 0.95 Thanks, Srikrishnan - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: How to load tiff images successfully in PDF
Hi Mehdi, Thanks for your support. Can you guide me, how can I upload my fo, xsl, xml and images to you? Is there any option in fop-users or I can email straightaway to you? Thanks for your patience with me Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 01, 2010 5:21 PM To: fop-users@xmlgraphics.apache.org Subject: Re: How to load tiff images successfully in PDF Hi SriKrishan Could your upload all your source data i.e. the FO file (if you're using one, if not the XSLT and XML) and the image in TIF format. Obviously, remove any data from the FO/XML that maybe personal, but it looks as if you may have overflown the page with the TIF file. If you'd rather not do that, if you look in the wiki (http://wiki.apache.org/xmlgraphics-fop/ImageSupport) you'll see that TIF format images aren't scaled down (1:1 embedding), so it's quite possible that you've attempted to embed an image that's larger than the page or something of the sort. I hope that helps Mehdi On 31 October 2010 07:11, SriKrishnan srikrish...@techset.co.uk wrote: Hi, Thanks for your support. When I convert my fo using fop, the following warnings only appears: Oct 31, 2010 12:35:11 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Oct 31, 2010 12:35:11 PM org.apache.fop.hyphenation.Hyphenator getHyphenationTree SEVERE: Couldn't find hyphenation pattern en Oct 31, 2010 12:35:11 PM org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm updateData2 WARNING: Line 1 of a paragraph overflows the available area by 38160mpt. (fo:block, location: 1845/59) But the pdf size seems that it loads all tif images into it My gif loaded pdf size is 18,741KB My tif loaded pdf size is 22,242 KB FYI: I have converted the same tif files as gif files, those gif works correctly with my fop Thanks, Srikrishnan From: SriKrishnan [mailto:srikrish...@techset.co.uk] Sent: Saturday, October 30, 2010 10:54 AM To: 'fop-users@xmlgraphics.apache.org' Subject: RE: How to load tiff images successfully in PDF Hi, Sorry I forgot to mention one more thing: My tiff images are not corrupted those are embedded correctly in the pdf when I use them through InDesign or Quark or LaTeX Thanks, Srikrishnan From: SriKrishnan [mailto:srikrish...@techset.co.uk] Sent: Saturday, October 30, 2010 10:24 AM To: 'fop-users@xmlgraphics.apache.org' Subject: RE: How to load tiff images successfully in PDF Importance: High Hi, May be it is a stupid question for you. As I said clearly in my mail, I am new to FOP. I dont found any proper user friendly Documentation for FOP. So I am in a confusion whether I missed something or anything not supported by FOP. If you people like experts in all these things need any further details if you ask me, certainly it is my duty to furnish those details. My system and software details: OS: Windows XP professional FOP: version 0.95 Saxon: version 8 I have tried to open the pdf in two version of Acrobat In version 9, it popup the error message as mentioned in my earlier mail (with empty space for the image places). In version 6, it popup the error message as Colour space (with empty space for the image places) In GSVIEW, without showing any error message it opens the pdf (with empty space for the image places) If you are not interested to answer such a stupid questions, dont reply. Such kind of replies will discourage new users Regards, Srikrishnan From: SriKrishnan [mailto:srikrish...@techset.co.uk] Sent: Friday, October 29, 2010 3:02 PM To: 'fop-users@xmlgraphics.apache.org' Subject: How to load tiff images successfully in PDF Hi all, I am new to fop. I have successfully converted fo to pdf when gif images are loaded in the file. When came to tif images, pdf creates successfully, but when I scroll to the image page in Adobe Acrobat, the following error message popup: An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem My fo coding is as follows: fo:external-graphic src=url(file:/c:/sample/lhp01301.tif) width=auto height=auto content-width=auto content-height=auto/ But in the same above coding when I use gif image it works correctly. Any help would be very much useful. Thanks in Advance, Srikrishnan - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e
RE: How to load tiff images successfully in PDF
Hi Mehdi, Thanks for testing my sample. 1. I am just learning to write xsl-fo. This is my first sample. There are lot need to fix in my stylesheet. 2. I am running fop in my windows environment using MSDOS, my commandline is as follows: Fop lhp0008.fo lhp0008.pdf 3. So far, I am using fop-0.95 (just now I downloaded version 1.0, I need to check in that) Thanks a lot, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 01, 2010 6:18 PM To: fop-users@xmlgraphics.apache.org Subject: Re: How to load tiff images successfully in PDF Hi SriKrishnan, First of all, there are a lot of WARNING issues with the FO file, you might want to check the XSL spec to find the necessary parameters for FO elements, I'm using the trunk FOP.jar, and I've copy-pasted the errors below. And I've attached the PDF, that it produces. The images are being shown in TIF format, so I'm not sure where your issue comes from. What version of FOP are you using? Are you invoking fop via the command line? Also does the PDF look like it is supposed to? Thanks Mehdi 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent WARNING: In collapsing border model a table does not have padding (see http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a non-zero value for padding was found. The padding will be ignored. (See position 40:277) 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent WARNING: In collapsing border model a table does not have padding (see http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a non-zero value for padding was found. The padding will be ignored. (See position 605:277) 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent WARNING: In collapsing border model a table does not have padding (see http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a non-zero value for padding was found. The padding will be ignored. (See position 1010:277) 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent WARNING: In collapsing border model a table does not have padding (see http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a non-zero value for padding was found. The padding will be ignored. (See position 1288:277) 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent SEVERE: Invalid property value encountered in font-style=bold: org.apache.fop.fo.expr.PropertyException: file:***/008/lhp008.fo:25:137: No conversion defined bold; property:'font-style' (See position 2993:1842) org.apache.fop.fo.expr.PropertyException: file:***/008/lhp008.fo:25:137: No conversion defined bold; property:'font-style' at org.apache.fop.fo.properties.PropertyMaker.make(PropertyMaker.java:444) at org.apache.fop.fo.PropertyList.convertAttributeToProperty(PropertyList.java: 412) at org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:319) at org.apache.fop.fo.FObj.processNode(FObj.java:119) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.jav a:282) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171) at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transforme rIdentityImpl.java:1072) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerId entityImpl.java:484) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) at org.apache.fop.cli.Main.startFOP(Main.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:136) at org.apache.fop.cli.Main.main(Main.java:210) 01-Nov
RE: How to load tiff images successfully in PDF
Hi Mehdi, Thanks for your continous effort to clarify my doubt. I have analysed my tif. Actually original tif files (which I uploaded to fop-users) are created using Adobe Photoshop CS2 Windows. But those files are not natively supported by fop-0.95. But when I save as those files in IrfanView in the same format, fop-0.95 supports those files and the output appears correctly as same as yours. In fop-1.0, original tif files are supported without doing anything in the figures. I think there may be some issues in the tif format with the older version of fop. But now my problem with tif images fixed and also I came to understand many more things regarding fop, with your valuable guidance. Thanks, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 01, 2010 8:03 PM To: fop-users@xmlgraphics.apache.org Subject: Re: How to load tiff images successfully in PDF Hi SriKrishnan, I tried it in Windows7 (not based on MSDOS) and FOP 1.0 and it worked, same warning messages that you'll want to attend to, but it worked. I'd suggest you use 1.0, if that doesn't work, let me know. Thanks Mehdi On 1 November 2010 12:53, SriKrishnan srikrish...@techset.co.uk wrote: Hi Mehdi, Thanks for testing my sample. 1. I am just learning to write xsl-fo. This is my first sample. There are lot need to fix in my stylesheet. 2. I am running fop in my windows environment using MSDOS, my commandline is as follows: Fop lhp0008.fo lhp0008.pdf 3. So far, I am using fop-0.95 (just now I downloaded version 1.0, I need to check in that) Thanks a lot, Srikrishnan -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, November 01, 2010 6:18 PM To: fop-users@xmlgraphics.apache.org Subject: Re: How to load tiff images successfully in PDF Hi SriKrishnan, First of all, there are a lot of WARNING issues with the FO file, you might want to check the XSL spec to find the necessary parameters for FO elements, I'm using the trunk FOP.jar, and I've copy-pasted the errors below. And I've attached the PDF, that it produces. The images are being shown in TIF format, so I'm not sure where your issue comes from. What version of FOP are you using? Are you invoking fop via the command line? Also does the PDF look like it is supposed to? Thanks Mehdi 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent WARNING: In collapsing border model a table does not have padding (see http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a non-zero value for padding was found. The padding will be ignored. (See position 40:277) 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent WARNING: In collapsing border model a table does not have padding (see http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a non-zero value for padding was found. The padding will be ignored. (See position 605:277) 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent WARNING: In collapsing border model a table does not have padding (see http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a non-zero value for padding was found. The padding will be ignored. (See position 1010:277) 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent WARNING: In collapsing border model a table does not have padding (see http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a non-zero value for padding was found. The padding will be ignored. (See position 1288:277) 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent SEVERE: Invalid property value encountered in font-style=bold: org.apache.fop.fo.expr.PropertyException: file:***/008/lhp008.fo:25:137: No conversion defined bold; property:'font-style' (See position 2993:1842) org.apache.fop.fo.expr.PropertyException: file:***/008/lhp008.fo:25:137: No conversion defined bold; property:'font-style' at org.apache.fop.fo.properties.PropertyMaker.make(PropertyMaker.java:444) at org.apache.fop.fo.PropertyList.convertAttributeToProperty(PropertyList.java: 412) at org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:319) at org.apache.fop.fo.FObj.processNode(FObj.java:119) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.jav a:282) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171) at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transforme rIdentityImpl.java:1072) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
JEuclid and FOP
Hi all, Can anybody provide me a step-by-step installation procedure document of Jeuclid plugin in FOP? As I am new to FOP and java, I don't know how to solve this problem. Because I have downloaded and copied the following files: jeuclid-core-3.1.9.jar jeuclid-fop-3.1.9.jar in my C:\fop-0.95\examples\mathml\lib folder (as per mentioned int the readme.txt file residing inside that folder) also as per the below instruction in the readme.fop file which available inside the jeuclid-3.1.9-distribution.zip, --- JEuclid FOP plug-in --- Installation * Pre-requesites The JEuclid FOP plug-in is tightly integrated with FOP development, it will therefore only work with specific versions of FOP. For this version you need: * FOP 0.95beta or 0.95 * Actual installation Copy the these files into your fop's lib/ directory * jeuclid-core-x.x.x.jar * jeuclid-fop-x.x.x.jar [] If you have downloaded the full JEuclid distribution, these files can be found in the repo/ sub-directory. That's it! Enjoy MathML support in FOP. I have copied the two files inside the following folder C:\fop-0.95\lib Eventhough I encountered the same error as follows: C:\fop-0.95\examples\mathml\docsfop mathml.fo mathml.pdf Oct 31, 2010 2:07:07 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker WARNING: Unknown formatting object http://www.w3.org/1998/Math/MathML^math http://www.w3.org/1998/Math/MathML%5emath Can anybody help me to fix this issue? FYI: MY OS: Windows xp professional My FOP Version: 0.95 Thanks, Srikrishnan
RE: How to load tiff images successfully in PDF
Hi, Thanks for your support. When I convert my fo using fop, the following warnings only appears: Oct 31, 2010 12:35:11 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Oct 31, 2010 12:35:11 PM org.apache.fop.hyphenation.Hyphenator getHyphenationTree SEVERE: Couldn't find hyphenation pattern en Oct 31, 2010 12:35:11 PM org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm updateData2 WARNING: Line 1 of a paragraph overflows the available area by 38160mpt. (fo:block, location: 1845/59) But the pdf size seems that it loads all tif images into it My gif loaded pdf size is 18,741KB My tif loaded pdf size is 22,242 KB FYI: I have converted the same tif files as gif files, those gif works correctly with my fop Thanks, Srikrishnan _ From: SriKrishnan [mailto:srikrish...@techset.co.uk] Sent: Saturday, October 30, 2010 10:54 AM To: 'fop-users@xmlgraphics.apache.org' Subject: RE: How to load tiff images successfully in PDF Hi, Sorry I forgot to mention one more thing: My tiff images are not corrupted those are embedded correctly in the pdf when I use them through InDesign or Quark or LaTeX Thanks, Srikrishnan _ From: SriKrishnan [mailto:srikrish...@techset.co.uk] Sent: Saturday, October 30, 2010 10:24 AM To: 'fop-users@xmlgraphics.apache.org' Subject: RE: How to load tiff images successfully in PDF Importance: High Hi, May be it is a stupid question for you. As I said clearly in my mail, I am new to FOP. I don't found any proper user friendly Documentation for FOP. So I am in a confusion whether I missed something or anything not supported by FOP. If you people like experts in all these things need any further details if you ask me, certainly it is my duty to furnish those details. My system and software details: OS: Windows XP professional FOP: version 0.95 Saxon: version 8 I have tried to open the pdf in two version of Acrobat In version 9, it popup the error message as mentioned in my earlier mail (with empty space for the image places). In version 6, it popup the error message as Colour space (with empty space for the image places) In GSVIEW, without showing any error message it opens the pdf (with empty space for the image places) If you are not interested to answer such a stupid questions, don't reply. Such kind of replies will discourage new users Regards, Srikrishnan _ From: SriKrishnan [mailto:srikrish...@techset.co.uk] Sent: Friday, October 29, 2010 3:02 PM To: 'fop-users@xmlgraphics.apache.org' Subject: How to load tiff images successfully in PDF Hi all, I am new to fop. I have successfully converted fo to pdf when gif images are loaded in the file. When came to tif images, pdf creates successfully, but when I scroll to the image page in Adobe Acrobat, the following error message popup: An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem My fo coding is as follows: fo:external-graphic src=url(file:/c:/sample/lhp01301.tif) width=auto height=auto content-width=auto content-height=auto/ But in the same above coding when I use gif image it works correctly. Any help would be very much useful. Thanks in Advance, Srikrishnan
RE: How to load tiff images successfully in PDF
Hi, Sorry I forgot to mention one more thing: My tiff images are not corrupted those are embedded correctly in the pdf when I use them through InDesign or Quark or LaTeX Thanks, Srikrishnan _ From: SriKrishnan [mailto:srikrish...@techset.co.uk] Sent: Saturday, October 30, 2010 10:24 AM To: 'fop-users@xmlgraphics.apache.org' Subject: RE: How to load tiff images successfully in PDF Importance: High Hi, May be it is a stupid question for you. As I said clearly in my mail, I am new to FOP. I don't found any proper user friendly Documentation for FOP. So I am in a confusion whether I missed something or anything not supported by FOP. If you people like experts in all these things need any further details if you ask me, certainly it is my duty to furnish those details. My system and software details: OS: Windows XP professional FOP: version 0.95 Saxon: version 8 I have tried to open the pdf in two version of Acrobat In version 9, it popup the error message as mentioned in my earlier mail (with empty space for the image places). In version 6, it popup the error message as Colour space (with empty space for the image places) In GSVIEW, without showing any error message it opens the pdf (with empty space for the image places) If you are not interested to answer such a stupid questions, don't reply. Such kind of replies will discourage new users Regards, Srikrishnan _ From: SriKrishnan [mailto:srikrish...@techset.co.uk] Sent: Friday, October 29, 2010 3:02 PM To: 'fop-users@xmlgraphics.apache.org' Subject: How to load tiff images successfully in PDF Hi all, I am new to fop. I have successfully converted fo to pdf when gif images are loaded in the file. When came to tif images, pdf creates successfully, but when I scroll to the image page in Adobe Acrobat, the following error message popup: An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem My fo coding is as follows: fo:external-graphic src=url(file:/c:/sample/lhp01301.tif) width=auto height=auto content-width=auto content-height=auto/ But in the same above coding when I use gif image it works correctly. Any help would be very much useful. Thanks in Advance, Srikrishnan
How to load tiff images successfully in PDF
Hi all, I am new to fop. I have successfully converted fo to pdf when gif images are loaded in the file. When came to tif images, pdf creates successfully, but when I scroll to the image page in Adobe Acrobat, the following error message popup: An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem My fo coding is as follows: fo:external-graphic src=url(file:/c:/sample/lhp01301.tif) width=auto height=auto content-width=auto content-height=auto/ But in the same above coding when I use gif image it works correctly. Any help would be very much useful. Thanks in Advance, Srikrishnan
RE: How to load tiff images successfully in PDF
Hi, May be it is a stupid question for you. As I said clearly in my mail, I am new to FOP. I don't found any proper user friendly Documentation for FOP. So I am in a confusion whether I missed something or anything not supported by FOP. If you people like experts in all these things need any further details if you ask me, certainly it is my duty to furnish those details. My system and software details: OS: Windows XP professional FOP: version 0.95 Saxon: version 8 I have tried to open the pdf in two version of Acrobat In version 9, it popup the error message as mentioned in my earlier mail (with empty space for the image places). In version 6, it popup the error message as Colour space (with empty space for the image places) In GSVIEW, without showing any error message it opens the pdf (with empty space for the image places) If you are not interested to answer such a stupid questions, don't reply. Such kind of replies will discourage new users Regards, Srikrishnan _ From: SriKrishnan [mailto:srikrish...@techset.co.uk] Sent: Friday, October 29, 2010 3:02 PM To: 'fop-users@xmlgraphics.apache.org' Subject: How to load tiff images successfully in PDF Hi all, I am new to fop. I have successfully converted fo to pdf when gif images are loaded in the file. When came to tif images, pdf creates successfully, but when I scroll to the image page in Adobe Acrobat, the following error message popup: An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem My fo coding is as follows: fo:external-graphic src=url(file:/c:/sample/lhp01301.tif) width=auto height=auto content-width=auto content-height=auto/ But in the same above coding when I use gif image it works correctly. Any help would be very much useful. Thanks in Advance, Srikrishnan