RE: ZapfDingbats in svg (fo:instream-foreign-object)
Hi, Today, I get the same as before ('#' in SVG). I have to do some further tests either to understand why, or to provide more info to the list. Unfortunately, I've not enough time for the moment. However, I wonder if there is something wrong, missing, or buggy in my conf (AMD64 + win XP32 SP2 + JDK 1.6.0-03, command-line) If someone has an idea? I'll be back ASAP. Pascal -Message d'origine- De : Vincent Hennebert [mailto:[EMAIL PROTECTED] Envoyé : jeudi 17 avril 2008 18:09 À : fop-users@xmlgraphics.apache.org Objet : Re: ZapfDingbats in svg (fo:instream-foreign-object) Hi Pascal, Pascal Sancho wrote: Jeremias, I've tried first to replace ZapfDingbats with DejaVu: Same result as ZapfDingbats ('#' in place of cissors). It works for me. You have to be careful about the family name you put in your FO file. In my case DejaVuSans did the job and I see it as subset-embedded in the Properties dialog box. The second solution (stroke-text=true) gives expected result. Thx, Pascal Vincent snip/ -- Vincent Hennebert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .FOP (with HTML embedded) to PDF,RTF,DOC,ODT ....etc
On Apr 21, 2008, at 11:45, javijava wrote: Hi I'm interested in use this usefull tool , i need to translate HTML from my database to output files ,like PDF ... I want to know if i can put .FO files in the database with the typical head tags of .fo files and... the body with HTML embedded tags directly. is this possible? Not directly. If your source document still contains XHTML elements, those can be transformed to FO by means of XSLT. For example: If you have: btext in bold/b This should be transformed into something like fo:wrapper font-weight=boldtext in bold/fo:wrapper via an XSL template like: xsl:template match=b fo:wrapper font-weight=bold xsl:apply-templates / /fo:wrapper /xsl:template before FOP can do anything with it. You can still store it in your database as HTML and transform the tag/ element upon retrieval, but it's important to keep in mind that FOP does not deal with HTML directly as input. There are some stylesheets available to convert generic XHTML to XSL- FO. Just google around for 'HTML FO' and you'll get the idea. HTH! Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
.FOP (with HTML embedded) to PDF,RTF,DOC,ODT ....etc
Hi to all!! I'm interested in use this usefull tool , i need to translate HTML from my database to output files ,like PDF ... I want to know if i can put .FO files in the database with the typical head tags of .fo files and... the body with HTML embedded tags directly. is this possible? how can i do this? THanks a lot 4 all!! Xavi :jumping: -- View this message in context: http://www.nabble.com/.FOP--%28with-HTML-embedded%29--to--PDF%2CRTF%2CDOC%2CODT-etc-tp16806470p16806470.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache errors
No, unfortunately not. I see it on the radar, yet. On 21.04.2008 13:36:24 Cristian Ferrero wrote: Jeremias, does 0.95 version work with XSL 1.1 features like flow-map support and multiple fo:region-body elements.? tks - Original Message - From: Jeremias Maerki [EMAIL PROTECTED] To: fop-users@xmlgraphics.apache.org Sent: Monday, February 11, 2008 10:20 AM Subject: Re: Apache errors What you want to do is currently not possible with FOP. FOP would need to implement XSL 1.1 features like flow-map support and multiple fo:region-body elements. On 11.02.2008 14:01:25 Cristian Ferrero wrote: Chris, Jeremias thank you bouth...but the only way to positioning a table that expands in several pages is whith this kind of tips ? i mean inserting a column after or adjusting page margins or something like that ? i suppoused there was a qualifiers for tables that could position them keeping all the properties as if we don't specify the position...my problem is that bouth solutions could give me problems because i have to positionate two tables (one beside another)... page 1 : table 1 table 2 xxx xxx xxx xxx page 2 : table 1 table 2 xxx xxx thank you bouth i am very appreciatte of your help..sorry because my poor knowledge..im trying to learn - Original Message - From: Chris Bowditch [EMAIL PROTECTED] To: fop-users@xmlgraphics.apache.org Sent: Monday, February 11, 2008 8:55 AM Subject: Re: Apache errors Cristian Ferrero wrote: Jeremias i did what you wrote, also i tried inserting a block with span=all, but the problem is that the table don't show all the information, it doesn't continue in other page, if i dont write position=absolute it works good (the table continues in another page), but the table appears in the left side of the page automatically, not in the possition i want... Absolutely positioned block containers are supposed to be limited to a single page. They do not flow like regular blocks. You could try using relative positioning. However, I think the block-container would start at the top left of the second page it flows onto. If you want a flowing table positioned at (x,y) on each page then you might need an alternative approach. Something like a fixed height header row (to achieve y) and an extra blank column at the left of the table. fo:block-container position=absolute top=15cm left=10cm fo:block span=all This only has meaning for regions with a column-count 1 and I don't believe it will help you here. snip/ Chris Jeremias Maerki Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache errors
Jeremias, does 0.95 version work with XSL 1.1 features like flow-map support and multiple fo:region-body elements.? tks - Original Message - From: Jeremias Maerki [EMAIL PROTECTED] To: fop-users@xmlgraphics.apache.org Sent: Monday, February 11, 2008 10:20 AM Subject: Re: Apache errors What you want to do is currently not possible with FOP. FOP would need to implement XSL 1.1 features like flow-map support and multiple fo:region-body elements. On 11.02.2008 14:01:25 Cristian Ferrero wrote: Chris, Jeremias thank you bouth...but the only way to positioning a table that expands in several pages is whith this kind of tips ? i mean inserting a column after or adjusting page margins or something like that ? i suppoused there was a qualifiers for tables that could position them keeping all the properties as if we don't specify the position...my problem is that bouth solutions could give me problems because i have to positionate two tables (one beside another)... page 1 : table 1 table 2 xxx xxx xxx xxx page 2 : table 1 table 2 xxx xxx thank you bouth i am very appreciatte of your help..sorry because my poor knowledge..im trying to learn - Original Message - From: Chris Bowditch [EMAIL PROTECTED] To: fop-users@xmlgraphics.apache.org Sent: Monday, February 11, 2008 8:55 AM Subject: Re: Apache errors Cristian Ferrero wrote: Jeremias i did what you wrote, also i tried inserting a block with span=all, but the problem is that the table don't show all the information, it doesn't continue in other page, if i dont write position=absolute it works good (the table continues in another page), but the table appears in the left side of the page automatically, not in the possition i want... Absolutely positioned block containers are supposed to be limited to a single page. They do not flow like regular blocks. You could try using relative positioning. However, I think the block-container would start at the top left of the second page it flows onto. If you want a flowing table positioned at (x,y) on each page then you might need an alternative approach. Something like a fixed height header row (to achieve y) and an extra blank column at the left of the table. fo:block-container position=absolute top=15cm left=10cm fo:block span=all This only has meaning for regions with a column-count 1 and I don't believe it will help you here. snip/ Chris 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]
Re: How to underline a graphic
Perhaps border properties could help you achieve what you want? On 21 Apr 2008, at 15:32, [EMAIL PROTECTED] wrote: Hello, I insert a little graphic in an underlined text but it is not underlined. fo:block text-decoration=underline Text is underlined fo:external-graphic src=logo.png content-height=1.5em/ but not graphic. /fo:block I think it is normal because I find nothing in the W3C specification to underline fo:external-graphic. (fo:inline / fo:page-number / fo:page-number-citation / fo:character can be underlined but fo:leader / fo:external-graphic can not) But can somebody give me a way to have the same rendering as an underlined graphic ? Thanks, Patrice - 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]
How to underline a graphic
Hello, I insert a little graphic in an underlined text but it is not underlined. fo:block text-decoration=underline Text is underlined fo:external-graphic src=logo.png content-height=1.5em/ but not graphic. /fo:block I think it is normal because I find nothing in the W3C specification to underline fo:external-graphic. (fo:inline / fo:page-number / fo:page-number-citation / fo:character can be underlined but fo:leader / fo:external-graphic can not) But can somebody give me a way to have the same rendering as an underlined graphic ? Thanks, Patrice - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: floating external graphics
Hi Benjamin, To my knowledge fo:float (side float) is the only way to get the rendering you need. Unfortunately, as you noticed it is not implemented yet, and this would be all but a trivial job. There is a small chance however that the situation will evolve on this topic, in a more or less far future. Sorry, Vincent Benjamin Plaquevent wrote: Hi I'm looking for a way to get the following PDF render using XSL-FO / FOP: - Text text text text text text text text text | | text text text text text text text text text | Image | text text text text text text text text text | | text text text text text text text text text - text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text ... Google doesn't want to help me so I ask directly here... I noticed that fo:float is not implemented yet but I wonder if there isn't an alternative to get such a render (with block-container or anything else). If it's not possible with native FOP features, is there an extension, a dev branch or something else matching my needs please? Friendly, -- Benjamin Plaquevent Chef de projet technique Smile - Motoristes Internet http://www.smile.fr Mailto : [EMAIL PROTECTED] -- Vincent HennebertAnyware Technologies http://people.apache.org/~vhennebert http://www.anyware-tech.com Apache FOP Committer FOP Development/Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache FOP: Layer in PDF
Hi there Is there the possibility to generate different layers in the pdf with ApacheFOP? I would like to place e.g. fo:block-containers or fo:external-graphics to different layers in pdf. If there is the possibility, could you give an example to me how to define the layers and how to place a block-container onto a special layer? Thanks, Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache FOP: XSL Parameters
Hi there again... To define the configuration for rendering I use: - ... fopFactory.setUserConfig(new File(fop.xconf)); Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out); TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(new StreamSource(Test.xsl)); ... transformer.transform(src, res); - Is there the possibiliy to define xsl-parameters in fop.xconf, which are passed to my Test.xsl? Thanks kind regards, Oliver Hirschi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Relative URLs
Hi, I have a XHTML document with relative URLs. I use FOP to transform it into PDF (first FO then PDF). I modified fop.xconf base parameter to http://www.my_site.comhttp://www.my_site.com/. But in PDF, links and image sources still are file:// formatted... Could you help me figuring what I'm doing wrong please? Example: xhtml = a href/content/article.htmlmy link/a fo = fo:basic-link external-destination=url('/content/article.html')my link/fo:basic-link pdf = link to file:///content/article.html In my fop.xconf: basehttp://www.my_site.com/base And I run FOP from command line with: fop -c fop.xconf -xml file.xhtml -xsl file.xsl file.pdf Friendly, Benjamin Plaquevent Chef de projet technique Smile - Motoristes Internet http://www.smile.fr Tél : 02 51 72 29 69 Fax : 02 51 72 04 22 Mailto : [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
Re: Apache FOP: XSL Parameters
On Apr 21, 2008, at 17:31, Oliver Hirschi wrote: Hi To define the configuration for rendering I use: - ... fopFactory.setUserConfig(new File(fop.xconf)); Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out); TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(new StreamSource (Test.xsl)); ... transformer.transform(src, res); - Is there the possibiliy to define xsl-parameters in fop.xconf, which are passed to my Test.xsl? XSLT parameters are not yet supported via the config-file. Might be an idea for a minor contribution... They are supported on the command-line, and for embedded use, one would obviously do this via the standard JAXP idiom: transformer.setParameter(paramName, paramValue); HTH! Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to underline a graphic
I would try setting the bottom border on the fo:block, thus: fo:block border-bottom=1pt solid blackText and graphic here/fo:block Jay Bryant - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: fop-users@xmlgraphics.apache.org Sent: Monday, April 21, 2008 8:32 AM Subject: How to underline a graphic Hello, I insert a little graphic in an underlined text but it is not underlined. fo:block text-decoration=underline Text is underlined fo:external-graphic src=logo.png content-height=1.5em/ but not graphic. /fo:block I think it is normal because I find nothing in the W3C specification to underline fo:external-graphic. (fo:inline / fo:page-number / fo:page-number-citation / fo:character can be underlined but fo:leader / fo:external-graphic can not) But can somebody give me a way to have the same rendering as an underlined graphic ? Thanks, Patrice - 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]