[Fwd: [docbook-apps] FOP 0.91 : trying to remove a non-trailing word space]
Hello FOP Team, This is from the Docbook-Apps list. I think there is a stray debugging comment in the 0.91 version that can probably be removed--it seems unrelated to anything wrong that the user might be doing, but rather just a debugging note added in during algorithm development. See below. Thanks, Glen Original message Subject: [docbook-apps] FOP 0.91 : trying to remove a non-trailing word space Date: Wed, 05 Apr 2006 13:24:21 +0900 From: Michael(tm) Smith [EMAIL PROTECTED] To: docbook-apps@lists.oasis-open.org Has anyone else observed the following message when generating PDFs from FOP 0.91? - trying to remove a non-trailing word space Any idea what kind of problem (if any) it indicates? Any clues on how to avoid it and/or how to suppress the message? It seems to just be a notification. But it appears even when FOP is run with the -q (quiet) option. --Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Including special characters using FOP 0.20.5
Hi ! This will maybe be helpful although I do not know if it will solve your problem. I use a dtd for my xml input file where I include entity file definitions. I those files I defined all named entities (I render pdf from html so I need support for all kinds of special characters). This is example of how to define entity !ENTITY tilde #126; !ENTITY florin #131; You can then use tilde; in your xml without problems. Bye, Jelka Archana Visveswaran, ASDC Chennai [EMAIL PROTECTED] 06.04.2006 09:25 Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org cc Subject Including special characters using FOP 0.20.5 Hi, When I have symbols like $,,or copyright symbol I have problems when the pdf is rendered. I tried using #169; or #174; for copyright or registered symbols. This works fine. How do I resolve this for other symbols? Now that I know that Webdings cannot be supported by FOP, I have problems while including some icons supported by this font. Is there a way to resolve the same? Thanks and Regards, Archana V -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 9:06 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Error while creating metric file See here: http://xmlgraphics.apache.org/fop/0.20.5/embedding.html#config-external On 05.04.2006 16:57:51 Archana Visveswaran, ASDC Chennai wrote: Right! When I used fop -c option from my command line, the file gets converted well. But I have a Java application that does this conversion. Executing this code is similar to execution fop from command line. How can I make this code work with the -c option. i.e how do I ensure that the correct config file is referred to? I have attached the Java File. snip/ Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rép. : Including special characters usi ng FOP 0.20.5
Hi, I see two ways for your problem: 1) Include the font to your pdf as suggested by Jeremias below. See http://xmlgraphics.apache.org/fop/0.20.5/fonts.html or 2) Create icons in SVG format. http://xmlgraphics.apache.org/fop/0.20.5/graphics.html#svg Willy [EMAIL PROTECTED] 06/04/06 9:25 Hi, When I have symbols like $,',or copyright symbol I have problems when the pdf is rendered. I tried using © or ® for copyright or registered symbols. This works fine. How do I resolve this for other symbols? Now that I know that Webdings cannot be supported by FOP, I have problems while including some icons supported by this font. Is there a way to resolve the same? Thanks and Regards, Archana V -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 9:06 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Error while creating metric file See here: http://xmlgraphics.apache.org/fop/0.20.5/embedding.html#config-external On 05.04.2006 16:57:51 Archana Visveswaran, ASDC Chennai wrote: Right! When I used fop -c option from my command line, the file gets converted well. But I have a Java application that does this conversion. Executing this code is similar to execution fop from command line. How can I make this code work with the -c option. i.e how do I ensure that the correct config file is referred to? I have attached the Java File. snip/ Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rép. : Fonts not displayed properly i n Linux
Hi, We had a similar problem between Windows box and Unix Box it was an encoding problem. First be sur you use an xml editor to edit your files .xsl and .xml it should use encoding attribut of ?xml version=1.0 encoding=UTF-8 standalone=yes? and when you run your java application add parameter : java -Dfile.encoding=UTF-8 ... Regards Willy [EMAIL PROTECTED] 06/04/06 2:16 Hi, Thanks in advance for reading this message!! The problem that I encountered is that when I run the following command line (fop -xsl test.xsl -xml customer.xml -pdf customer.pdf) in the Command Prompt in windows , every Latin characters in the pdf file all displayed properly (for example, á). However, when the command line is ran through a Java program in JBoss, the latin characters are not displayed properly (for example, á). I'm using fop-0.20.5 with Java 1.4.2_06 and JBoss-3.2.2. Not quite sure why this is happening and the solution for this. I've been searching through a lot of different fop forums in the past two days and I didn't find similar issues related to my problem. Please help! Thank you in advance!! Best Regards, -- View this message in context: http://www.nabble.com/Fonts-not-displayed-properly-in-Linux-t1403045.html#a3776010 Sent from the FOP - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fop 0.20.5 and xml catalog files
hi, we are using fop 0.20.5 in a docbook environment. I got other tools (xmllint, xalan) to work with xml catalog files, but I don't know how to get fop to use xml catalogs. I have googled but didn't find a proper answer. Can somebody tell me how to get fop 0.20.5 to use a xml catalog file? Thanks a lot in advance, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP Trunk new problems
When I compile completly new FOP Trunk (head revision) by Apache ANT, I get following: BUILD SUCCESSFUL Total time: 52 seconds And then I have following problems: C:\FopTrunkfop Exception in thread main java.lang.NoClassDefFoundError: org/apache/xmlgraphics/util/Service at org.apache.fop.render.RendererFactory.discoverRenderers(RendererFactory.java:266) at org.apache.fop.render.RendererFactory.init(RendererFactory.java:56) at org.apache.fop.apps.FopFactory.init(FopFactory.java:64) at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:126) at org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java:90) at org.apache.fop.cli.Main.startFOP(Main.java:146) at org.apache.fop.cli.Main.main(Main.java:190) C:\FopTrunk Any resolution? Regards, Pavel Tyl -- View this message in context: http://www.nabble.com/FOP-Trunk-new-problems-t1404823.html#a3781048 Sent from the FOP - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP 0.20.5: preserving preformatted text
Diego F Guillen wrote: I have been trying to display pre-formatted text in FO, unsuccessfully. I tried: fo:block linefeed-treatment=preserve white-space-treatment=preserve [preformatted text goes here] /fo:block How do you do it? I think you also need white-space-collapse=false on the fo:block Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fop 0.20.5 and xml catalog files
FOP 0.20.5 does not support XML Catalogs. FOP 0.91beta or later supports them to a certain degree, but I'll have to write some tests first to verify that everything (still) works as necessary. On 06.04.2006 10:52:25 Dr. Thomas Krebs wrote: we are using fop 0.20.5 in a docbook environment. I got other tools (xmllint, xalan) to work with xml catalog files, but I don't know how to get fop to use xml catalogs. I have googled but didn't find a proper answer. Can somebody tell me how to get fop 0.20.5 to use a xml catalog file? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP 0.20.5: preserving preformatted text
Hi Chris, Yes, it works now. Thank you very much, Diego Chris Bowditch wrote: Diego F Guillen wrote: I have been trying to display pre-formatted text in FO, unsuccessfully. I tried: fo:block linefeed-treatment=preserve white-space-treatment=preserve [preformatted text goes here] /fo:block How do you do it? I think you also need white-space-collapse=false on the fo:block Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fop 0.20.5 and xml catalog files
On 06.04.2006 13:38:10 Dr. Thomas Krebs wrote: Jeremias Maerki wrote: FOP 0.20.5 does not support XML Catalogs. FOP 0.91beta or later supports them to a certain degree, but I'll have to write some tests first to verify that everything (still) works as necessary. Good, thanks! Is there a description how to use it in the 0.91 distribution? More or less, yes: http://xmlgraphics.apache.org/fop/latest/embedding.html#config-internal You can set a URIResolver on the FOUserAgent. The functionality is not yet available from the command-line. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: basic-link internal-destination - problem
That's a known issue documented in the release notes: http://xmlgraphics.apache.org/fop/relnotes.html On 06.04.2006 13:38:02 kralik wrote: I hit strange behavior in FOP Trunk (0.91beta does the same). Target of all my basic-links (in PDF) is always at the top of the page, where the target is. It is not just above the target like in FOP 0.20.5. Is it OK? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: basic-link internal-destination - problem
Sorry, it was my fault, that I looked over the last known issue. -- View this message in context: http://www.nabble.com/basic-link-internal-destination---problem-t1405340.html#a3782906 Sent from the FOP - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Arabic characters position ( SVG to PDF )
Hi all, I use fop to convert SVG files to PDF. My SVG contains UTF8 strings in arabic (direction right to left). Encoding and such characters are supported but the words are misplaced (it looks like the origin (x,y) is placed at ( x + lenght, y ). Here is an example to figure it out : http://leplatre.free.fr/pub/examplearabic.png Is it a known bug ? I didn't see anything about this in 0.92 change log... Does someone know a trick for this ? Thank you very much Mathieu. -- Mathieu Leplatre Météo France International - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Arabic characters position ( SVG to PDF )
It could be a flaw in the PDFTextPainter. If you provide a sample SVG file I can verify that. You don't say if you're converting through the PDFTranscoder or via XSL-FO. If you go via XSL-FO you can set: xml-handler namespace=http://www.w3.org/2000/svg; stroke-texttrue/stroke-text /xml-handler ...as a direct child of the renderer element for the PDF renderer in the configuration file. The PDFTranscoder currently doesn't support disabling the PDFTextPainter. Note: The above is only tested on the latest FOP Trunk. I can't guarantee without verifying if 0.91beta behaves the same way. On 06.04.2006 15:27:58 Mathieu Leplatre wrote: Hi all, I use fop to convert SVG files to PDF. My SVG contains UTF8 strings in arabic (direction right to left). Encoding and such characters are supported but the words are misplaced (it looks like the origin (x,y) is placed at ( x + lenght, y ). Here is an example to figure it out : http://leplatre.free.fr/pub/examplearabic.png Is it a known bug ? I didn't see anything about this in 0.92 change log... Does someone know a trick for this ? Thank you very much Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Arabic characters position ( SVG to PDF )
I use XSL-FO because I didn't know there was another way to do it. Here is a svg file : leplatre.free.fr/pub/arabic.svg Here is the XSL I made : http://leplatre.free.fr/pub/embed.xsl ...sorry my question will sound stupid but in which configuration file can I put this xml-handler tag ? Thank you Jeremias for your extremely fast reaction time ! Jeremias Maerki wrote: It could be a flaw in the PDFTextPainter. If you provide a sample SVG file I can verify that. You don't say if you're converting through the PDFTranscoder or via XSL-FO. If you go via XSL-FO you can set: xml-handler namespace=http://www.w3.org/2000/svg; stroke-texttrue/stroke-text /xml-handler ...as a direct child of the renderer element for the PDF renderer in the configuration file. The PDFTranscoder currently doesn't support disabling the PDFTextPainter. Note: The above is only tested on the latest FOP Trunk. I can't guarantee without verifying if 0.91beta behaves the same way. On 06.04.2006 15:27:58 Mathieu Leplatre wrote: Hi all, I use fop to convert SVG files to PDF. My SVG contains UTF8 strings in arabic (direction right to left). Encoding and such characters are supported but the words are misplaced (it looks like the origin (x,y) is placed at ( x + lenght, y ). Here is an example to figure it out : http://leplatre.free.fr/pub/examplearabic.png Is it a known bug ? I didn't see anything about this in 0.92 change log... Does someone know a trick for this ? Thank you very much Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mathieu Leplatre Météo France International GSM: +974 579 3608 Fax: +974 436 5086 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF Version support by FOP
On 06.04.2006 17:04:24 Archana Visveswaran, ASDC Chennai wrote: Is there any way to generate pdf versions 1.4 and above using FOP? FOP 0.91beta produces PDF 1.4 but does not support all features of PDF 1.4. At present I am using FOP0.20.5 and the output is a pdf 1.3 file. Is there any way by which this version can be modified? By hacking into the source code. :-) Why do you think you need PDF 1.4? PDF is largely forward- and backwards-compatible. There are only couple of features from PDF 1.4 we're supporting in FOP 0.91beta. Everything else is still PDF 1.3 level. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Arabic characters position ( SVG to PDF )
You can also convert SVG to PDF directly by using Apache Batik's Transcoder API. For PDF you can use the class org.apache.fop.svg.PDFTranscoder. See: http://xmlgraphics.apache.org/batik/rasterizerTutorial.html The example here is not the same as the one you reported the problem for. The SVG looks fine in Batik's Squiggle (the SVG browser) and in Acrobat Reader when generated with FOP's PDFTranscoder. The configuration file I'm talking about is described here: http://xmlgraphics.apache.org/fop/latest/configuration.html On 06.04.2006 15:59:48 Mathieu Leplatre wrote: I use XSL-FO because I didn't know there was another way to do it. Here is a svg file : leplatre.free.fr/pub/arabic.svg Here is the XSL I made : http://leplatre.free.fr/pub/embed.xsl ...sorry my question will sound stupid but in which configuration file can I put this xml-handler tag ? Thank you Jeremias for your extremely fast reaction time ! Jeremias Maerki wrote: It could be a flaw in the PDFTextPainter. If you provide a sample SVG file I can verify that. You don't say if you're converting through the PDFTranscoder or via XSL-FO. If you go via XSL-FO you can set: xml-handler namespace=http://www.w3.org/2000/svg; stroke-texttrue/stroke-text /xml-handler ...as a direct child of the renderer element for the PDF renderer in the configuration file. The PDFTranscoder currently doesn't support disabling the PDFTextPainter. Note: The above is only tested on the latest FOP Trunk. I can't guarantee without verifying if 0.91beta behaves the same way. On 06.04.2006 15:27:58 Mathieu Leplatre wrote: Hi all, I use fop to convert SVG files to PDF. My SVG contains UTF8 strings in arabic (direction right to left). Encoding and such characters are supported but the words are misplaced (it looks like the origin (x,y) is placed at ( x + lenght, y ). Here is an example to figure it out : http://leplatre.free.fr/pub/examplearabic.png Is it a known bug ? I didn't see anything about this in 0.92 change log... Does someone know a trick for this ? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Improve image quality SVG to PDF ( XSL-FO)
On 06.04.2006 16:24:09 Mathieu Leplatre wrote: I read the explanation about graphics resolution here : http://xmlgraphics.apache.org/fop/0.20.5/graphics.html#resolution You reference the 0.20.5 documentation. Earlier you talked about a 0.92 changelog but there's no version 0.92, yet. Which FOP version are you using exactly? but it doesn't explain how to get an higher resolution when the SVG is embedded in a fo:instream-foreign-object SVG images will then be defined as image xlink:href=... x=38 y=29 width=43 height=37 id=img/ with both height and width Images quality is extremely poor (my images are 1200dpi...which is fine enough). An example is here : http://leplatre.free.fr/pub/qcaa.png How could I get better results ? If you use the latest release (0.91beta or later) you can use the target-resolution option in the configuration file or in the FOUserAgent to improve the resolution of your images. It's described here: http://xmlgraphics.apache.org/fop/latest/configuration.html and here: http://xmlgraphics.apache.org/fop/latest/embedding.html#config-internal Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Arabic characters position ( SVG to PDF )
...actually I want vectorial content, not to rasterize my SVG files. I have the same problem with this example and XSL-FO. Ok I'll look where to put this configuration when using fop from a java code... Thank you Mathieu Jeremias Maerki wrote: You can also convert SVG to PDF directly by using Apache Batik's Transcoder API. For PDF you can use the class org.apache.fop.svg.PDFTranscoder. See: http://xmlgraphics.apache.org/batik/rasterizerTutorial.html The example here is not the same as the one you reported the problem for. The SVG looks fine in Batik's Squiggle (the SVG browser) and in Acrobat Reader when generated with FOP's PDFTranscoder. The configuration file I'm talking about is described here: http://xmlgraphics.apache.org/fop/latest/configuration.html On 06.04.2006 15:59:48 Mathieu Leplatre wrote: I use XSL-FO because I didn't know there was another way to do it. Here is a svg file : leplatre.free.fr/pub/arabic.svg Here is the XSL I made : http://leplatre.free.fr/pub/embed.xsl ...sorry my question will sound stupid but in which configuration file can I put this xml-handler tag ? Thank you Jeremias for your extremely fast reaction time ! Jeremias Maerki wrote: It could be a flaw in the PDFTextPainter. If you provide a sample SVG file I can verify that. You don't say if you're converting through the PDFTranscoder or via XSL-FO. If you go via XSL-FO you can set: xml-handler namespace=http://www.w3.org/2000/svg; stroke-texttrue/stroke-text /xml-handler ...as a direct child of the renderer element for the PDF renderer in the configuration file. The PDFTranscoder currently doesn't support disabling the PDFTextPainter. Note: The above is only tested on the latest FOP Trunk. I can't guarantee without verifying if 0.91beta behaves the same way. On 06.04.2006 15:27:58 Mathieu Leplatre wrote: Hi all, I use fop to convert SVG files to PDF. My SVG contains UTF8 strings in arabic (direction right to left). Encoding and such characters are supported but the words are misplaced (it looks like the origin (x,y) is placed at ( x + lenght, y ). Here is an example to figure it out : http://leplatre.free.fr/pub/examplearabic.png Is it a known bug ? I didn't see anything about this in 0.92 change log... Does someone know a trick for this ? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mathieu Leplatre Météo France International GSM: +974 579 3608 Fax: +974 436 5086 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rép. : Fonts not displayed properly in Linux
Hi Willy, Yup the solution that you suggested works!! Thank you very much for your help, I really appeciated it!! Best regards, -- View this message in context: http://www.nabble.com/Rp.-%3A-Fonts-not-displayed-properly-in-Linux-t1404546.html#a3792972 Sent from the FOP - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
external-graphic size in PDF
I'm currently using FOP .2 for a project. Testing the SVN .9. Just wondering if I'm the only one have problems sizing images. For example: fo:external-graphic height="300px" src=""/ Using FOP .2 the image comes out perfect, resized to a width of 300 pixels. The newer FOP, however, does not resize the image causing (in my case) the image to be bigger than the virtual PDF paper it is rendered on. Thanks in advance for any help. -Will
Re: external-graphic size in PDF
Hi, the new version must have the content-height attribute not the height... Dirk Will Peterson wrote: I'm currently using FOP .2 for a project. Testing the SVN .9. Just wondering if I'm the only one have problems sizing images. For example: fo:external-graphic height=300px src=myImage.jpg/ Using FOP .2 the image comes out perfect, resized to a width of 300 pixels. The newer FOP, however, does not resize the image causing (in my case) the image to be bigger than the virtual PDF paper it is rendered on. Thanks in advance for any help. -Will - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]