Antwort: RE: Antwort: Re: Antwort: Re: Antwort: Which TIFF format is used in batik? How can I get TIFF Type 1?
Afraid not :( A higher scale factor creates a bigger BufferedImage.The end result is a larger 72 dpi tiff. you are correct. (since the viewer app we need to integrate with treats those larger 72 dpi tiffs like smaller higher resolved ones, I did not notice - and it still solves my problems ;-) Though, this can be the first step to a higher resolved TIFF. I read some docs about Graphics2D. The BufferedImage is resolution-independant. It is simply a rectagle of pixels, with no information on what space it should be displayed on. (as are some of the file-formats like GIF, BMP and others). That means the way to higher resolved TIFFs could be: 1. calculate the scale factor, so that the renderer creates the correct size in pixels (72 dpi = sf 100). 2. When writing out the TIFF, somehow set the resolution in the TIFF-file Metadata to the higher dpi value. (need to look into this) - That should result in a correct higher-resolved TIFF. Francis, Ronald [EMAIL PROTECTED] on 18.12.2002 23:32:40 Bitte antworten an [EMAIL PROTECTED] An: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Kopie: Thema: RE: Antwort: Re: Antwort: Re: Antwort: Which TIFF format is used in batik? How can I get TIFF Type 1? Afraid not :( A higher scale factor creates a bigger BufferedImage.The end result is a larger 72 dpi tiff. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 11:50 AM To: [EMAIL PROTECTED] Subject: Antwort: Re: Antwort: Re: Antwort: Which TIFF format is used in batik? How can I get TIFF Type 1? Is there any plan to add this feature in near future? Sure. As I'm now FOP committer it should be one more FOP output format (we thought about more bitmap formats, supported by JAI/jimi, but I believe the only tiff makes sense as it supports multi-page images). That's is definitely good news. I think there is a need for other formats too. I see at my customer here that they might want to get rid of multipage TIFF in favor of one JPG-file per page. Producing one file per page might be the way to go for the non-TIFF formats (even for TIFFs that could be an option, since there are applications out there that only support single page TIFFs). just my $0.02 on the file format discussion. Reto ___ CSS Versicherung Reto Blunschi EXTERNE Rösslimattstrasse 40 CH-6002 Luzern Telefon ++41 (0)41 369 1236 Telefax ++41 (0)41 369 1212 [EMAIL PROTECTED] www.css.ch Oleg Tkachenko [EMAIL PROTECTED] on 18.12.2002 13:52:24 Bitte antworten an [EMAIL PROTECTED] An: [EMAIL PROTECTED] Kopie: Thema: Re: Antwort: Re: Antwort: Which TIFF format is used in batik? How can I get TIFF Type 1? [EMAIL PROTECTED] wrote: Is the assumption correct, that this restriction is in the AWTRenderer of FOP? - I'm not sure actually. TIFFRenderer creates temporary BufferedImage when encoding with fax compression, is that your case, I mean GROPU3 and GROUP4 compression schemas? For the rest compressions it uses directly BufferedImage created by AWTRenderer. Is there any plan to add this feature in near future? Sure. As I'm now FOP committer it should be one more FOP output format (we thought about more bitmap formats, supported by JAI/jimi, but I believe the only tiff makes sense as it supports multi-page images). I was thinking of adding this, though I have not looked into it yet. Is it feasible at all with the current FOP design? Any help is greatly appreciated, feel free to modify sources. But not with the current FOP design, new one will make tiff generation much effective. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - 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] - 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]
AW: hyphen umlaut
I've tried the 0.20.5rc version now. The hyphenation is working fine with the german umlaut. Many thanks! -Ursprüngliche Nachricht- Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Dezember 2002 14:09 An: [EMAIL PROTECTED] Betreff: Re: hyphen umlaut Kurt Spescha wrote: have a problem with hyphenation on german umlaut on 0.20.4. If the last syllable in the line is ending with ö or ä or ü (o dieresis, a dieresis, u dieresis) and should therefore be hyphenated, is goes totally wrong. Your example looks ok to me in 0.20.5rc, verify it, please. Hyphenation stuff was improved to some degree. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - 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: Error while loading a local image
Hi, I found the error. In this case the images were not handled by tomcat directly, but by a servlet. The servlet did not set the content type. So the content type being null results in a NullPointerException in fop. Is fop not robust enough? Ciot, Thierry schrieb: Or can somebody say "I have had no problems with that. I have no problem including jpeg or gif files from a Tomcat server (Both Tomcat 3.x and 4.x). And my Tomcat server is running on a different port (48080). I use something like this because my images are dynamically generated and the url is extracted from the input XML stream: fo:block fo:external-graphic xsl:attribute name="src"xsl:value-of select="."//xsl:attribute /fo:external-graphic /fo:block Thierry. -Original Message- From: Marcus Kalthoff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 4:56 AM To: [EMAIL PROTECTED] Subject: Re: Error while loading a local image Hi, just tried with fop-0.20.5rc, but same result: no picture is shown which has a "http://localhost/..." url. Does somebody have the same problem? Or can somebody say "I have had no problems with that. I can include images with http://localhost/ !!". Regards Marcus Kalthoff Marcus Kalthoff schrieb: Oleg Tkachenko schrieb: Marcus Kalthoff wrote: I have an fo:external-graphic in my .fo file. The transformation is running in a jsp-File on tomcat. When I use a local src= "" "http://localhost/" or "http://127.0.0.1/. no picture is shown and I get an error message in the log file: Error in XObject : Error while loading image http://localhost/contextpath/myfile.gif : class java.lang.NullPointerException - null Sounds too bizarre, give us more information (full but FOP-only exception trace, FOP's debug messages). Ok, now I use fop standalone (fop.bat). Again, in my .fo file, I use an image on my local tomcat application server. If I type in the url in my browser - I see the image. Here is the complete output with -d option. Again, if use the "file:c:\myimage.gif" syntax or if I place the picture somewhere in the web and use "http://somewhereinteweb/myimage.gif" everything is fine. E:\public\fop-0.20.4rcjava -cp build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib \xml-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\j imi-1.0.jar org.apache.fop.apps.Fop -d C:\placeoffo\test.fo test2.pdf [DEBUG] Input mode: [DEBUG] FO [DEBUG] fo input file: C:\placeoffo\test.fo [DEBUG] Output mode: [DEBUG] pdf [DEBUG] output file: test2.pdf [DEBUG] OPTIONS [DEBUG] no user configuration file is used [default] [DEBUG] debug mode on [DEBUG] dump configuration [DEBUG] quiet mode on [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [DEBUG] base directory: file:/C:/placeoffo/ [INFO] FOP 0.20.4rc [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [DEBUG] setting up fonts [INFO] [1] [ERROR] Error in XObject : Error while loading image http://localhost/contextpath/images/myimage.gif : class java.lang.NullPointerException - null [DEBUG] Last page-sequence produced 1 pages. [INFO] Parsing of document complete, stopping renderer [DEBUG] Initial heap size: 408Kb [DEBUG] Current heap size: 1624Kb [DEBUG] Total memory used: 1215Kb [DEBUG] Memory use is indicative; no GC was performed [DEBUG] These figures should not be used comparatively [DEBUG] Total time used: 3055ms [DEBUG] Pages rendererd: 1 [DEBUG] Avg render time: 3055ms/page
Re: Error while loading a local image
I found the error. The servlet did not set the content type. Is fop not robust enough? Robust enough for who? Shit in - shit out... Marcus Kalthoff wrote: Hi, I found the error. In this case the images were not handled by tomcat directly, but by a servlet. The servlet did not set the content type. So the content type being null results in a NullPointerException in fop. Is fop not robust enough? Ciot, Thierry schrieb: Or can somebody say I have had no problems with that. I have no problem including jpeg or gif files from a Tomcat server (Both Tomcat 3.x and 4.x). And my Tomcat server is running on a different port (48080). I use something like this because my images are dynamically generated and the url is extracted from the input XML stream: fo:block fo:external-graphic xsl:attribute name=srcxsl:value-of select=.//xsl:attribute /fo:external-graphic /fo:block Thierry. -Original Message- From: Marcus Kalthoff [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 4:56 AM To: [EMAIL PROTECTED] Subject: Re: Error while loading a local image Hi, just tried with fop-0.20.5rc, but same result: no picture is shown which has a http://localhost/...; url. Does somebody have the same problem? Or can somebody say I have had no problems with that. I can include images with http://localhost/ !!. Regards Marcus Kalthoff Marcus Kalthoff schrieb: Oleg Tkachenko schrieb: Marcus Kalthoff wrote: I have an fo:external-graphic in my .fo file. The transformation is running in a jsp-File on tomcat. When I use a local src= like http://localhost/; or http://127.0.0.1/. no picture is shown and I get an error message in the log file: Error in XObject : Error while loading image http://localhost/contextpath/myfile.gif : class java.lang.NullPointerException - null Sounds too bizarre, give us more information (full but FOP-only exception trace, FOP's debug messages). Ok, now I use fop standalone (fop.bat). Again, in my .fo file, I use an image on my local tomcat application server. If I type in the url in my browser - I see the image. Here is the complete output with -d option. Again, if use the file:c:\myimage.gif syntax or if I place the picture somewhere in the web and use http://somewhereinteweb/myimage.gif; everything is fine. E:\public\fop-0.20.4rcjava -cp build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib \xml-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\j imi-1.0.jar org.apache.fop.apps.Fop -d C:\placeoffo\test.fo test2.pdf [DEBUG] Input mode: [DEBUG] FO [DEBUG] fo input file: C:\placeoffo\test.fo [DEBUG] Output mode: [DEBUG] pdf [DEBUG] output file: test2.pdf [DEBUG] OPTIONS [DEBUG] no user configuration file is used [default] [DEBUG] debug mode on [DEBUG] dump configuration [DEBUG] quiet mode on [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [DEBUG] base directory: file:/C:/placeoffo/ [INFO] FOP 0.20.4rc [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [DEBUG] setting up fonts [INFO] [1] [ERROR] Error in XObject : Error while loading image http://localhost/contextpath/images/myimage.gif : class java.lang.NullPointerException - null [DEBUG] Last page-sequence produced 1 pages. [INFO] Parsing of document complete, stopping renderer [DEBUG] Initial heap size: 408Kb [DEBUG] Current heap size: 1624Kb [DEBUG] Total memory used: 1215Kb [DEBUG] Memory use is indicative; no GC was performed [DEBUG] These figures should not be used comparatively [DEBUG] Total time used: 3055ms [DEBUG] Pages rendererd: 1 [DEBUG] Avg render time: 3055ms/page -- Johan Åbrandt Technical Project Manager (Tekninen projektipäällikkö) Tel. +358 9 6817 3342 Mobile. +358 40 848 8068 [EMAIL PROTECTED] Profit Software Oy Meritullinkatu 11 C 00170 Helsinki, Finland __ This message and its attachments have been found clean from known viruses with three different antivirus programs. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Antwort: Re: Antwort: Re: Antwort: Which TIFF format is used in batik? How can I get TIFF Type 1?
[EMAIL PROTECTED] wrote: I think there is a need for other formats too. I see at my customer here that they might want to get rid of multipage TIFF in favor of one JPG-file per page. Producing one file per page might be the way to go for the non-TIFF formats (even for TIFFs that could be an option, since there are applications out there that only support single page TIFFs). Makes sense. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
attributes: keep-with-next, widows, table-layout
Hallo, when will be supported the following attributes: fo:block keep-with-next.within-column=always fo:block widows= fo:table table-layout= auto Merry Xmas Frens Peters - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error while loading a local image
Marcus Kalthoff wrote: I found the error. In this case the images were not handled by tomcat directly, but by a servlet. The servlet did not set the content type. So the content type being null results in a NullPointerException in fop. Is fop not robust enough? FOP is robust, but error handling/reporting - not, it's well-known problem, which is addressed by the redesign. In all cases of problems with images I'd suggest to open image in mozilla and check out content-type, length etc in View/Page Info window. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: attributes: keep-with-next, widows, table-layout
[EMAIL PROTECTED] wrote: when will be supported the following attributes: When FOP1.0 is released. Don't ask when it'll happen. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: attributes: keep-with-next, widows, table-layout
On 19 Dec 2002 at 13:23, Oleg Tkachenko wrote: [EMAIL PROTECTED] wrote: when will be supported the following attributes: When FOP1.0 is released. Don't ask when it'll happen. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I ask it nevertheless: 3 weeks, 3 month, 3 quarters, 3 years Approximately !! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Break page on a specific value of a XML data.
Hi, I would like to do a page break on a specific value of a XML element. How can I specify that I want a page break when a XML element has got a specify value ? In my example, for each BET3F_TYPE_LIGNE='CM', I want a page break. My XML is : ?xml version = '1.0' encoding = 'ISO-8859-1'? ROWSET ROW num=1 BET3F_ID1/BET3F_ID BET3F_TYPE_LIGNEE1/BET3F_TYPE_LIGNE BET3F_LIB_1INVENTAIRE DU MATERIEL FRET/BET3F_LIB_1 BET3F_LIB_2EDITION DU : 13/12/2002/BET3F_LIB_2 /ROW ROW num=2 BET3F_ID2/BET3F_ID BET3F_TYPE_LIGNEE2/BET3F_TYPE_LIGNE BET3F_LIB_1PARC A DISPOSITION DU FRET/BET3F_LIB_1 BET3F_LIB_2ENTREPRISE FERROVIAIRE : 87/BET3F_LIB_2 /ROW ROW num=3 BET3F_ID3/BET3F_ID BET3F_TYPE_LIGNECM/BET3F_TYPE_LIGNE BET3F_LIB_1COUVERTS DE TYPE COURANT A ESSIEUX/BET3F_LIB_1 /ROW ROW num=4 BET3F_ID4/BET3F_ID BET3F_TYPE_LIGNETC/BET3F_TYPE_LIGNE BET3F_LIB_1EX VEHICULE GV/BET3F_LIB_1 /ROW ROW num=5 BET3F_ID5/BET3F_ID BET3F_TYPE_LIGNEL1/BET3F_TYPE_LIGNE BET3F_LIB_1120 0 000/BET3F_LIB_1 BET3F_LIB_2120 4 144/BET3F_LIB_2 BET3F_LIB_3GS/BET3F_LIB_3 BET3F_LIB_4G401/BET3F_LIB_4 BET3F_LIB_5 /BET3F_LIB_5 BET3F_LIB_6 /BET3F_LIB_6 BET3F_LIB_7DP/BET3F_LIB_7 BET3F_CPT_FW0/BET3F_CPT_FW BET3F_CPT_AUT0/BET3F_CPT_AUT BET3F_CPT_GEF0/BET3F_CPT_GEF BET3F_CPT_DP1040/BET3F_CPT_DP104 BET3F_CPT_HORS0/BET3F_CPT_HORS BET3F_CPT_Z0/BET3F_CPT_Z BET3F_CPT_ZG0/BET3F_CPT_ZG BET3F_CPT_ZR0/BET3F_CPT_ZR BET3F_CPT_ZF1/BET3F_CPT_ZF BET3F_CPT_ISF0/BET3F_CPT_ISF /ROW ROW num=63 BET3F_ID63/BET3F_ID BET3F_TYPE_LIGNECM/BET3F_TYPE_LIGNE BET3F_LIB_1COUVERTS DE TYPE COURANT A BOGIES/BET3F_LIB_1 /ROW ROW num=64 BET3F_ID64/BET3F_ID BET3F_TYPE_LIGNETC/BET3F_TYPE_LIGNE BET3F_LIB_1EX DR/BET3F_LIB_1 /ROW ROW num=65 BET3F_ID65/BET3F_ID BET3F_TYPE_LIGNEL1/BET3F_TYPE_LIGNE BET3F_LIB_1186 1 360/BET3F_LIB_1 BET3F_LIB_2186 1 399/BET3F_LIB_2 BET3F_LIB_3GAKKSS/BET3F_LIB_3 BET3F_LIB_4G146/BET3F_LIB_4 BET3F_LIB_5 /BET3F_LIB_5 BET3F_LIB_6 /BET3F_LIB_6 BET3F_LIB_7MT/BET3F_LIB_7 BET3F_CPT_FW0/BET3F_CPT_FW BET3F_CPT_AUT0/BET3F_CPT_AUT BET3F_CPT_GEF0/BET3F_CPT_GEF BET3F_CPT_DP1040/BET3F_CPT_DP104 BET3F_CPT_HORS0/BET3F_CPT_HORS BET3F_CPT_Z0/BET3F_CPT_Z BET3F_CPT_ZG0/BET3F_CPT_ZG BET3F_CPT_ZR0/BET3F_CPT_ZR BET3F_CPT_ZF0/BET3F_CPT_ZF BET3F_CPT_ISF0/BET3F_CPT_ISF /ROW . /ROWSET Thanks for your help Jean-Philippe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fop 0.20.5rc and external-graphic SVG problem
I am trying to integrate an SVG file with embedded text and when i try to use it in FOP SVG and XML-fo included in this mail. I am working on W2K SP1, JDK 1.3 With FOP 0.20.5rc the result is : [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5rc [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] [1] [ERROR] Could not load external SVG: null [ERROR] Error while creating area : No ImageReader for this type of image (file:/Temp/testfont001.svg) [INFO] Parsing of document complete, stopping renderer If i use FOP 0.20.4 with same files the result is 5000 lines of java error. XSL-FO ?xml version=1.0 encoding=utf-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- defines page layout -- fo:layout-master-set !-- layout for the first page -- fo:simple-page-master master-name=only page-height=297mm page-width=210mm margin-top=0mm margin-bottom=0mm margin-left=0mm margin-right=0mm fo:region-body margin-top=10mm margin-bottom=10mm column-count=1 column-gap=0.25in/ fo:region-before extent=10mm/ fo:region-after extent=10mm/ /fo:simple-page-master /fo:layout-master-set !-- actual layout -- fo:page-sequence master-reference=only fo:static-content flow-name=xsl-region-before fo:blockEric Prevost Demo/fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:blockPage fo:page-number//fo:page-number-citation ref-id=Terminator//fo:block /fo:static-content fo:flow flow-name=xsl-region-body !-- Block 0 -- fo:block fo:external-graphic src='file:/Temp/testfont001.svg'/ /fo:block fo:block id=Terminator/fo:block /fo:flow /fo:page-sequence /fo:root SVG file : ?xml version=1.0 standalone=no? !DOCTYPE svg PUBLIC -//W3C//DTD SVG 20001102//EN http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd; svg width=210.0mm height=297.0mm viewBox=0 0 2381 3368 preserveAspectRatio=xMinYMin kerning=0 xml:space=preserve xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:svgmaker=http://www.svgmaker.com/svgns; svgmaker:init width=210.0mm height=297.0mm viewBox=0 0 2381 3368 view=one2one crop=none cropWidth=193.0mm cropHeight=292.4mm cropBox=0 1 2188 3315/ titleMicrosoft Word - AD-1600.doc/title desc Generated by SVGmaker Version 1.10.2A31.32 Evaluation Version DEC-16-2002, 08:06 /desc style type=text/css![CDATA[ path {fill-rule:nonzero; stroke-linecap:round; stroke-linejoin:round} rect {stroke-linejoin:miter} text.t1 {font-family:'Svg Arial';font-size:40;fill:#00} text.t2 {font-family:'Svg Arial';font-size:24;fill:#00} text.t3 {font-family:'Svg Times New Roman Bold';font-size:72;fill: #00;font-weight:700} text.t4 {font-family:'Svg Times New Roman Bold';font-size:46;fill: #00;font-weight:700} text.t5 {font-family:'Svg Times New Roman';font-size:44;fill:#00} text.t6 {font-family:'Svg Times New Roman Bold';font-size:56;fill: #00;font-weight:700} text.t7 {font-family:'Svg Times New Roman';font-size:48;fill:#00} text.t8 {font-family:'Svg Times New Roman Bold';font-size:48;fill: #00;font-weight:700} text.t9 {font-family:'Svg Times New Roman Bold';font-size:44;fill: #00;font-weight:700} text.t10 {font-family:'Svg Times New Roman';font-size:40;fill:#00} text.t11 {font-family:'Svg Times New Roman Italic';font-size:32;fill: #00;font-style:italic} ]]/style defs font horiz-adv-x=904 font-face font-family=Svg Arial units-per-em=2048 panose-1=2 11 6 4 2 2 2 2 2 4 ascent=1854 descent=434 alphabetic=0/ missing-glyph horiz-adv-x=1536 d=M 256,0 l 0,1280 1024,0 0,-1280 -1024,0 z m 32,32 l 960,0 0,1216 -960,0 0,-1216 z/ glyph unicode= horiz-adv-x=569 d=/ glyph unicode=- horiz-adv-x=682 d=M 65,440 l 0,181 553,0 0,-181 -553,0 z/ glyph unicode=. horiz-adv-x=569 d=M 186,0 l 0,205 205,0 0,-205 -205,0 z/ glyph unicode=0 horiz-adv-x=1139 d=M 85,723 q 0,260 53.5,418.5 53.5,158.5 159,244.5 105.5,86 265.5,86 118,0 207,-47.5 89,-47.5 147,-137 58,-89.5 91,-218 33,-128.5 33,-346.5 0,-258 -53,-416.5 -53,-158.5 -158.5, -245 -105.5,-86.5 -266.5,-86.5 -212,0 -333,152 -145,183 -145,596 z m 185,0 q 0,-361 84.5,-480.5 84.5,-119.5 208.5,-119.5 124,0 208.5,120 84.5,120 84.5,480 0,362 -84.5,481 -84.5,119 -210.5,119 -124,0 -198,-105 -93,-134 -93,-495 z/ glyph unicode=1 horiz-adv-x=1139 d=M 763,0 l -180,0 0,1147 q -65,-62 -170.5,-124 -105.5,-62 -189.5,-93 l 0,174 q 151,71 264,172 113,101 160,196 l 116,0 0,-1472 z/ glyph unicode=3 horiz-adv-x=1139 d=M 86,387 l 180,24 q 31,-153 105.5,-220.5 74.5,-67.5 181.5,-67.5 127,0 214.5,88 87.5,88 87.5,218 0,124 -81,204.5 -81,80.5 -206,80.5 -51,0 -127,-20 l 20,158 q 18,-2 29,-2 115,0 207,60 92,60 92,185 0,99 -67,164 -67,65 -173,65 -105,0 -175,-66 -70,-66 -90,-198 l -180,32 q
Re: fixed-width fonts are not fixed-width in FOP print
contains very precise spacing. For example, I might have a column of numbers such as: 9.5 17.23 1492.1 that I need to line up on the decimal point. Does anyone have any advice how I can get my fixed-width fonts to truly be rendered as fixed-width, without an intermediate PDF file? Jim, you could try another approach (as i do myself in our chemical analysis reporting). Devide the numbers in two parts: one containing the part before the decimal point and one containing the rest. Use two columns in your table for these devided results, the left one with the text aligned to the right and the right one with the text aligned to the left. Oscar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF landscape rendering
Hi Chris, Thank you very much giving the suggestion.I am able to get the document printed in PDF with landscape. I was unsuccessful earlier due to adding additional attributes ,that made difficult to get it done. I appreciate your answer and thanks once again. Yugandhar Kodali 212 919 3169
Re: Fop 0.20.5rc and external-graphic SVG problem
Eric Prevost wrote: I am trying to integrate an SVG file with embedded text and when i try to use it in FOP SVG and XML-fo included in this mail. Please, don't include 100K+ files into mail body, attach they to the mail message instead. I am working on W2K SP1, JDK 1.3 With FOP 0.20.5rc the result is : [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5rc [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] [1] [ERROR] Could not load external SVG: null [ERROR] Error while creating area : No ImageReader for this type of image (file:/Temp/testfont001.svg) [INFO] Parsing of document complete, stopping renderer Are you sure file:/Temp/testfont001.svg is valid path to the file? I have tried your fo + svg in fop0.20.5 and it gave me many exception lines about some wrong glyphindex=-1, but produced pdf ok. Batik itself seems to be able to handle your svg well, so it sounds like a bug, file it to the bugzilla (again, *attach* svg to the bug entry, not copy-n-pase it as is, please). -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fixed-width fonts are not fixed-width in FOP print
Thanks for the idea Oscar. I think that would work, if indeed I was only having problems with columns of numbers. Unfortunately, that was just one example. I am the downstream recipient of a big blob of text that I am trying to print with it's original look and feel. My actual data are medical reports that include a variety of non-predictable spacing. Things like columns containing alphabetic data nested to the right side of wrapping text, borders built with dashes and pipes, non-uniform paragraph indentation. Jim [EMAIL PROTECTED] 12/19/2002 8:34:42 AM contains very precise spacing. For example, I might have a column of numbers such as: 9.5 17.23 1492.1 that I need to line up on the decimal point. Does anyone have any advice how I can get my fixed-width fonts to truly be rendered as fixed-width, without an intermediate PDF file? Jim, you could try another approach (as i do myself in our chemical analysis reporting). Devide the numbers in two parts: one containing the part before the decimal point and one containing the rest. Use two columns in your table for these devided results, the left one with the text aligned to the right and the right one with the text aligned to the left. Oscar - 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: Grouping by position - Out Of Memory
Renzo Callant wrote: I have to limit the amount of memory used by java to 128mb. The result is that i get an out of memory-error. It's a faq, see http://xml.apache.org/fop/faq.html#faq-N1011A -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Break page on a specific value of a XML data.
Jean-Philippe VALENTIN wrote: I would like to do a page break on a specific value of a XML element. How can I specify that I want a page break when a XML element has got a specify value ? In my example, for each BET3F_TYPE_LIGNE='CM', I want a page break. Just generate break-before (or break-after) property: fo:block xsl:if test=BET3F_TYPE_LIGNE='CM' xsl:attribute name=break-beforepage/xsl:attribute /xsl:if -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Grouping by position - Out Of Memory
Thanks Oleg, but i've read the faq. The solution would be to use multiple page sequences. How can i automate this, so that 2 records are put in 1 page sequence ? I can put in a for-each so that for every record a new page sequence is taken, but how can i group this so that only a new page sequence is taken for every 2 records ? -Oorspronkelijk bericht- Van: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Verzonden: donderdag 19 december 2002 16:15 Aan: [EMAIL PROTECTED] Onderwerp: Re: Grouping by position - Out Of Memory Renzo Callant wrote: I have to limit the amount of memory used by java to 128mb. The result is that i get an out of memory-error. It's a faq, see http://xml.apache.org/fop/faq.html#faq-N1011A -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - 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]
Defining named destination in pdf
hello i tried to define a named postion in an pdf using following code fo:block id=mydestination after i tried this an control the pdf using acrobat 5 scanning the document acrobat doesn't show my the named destination in the pdf am i'm doing something worng? after all i'd like to open the document using an html link like a href=foo.pdf#mydestinationLink/a regards jochen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multithreading with FOP
The only known pitfall concerning 0.20.4 is a MT-problem with images. You can occasionally get NullPointerExceptions when images are loaded. This has been fixed in 0.20.5rc. I expect 0.20.5rc to work well in a multithreaded environment although FOP still uses a few ugly construct like a too frequent use of statics, for example. We're adressing this in the redesign. Some best practice that comes to my mind is to only configure FOP once when the VM starts. You mention that the average rendering time increases with multiple threads. Just curious, what about the throughput? Is FOP getting slower with multiple threads? On 18.12.2002 22:09:13 Ryan.Asleson wrote: I'm trying to use FOP 0.20.4 in a multi-threaded environment to produce PDFs. As I increase the number of threads from one or two to three or four, the average rendering time per PDF increases significantly. I realize that the host environment (available memory, number of processors, etc etc) can cause this affect, but I was wondering if there are any pitfalls, problems , or best practices with using FOP in a multi-threaded environment. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Loading Image from Server
Hi, i couldn't display an image, whe fop must load it from a server, but i dont get an exception. when i use a local path it worjs fine. but i get no exception. coulkd it be, that a secutity exception will catch in the framework? alex -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TXTRenderer Setting the encoding
Hi, when i use the 0.20.5 fop i get a nullpointer when i use the txtrenderer when the renderer tries to use the member options (because it isnt initialized) in line 1607. i think its a bug, he should use the default utf-8 encoding in this case. but how can i set the variable? i tried Configuration.put(txt.encoding, .), but without success. alex -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]