Re: wrap text in table-cell question
hi, in your cell, you can make: fo:table-cell fo:block hyphenate=true language=enB/fo:block /fo:table-cell i hope this help you. 2007/1/22, J.Pietschmann [EMAIL PROTECTED]: Gregan, Miroslav wrote: When I write text in table-cells, it may happen that the text is longer than the cell (ex. hyperlinks) Is there a way to have the text break on the next line if too long or the end cut so that the text isn't written on the next cell? This is a FAQ: http://xmlgraphics.apache.org/fop/faq.html#cells-overflow A more high tech approach is to use a customized hyphenation pattern file. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: awt performance 0.93 vs 0.92beta
I'll be happy to do some investigating, but I'm also a bit pressed for time at the moment(should be doing work :). It seems to me 1.5 is still installed on the system. does someone happen to know a quick way to change between different jre's, for example with path-variables (win xp)? I don't have time for lenghty download de-/reinstallation procedures. cheers pl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Font 'Arial,normal,400' not found
Hi all, I am using fop-0.92 together with cocoon-2.1.9. I want the document is printed in arial font. The metric font I generated. If I generate a pdf document at the command line, the document is shown in the right font. fop -c fop.xconf -xml source.xml -xsl template.xsl test.pdf But if I try to print it out with fop -c fop.xconf -xml source.xml -xsl template.xsl -print I get the warning WARNUNG: Font 'Arial,normal,400' not found. Substituting with default font. 23.01.2007 10:05:28 org.apache.fop.fonts.FontInfo notifyFontReplacement WARNUNG: Font 'Arial,normal,700' not found. Substituting with default font. and the the documentis printed in a wrong font. The fop.xconf looks like the following: renderer mime=application/pdf filterList !-- provides compression using zlib flate (default is on) -- valueflate/value !-- encodes binary data into printable ascii characters (default off) This provides about a 4:5 expansion of data size -- !-- valueascii-85/value -- !-- encodes binary data with hex representation (default off) This filter is not recommended as it doubles the data size -- !-- valueascii-hex/value -- /filterList fonts !-- embedded fonts -- !-- This information must exactly match the font specified in the fo file. Otherwise it will use a default font. For example, fo:inline font-family=Arial font-weight=bold font-style=normal Arial-normal-normal font /fo:inline for the font triplet specified by: font-triplet name=Arial style=normal weight=bold/ If you do not want to embed the font in the pdf document then do not include the embed-url attribute. The font will be needed where the document is viewed for it to be displayed properly. possible styles: normal | italic | oblique | backslant possible weights: normal | bold | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 (normal = 400, bold = 700) -- font metrics-url=file:home/myHome/arial.xml kerning=yes embed-url=file:home/myHome/arial.ttf font-triplet name=Arial style=normal weight=normal/ /font font metrics-url=file:home/myHome/arialbd.xml kerning=yes embed-url=file:home/myHome/arialbd.ttf font-triplet name=ArialB style=normal weight=bold/ /font !-- This option lets you specify additional options on an XML handler -- !--xml-handler namespace=http://www.w3.org/2000/svg; stroke-textfalse/stroke-text /xml-handler-- /renderer renderer mime=application/X-fop-print !-- This option lets you specify additional options on an XML handler -- !--xml-handler namespace=http://www.w3.org/2000/svg; stroke-textfalse/stroke-text /xml-handler-- fonts font metrics-url=file:home/myHome/arial.xml kerning=yes embed-url=file:home/myHome/arial.ttf font-triplet name=Arial style=normal weight=normal/ /font font metrics-url=file:home/myHome/arialbd.xml kerning=yes embed-url=file:home/myHome/arialbd.ttf font-triplet name=ArialB style=normal weight=bold/ /font /fonts /renderer ... The metric font file and the ttf font file are locating in the given directory. Is there anybody could give a hint why the document cannot be printed in the right font? Regards -- Dr. Andrea König (Entwicklung) G.punkt - medical services Halberstädter Str. 115A Eiskellerpassage 39112 Magdeburg Tel: +49 391 280380 Fax: +49 391 2803822 Inet: www.gmatic.de mail: [EMAIL PROTECTED] -- Dr. Andrea König (Entwicklung) G.punkt - medical services Halberstädter Str. 115A Eiskellerpassage 39112 Magdeburg Tel: +49 391 280380 Fax: +49 391 2803822 Inet: www.gmatic.de mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP Problem
The result is 'MICROSOFT' J.Pietschmann wrote: pwillsey wrote: Not sure if this makes a difference but I'm using FOP in a webobjects project and I get the exception when I deploy the project but not when I run it using eclipse on my development machine. I wouldn't rule out a defective XSLT processor. Could you get the output of xsl:value-of select=system-property('xsl:vendor')/ somehow included in a web page (or PDF or whatever) and post the result? J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/FOP-Problem-tf2950761.html#a8518980 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: FOP Problem
Sorry, it's a mistake. The result is 'Apache Software Foundation'. pasquien wrote: The result is 'MICROSOFT' J.Pietschmann wrote: pwillsey wrote: Not sure if this makes a difference but I'm using FOP in a webobjects project and I get the exception when I deploy the project but not when I run it using eclipse on my development machine. I wouldn't rule out a defective XSLT processor. Could you get the output of xsl:value-of select=system-property('xsl:vendor')/ somehow included in a web page (or PDF or whatever) and post the result? J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/FOP-Problem-tf2950761.html#a8519172 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: Font 'Arial,normal,400' not found
Andrea König wrote: Hi all, I am using fop-0.92 together with cocoon-2.1.9. I want the document is printed in arial font. The metric font I generated. If I generate a pdf document at the command line, the document is shown in the right font. fop -c fop.xconf -xml source.xml -xsl template.xsl test.pdf But if I try to print it out with fop -c fop.xconf -xml source.xml -xsl template.xsl -print I get the warning WARNUNG: Font 'Arial,normal,400' not found. Substituting with default font. 23.01.2007 10:05:28 org.apache.fop.fonts.FontInfo notifyFontReplacement WARNUNG: Font 'Arial,normal,700' not found. Substituting with default font. This is becoming the FAQ of the week ;) The Print option uses the AWT Renderer which is very different to the PDF Renderer and uses the Fonts registered with the JVM not the Fonts in the config file. A better alternative to printing on a printer is to generate Postscript and send the output to the printer using operating system commands such as LPR. This may seem a little annoying but you can easily modify fop.bat to send the Postscript to the Printer using LPR command. Output from Postscript is identical to output in PDF, where as output AWT Renderer uses different font metrics, so lines end up getting broke in different places and the output can look very different to PDF Renderer. snip/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: wrap text in table-cell question
Thank you for your solution, it works great and does exactly want I need with FOP 0.20.5, but it doesn't work with FOP 0.93 :-( this is what my xsl sheet looks like: fo:table-body fo:table-row background-color=white fo:table-cell border-width=0px padding-left=1px fo:block hyphenate=true font-size=16pt xsl:value-of select=/report/header/site-properties/@name/ /fo:block /fo:table-cell From: mahmoudi ould abdel vetah [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 23, 2007 10:34 AM To: fop-users@xmlgraphics.apache.org Subject: Re: wrap text in table-cell question hi, in your cell, you can make: fo:table-cell fo:block hyphenate=true language=enB/fo:block /fo:table-cell i hope this help you. 2007/1/22, J.Pietschmann [EMAIL PROTECTED]: Gregan, Miroslav wrote: When I write text in table-cells, it may happen that the text is longer than the cell (ex. hyperlinks) Is there a way to have the text break on the next line if too long or the end cut so that the text isn't written on the next cell? This is a FAQ: http://xmlgraphics.apache.org/fop/faq.html#cells-overflow A more high tech approach is to use a customized hyphenation pattern file. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wrap text in table-cell question
Gregan, Miroslav wrote: Thank you for your solution, it works great and does exactly want I need with FOP 0.20.5, but it doesn't work with FOP 0.93 :-( this is what my xsl sheet looks like: fo:table-body fo:table-row background-color=white fo:table-cell border-width=0px padding-left=1px fo:block hyphenate=true font-size=16pt xsl:value-of select=/report/header/site-properties/@name/ /fo:block /fo:table-cell What is your language property set to? Did you download fop-hyph.jar from OFFO? http://offo.sourceforge.net/hyphenation/index.html I believe FOP 0.20.5 was distributed with some hyphenation patterns but 0.9x has none and you have to download fop-hyph.jar. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Annotation Popups in PDF created from SVG title-attributes?
I know this question sounds quite strange, but would it be possible to resolve title- or desc-Attributes of an SVG element as annotation popup within the produced PDF that shows the appropriate value(s) in a tooltip-like manner on mouseover? One use-case for this feature would be displaying data-tips within thematic maps, charts or the like produced from SVG with Batik any ideas whether this would be hard to implement? Klaus -- Klaus Förster University of Innsbruck, Tirol Atlas http://tirolatlas.uibk.ac.at/ A-6020 Innsbruck, Austria - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: wrap text in table-cell question
I just downloaded the package fop-hyph.jar. And set a language (language=en) It's funny works good with English language, just that when I have technical data, it's doing nothing because he doesn't recognise any word^^ I will have to make my own file :-( And not forget to give a feedback as asked on the hyphenation page :-) Thank you very much for the help you provide me, it helps me a lot. Miro -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 23, 2007 2:45 PM To: fop-users@xmlgraphics.apache.org Subject: Re: wrap text in table-cell question Gregan, Miroslav wrote: Thank you for your solution, it works great and does exactly want I need with FOP 0.20.5, but it doesn't work with FOP 0.93 :-( this is what my xsl sheet looks like: fo:table-body fo:table-row background-color=white fo:table-cell border-width=0px padding-left=1px fo:block hyphenate=true font-size=16pt xsl:value-of select=/report/header/site-properties/@name/ /fo:block /fo:table-cell What is your language property set to? Did you download fop-hyph.jar from OFFO? http://offo.sourceforge.net/hyphenation/index.html I believe FOP 0.20.5 was distributed with some hyphenation patterns but 0.9x has none and you have to download fop-hyph.jar. 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: awt performance 0.93 vs 0.92beta
On Jan 23, 2007, at 10:34, paul wrote: I'll be happy to do some investigating, but I'm also a bit pressed for time at the moment(should be doing work :). It seems to me 1.5 is still installed on the system. does someone happen to know a quick way to change between different jre's, for example with path-variables (win xp)? I don't have time for lenghty download de-/reinstallation procedures. IIC, all that needs to be done is: a) make sure that the path to the 1.5 binary appears before that to 1.6. When you subsequently execute 'java', the 1.5 executable will be used... b) the environment variable JAVA_HOME should point to the 1.5 folder instead of 1.6 If it turns out that 0.93 is slower on any JVM, then if you can, please send us the FO, so we can investigate what might be causing this. Is there anything special about the FO-file? (i.e. lots of markers, images, tables, particular FO-constructs...) Thanks, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bad FOP configurations
On Jan 23, 2007, at 15:06, Adrian Cumiskey wrote: Hi Adrian, I am investigating some bugs with bad FOP configurations.. http://issues.apache.org/bugzilla/show_bug.cgi?id=40120 http://issues.apache.org/bugzilla/show_bug.cgi?id=40288 In your opinion, on initialization if the FopFactory and FOUserAgent discover that they have bad configurations (e.g. malformed (base) urls, urls that reference non-existent content), should they :- a) Catch exceptions (ConfigurationException) and log SEVERE errors and silently continue. I personally prefer this, but would also agree with an intermediate solution, where the user can flip a switch on the FopFactory or the FOUserAgent to have them propagate the exception if it occurs... (analogous to strict or relaxed validation). Just my 2 cents... Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bad FOP configurations
Hi Andreas, I like this idea and suggest adding a new configuration variable called 'strict-config' with a default value of false. What does everyone else think? regards, Adrian. Andreas L Delmelle wrote: On Jan 23, 2007, at 15:06, Adrian Cumiskey wrote: Hi Adrian, I am investigating some bugs with bad FOP configurations.. http://issues.apache.org/bugzilla/show_bug.cgi?id=40120 http://issues.apache.org/bugzilla/show_bug.cgi?id=40288 In your opinion, on initialization if the FopFactory and FOUserAgent discover that they have bad configurations (e.g. malformed (base) urls, urls that reference non-existent content), should they :- a) Catch exceptions (ConfigurationException) and log SEVERE errors and silently continue. I personally prefer this, but would also agree with an intermediate solution, where the user can flip a switch on the FopFactory or the FOUserAgent to have them propagate the exception if it occurs... (analogous to strict or relaxed validation). Just my 2 cents... Cheers, Andreas - 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: Bad FOP configurations
On Tue, Jan 23, 2007 at 05:30:18PM +, Adrian Cumiskey wrote: Hi Andreas, I like this idea and suggest adding a new configuration variable called 'strict-config' with a default value of false. What does everyone else think? Discovering an error in the configuration file is not immediately bad. The severity can only be judged when the error has consequences: - Not being able to find the font file, resulting in an unusable PDF file merits an exception. - Not being able to find a graphic, resulting in it not being included in the result file, merits a severe error or an exception, depending on the user's preferences. - A nonexistent metrics file URL for a font that is not used is not a problem. - A nonexistent metrics file URL for a font that is used is currently well handled with an error message. Simon regards, Adrian. Andreas L Delmelle wrote: On Jan 23, 2007, at 15:06, Adrian Cumiskey wrote: Hi Adrian, I am investigating some bugs with bad FOP configurations.. http://issues.apache.org/bugzilla/show_bug.cgi?id=40120 http://issues.apache.org/bugzilla/show_bug.cgi?id=40288 In your opinion, on initialization if the FopFactory and FOUserAgent discover that they have bad configurations (e.g. malformed (base) urls, urls that reference non-existent content), should they :- a) Catch exceptions (ConfigurationException) and log SEVERE errors and silently continue. I personally prefer this, but would also agree with an intermediate solution, where the user can flip a switch on the FopFactory or the FOUserAgent to have them propagate the exception if it occurs... (analogous to strict or relaxed validation). Just my 2 cents... Cheers, Andreas - 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] -- Simon Pepping home page: http://www.leverkruid.eu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Annotation Popups in PDF created from SVG title-attributes?
On 23.01.2007 14:56:18 Klaus Förster wrote: I know this question sounds quite strange, but would it be possible to resolve title- or desc-Attributes of an SVG element as annotation popup within the produced PDF that shows the appropriate value(s) in a tooltip-like manner on mouseover? One use-case for this feature would be displaying data-tips within thematic maps, charts or the like produced from SVG with Batik Looking at the PDF spec, I think that should be possible. In PDF Reference 1.4, see 8.4 Annotations and 8.5.2 Trigger Events. You can probably control the hidden attribute of an annotation using a mouse-over trigger event using a hide action. any ideas whether this would be hard to implement? The part in PDF is probably not all that hard. A few minor improvements to the PDF library should get you there. The harder part is to write a Batik extension that works with the PDF transcoder to generate the right elements in PDF. Since I've never written an extension in Batik, I don't know how much work that would be. Better ask on the Batik users list for ideas on that. Good luck! Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running FOP as a Java Stored Procedure on Oracle
After some work, we were able to get the 0.20.5 loaded on the database. We did it by building one big jar that contains all the apache fop jars, along with a wrapper function to produce a PDF, which was based on the example java code. It runs fine as a JAR on a win32 machine, invoking it directly. However, as an Oracle Java stored proc, when we invoke the procedure to generate the PDF, Oracle returns with the error: ORA-03113: end-of-file on communication channel We re-directed the console and file logging all to one log file... when we call it, we can see it filling the log file and making progress. But it then just craps out with the above error, and makes a 1KB PDF file that is no-good. Would love to hear from anyone that has loaded Apache FOP to run as an Oracle java stored proc, if they've encountered this error before. -Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] Sent: Monday, January 15, 2007 14:00 To: fop-users@xmlgraphics.apache.org Subject: Re: Running FOP as a Java Stored Procedure on Oracle Perhaps this would be a good skeleton for what you want to do: http://www.renderx.com/support/oracle.html Of course, the Java API between FOP and RenderX are different and will need changing, etc. But the basic principle should be the same. HTH, Glen Luciano Belotto wrote: I use Apache FOP to turn xml into PDF using an xsl. I wish to have this functionality run on the Oracle database as a Java stored procedure. What I want to ask is that if anyone has done this before, and can pass along some info or where I could find information on doing this. I've searched mailing list archives and the web, I couldn't find anything specific to loading FOP on Oracle, just on loading Java classes in general on the database. I'd like any tips on FOP in specific, if it has been done before. - 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]
Table header printing on next page - Seems to be room for last row
Hi all, In the following the table header appears to be printing on the next page when there is ample room for the last, albeit empty, table row. (example file lid1.pdf) Is this a problem? FWIW when I remove the last empty row (line 404 to 408) the entire "STATUS HISTORY" moves to the next page. (example lid2.pdf) Am I missing something? I'm using 0.93. and have coloured the regions to assist debugging. Cheers Tim Keen lid1.pdf Description: Binary data lid2.pdf Description: Binary data foout.fo Description: Binary data begin:vcard fn:Tim Keen n:Keen;Tim adr:;;727 Esplanade;Lota;Qld;4179;Australia email;internet:[EMAIL PROTECTED] tel;home:+61 7 3348 7305 tel;cell:+61 7 417 606 955 x-mozilla-html:TRUE version:2.1 end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font metrics, AWT vs. PDF and a possible workaround
Cheffe wrote: I know of a java pdf-viewer that is gpl www.jpedal.org I tested it some time ago. That viewer allows to load TT T1C T1 fonts that are shown in a awt-panel. Perhaps you find a solution in this source-code. Shame it's GPL... and also slower (3 seconds per page compared to around 2 seconds per page for FOP.) I've tried a number of other libraries for convering PDF to TIFF, and as yet nothing has come close to Ghostscript which can do about 6 pages a second (and unfortunately Ghostscript is GPL too.) PDFBox had great promise but it renders every word on the line at the start of the line, which is a real mess. :-D To make matters worse all these companies which sell the PDF to TIFF conversion software have prohibitive per-computer licencing fees (most of them are above 10% of the cost of our own product) which seem to indicate that they are assuming we will be using the library in a server-based application (which we're not. :-/) Daniel -- Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699 Web: http://nuix.com/ Fax: +61 2 9212 6902 This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this message or attachment is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: awt performance 0.93 vs 0.92beta
Andreas L Delmelle wrote: If it turns out that 0.93 is slower on any JVM, then if you can, please send us the FO, so we can investigate what might be causing this. Is there anything special about the FO-file? (i.e. lots of markers, images, tables, particular FO-constructs...) FWIW we've noticed a similar issue with speed here, although in our case we were comparing the speed of 0.20.5 to 0.93 so we hadn't narrowed it down to being the very latest version. The only thing peculiar about our own FO files is that they are relatively heavy on table usage. and often have large images (1024px) which are scaled down to a small size (~120px) for thumbnails. Daniel -- Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699 Web: http://nuix.com/ Fax: +61 2 9212 6902 This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this message or attachment is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]