Background-image
Hi all: I want to put an image as a background in all my pages of the document. In some documentation says that the property background-image can be used to do it in the simple-page-master element but it seems that FOP isn't implement this property because I try to use it and doesn't work. Any suggestion? Perhaps the FOP extensions allow but I don't know where is the documentation of the FOP extension. - Miguel Ángel Medina López Logic Factory: www.logic-factory.com Granada - España - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Align tables
Miguel Angel Medina Lopez wrote: That you see I render a table with the same width of the page, but this code doesn't work. What is the blid aproach to align the table right, with an absolute position? I thought about that, but I'd like to build the PDF in a structurated form. Can you show me an example of that approach? Here is right-aligned table example, which uses blind table: fo:table table-layout=fixed width=100% fo:table-column column-width=proportional-column-width(1)/ fo:table-column column-width=40mm/ fo:table-body fo:table-row fo:table-cell/ fo:table-cell !-- Here the table I want to align -- fo:table border-style=solid border-color=red table-layout=fixed fo:table-column column-width=20mm/ fo:table-column column-width=20mm/ fo:table-body fo:table-row fo:table-cell fo:blockcolumn1/fo:block /fo:table-cell fo:table-cell fo:blockcolumn2/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:table-cell /fo:table-row /fo:table-body /fo:table -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different borders in PDF
[EMAIL PROTECTED] wrote: On result PDF is clearly visible, that bottom border line is much thicker ( 2 or 3 times) than top border line. Why ? That's Acrobat's rounding effect, try to print pdf or change zoom value. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 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) Looks like your svg document is broken, make sure batik able to render it. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]
Re: Background-image full page
Hi: I'm going to response myself. My problem was that the FOP version I used was 0.20.3. I've upgraded to version 0.20.4 and now I can include background images. However I can't include in the simple-page-master to include the background in all the page, including region-after, region-before and the margins. How can I do it? Thank You in advanced - Miguel Ángel Medina López Logic Factory: www.logic-factory.com Granada - España - Original Message - From: Miguel Angel Medina Lopez [EMAIL PROTECTED] To: FOP User [EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 12:41 PM Subject: Background-image Hi all: I want to put an image as a background in all my pages of the document. In some documentation says that the property background-image can be used to do it in the simple-page-master element but it seems that FOP isn't implement this property because I try to use it and doesn't work. Any suggestion? Perhaps the FOP extensions allow but I don't know where is the documentation of the FOP extension. - Miguel Ángel Medina López Logic Factory: www.logic-factory.com Granada - España - 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: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1?
Francis, Ronald wrote: I've looked at the code in the AWTRenderer where a BufferedImage is created to paint the page on(defaults to 72 dpi) That is addressed by the redesign under way. Out of curiosity, how can we create a high res image / graphics context ? I would be happy to tinker with the code and post any solutions if I find any , but I am not very familiar with 2D. Me too unfortunately :( Is there any java2D expert around? -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Align tables
Clay Leeds wrote: Unfortunately, the horizontal alignment is a bit misleading. According to the book, if you want it aligned horizontally, you need to use 'text-align=right' (since you want to right-align the contents). I think that's misleading, because it's not just text you're trying to align. Someone please correct me if I'm wrong. text-align is applyed to inline formatting objects only, but table is block level object. See http://www.w3.org/TR/xsl/slice7.html#text-align -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing Headers -Reply
JEFF HARMAN wrote: Can you point me to a good source of information about the use of markers? I haven't used them yet. Take a look at Dave's book: http://www.dpawson.co.uk/xsl/sect3/bk/ch11.html#d0e8626. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]
Re: Background-image
Miguel Angel Medina Lopez wrote: I want to put an image as a background in all my pages of the document. In some documentation says that the property background-image can be used to do it in the simple-page-master element but it seems that FOP isn't implement this property because I try to use it and doesn't work. Any suggestion? background-image is not inherited property, so there is no much sense to set it in simple-page-master, but you can set it at fo:region-body fo:region-body background-image=foo.gif/ -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Grouping by position - Out Of Memory
Hi all, i've been looking in the archive for an example of grouping by position, but i can not seem to find a working example. I have a large xml-file, that i have to transform to a .pdf report. It's about 200 pages (but it can get larger !). It's done with a for-each for every record. And i need to have 2 records/page. I have to limit the amount of memory used by java to 128mb. The result is that i get an out of memory-error. In the archive i've learned that grouping by position would be the solution to the problem. How can i split up the for-each so that i only have 2 records on one page, and that the memory does not get exhausted ? Renzo Callant Belgium - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antwort: Re: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1?
Hi Oleg, Francis, I was just now looking though the code of AWTRenderer and found the method AWTRenderer.setScaleFactor(). Invoking setScaleFactor(200) on the TIFFRenderer before rendering gives me a TIFF with higher (probably double) resolution. This is all I need. Were you guys aware of this method? Is there any problem with this? cheers 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:59:53 Bitte antworten an [EMAIL PROTECTED] An: [EMAIL PROTECTED] Kopie: Thema: Re: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1? Francis, Ronald wrote: I've looked at the code in the AWTRenderer where a BufferedImage is created to paint the page on(defaults to 72 dpi) That is addressed by the redesign under way. Out of curiosity, how can we create a high res image / graphics context ? I would be happy to tinker with the code and post any solutions if I find any , but I am not very familiar with 2D. Me too unfortunately :( Is there any java2D expert around? -- 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]
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]
fixed-width fonts are not fixed-width in FOP print
Greetings, I am trying to use FOP (v0.20.4) from within a Java application to create a printed report that 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. I have attempted to do this using a fixed-width font (Courier) along with white-space-collapse=false. I have tried two possible approaches: 1. Use PDFRenderer - When I test this (courtesy of the built-in FO functionality in XMLSpy5), my printed output is EXACTLY what I want. However, this means an intermediate PDF file being written, followed by a user action to open the file in Acrobat Reader and print it. My requirement is that there be no user interaction, so this option is out. 2. Use AWTRender - I can print the exact same reports without user interaction by adapting the code from the org.apache.fop.apps.PrintStarter. Unfortunately, my fixed-width font is no longer fixed-width. In PrintStarter, AWTRenderer is extended, so I assume this is a shortcoming of AWT? I have verified that the fonts I have attempted to use are available by using .getAvailableFontFamilyNames() in GraphicsEnvironment. 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? Thank you, Jim Ross Saint Louis, MO - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multithreading with FOP
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. Thanks!!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error while loading a local image
Return Receipt Your Re: Error while loading a local image document : was Eric Prevost/Luxembourg/IBM received by: at: 18/12/2002 13:54:11 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error while loading a local image
Title: RE: Error while loading a local image Run FOP with the debug option on. I had this problem before and it was because some settings in my webserver not allowing anonymous access. when I set it to allow anonymous access the problem went away. (BTW my web server is IIS) -Original Message- From: Marcus Kalthoff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 18 December 2002 8:56 PM 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\jimi-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 - 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: 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]
RE: Antwort: Re: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1?
Afraid not :( A higher scale factor creates a bigger BufferedImage.The end result is a larger 72 dpi tiff. Ronald PS (Sorry , I replied to the wrong email earlier) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 8:59 AM To: [EMAIL PROTECTED] Subject: Antwort: Re: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1? Hi Oleg, Francis, I was just now looking though the code of AWTRenderer and found the method AWTRenderer.setScaleFactor(). Invoking setScaleFactor(200) on the TIFFRenderer before rendering gives me a TIFF with higher (probably double) resolution. This is all I need. Were you guys aware of this method? Is there any problem with this? cheers 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:59:53 Bitte antworten an [EMAIL PROTECTED] An: [EMAIL PROTECTED] Kopie: Thema: Re: Antwort: Which TIFF format is used in batik? How can I get TI FF Type 1? Francis, Ronald wrote: I've looked at the code in the AWTRenderer where a BufferedImage is created to paint the page on(defaults to 72 dpi) That is addressed by the redesign under way. Out of curiosity, how can we create a high res image / graphics context ? I would be happy to tinker with the code and post any solutions if I find any , but I am not very familiar with 2D. Me too unfortunately :( Is there any java2D expert around? -- 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]