RE: fo:basic-link
-Original Message- From: Lucian Opris [mailto:[EMAIL PROTECTED] Ok, I did upgrade the FOP version links are fine (not offseted) but I get another error regarding fonts embedding. Cannot extract the embedded font 'Arial, BoldItalic' Some charachters may not display or print correctly. Arial BoldItalics was fine in previous version. snippet of config.xml This error shows up when you open the file in Acrobat, right? Problem with embedded font, either with the stream embedded in the PDF itself (- occurs when using encryption embedded fonts in 0.20.5), but AFAICT from the supplied config snippet, you are not actually embedding the fonts but referencing them ( embed-file= ), so ... font metrics-file=/nas/web/fonts/arialbi.xml kerning=yes embed-file= font-triplet name=ArialBDI style=normal weight=normal/ /font something is wrong with this entry ( name or XML metrics file ). You're sure the spelling is correct? ( Also, I would change the triplets to resemble the entries in the userconfig.xml supplied with FOP, namely : font-triplet name=Arial style=[normal|italic] weight=[normal|bold] / This allows you to reference this font-family using properly formed XSL-FO font-property combinations, instead of having to specify a different font-family for every one of them individually.) Hope this helps. Greetz, Andreas Delmelle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fit data into a PDF page
Dear all, I am now transforming XML data into PDF by FOP (XML- XSL-FO -PDF), I don't know how to fit dynamic data into a page (table for example) in both vertical and horizontal, Will I change font size or ...? if have to change font size then how to know suitable font size, Could you help me a solution about this problem? Many thanks Hiennt
Re: problem with postscript (landscape)
thanx, works really fine! suse - Original Message - From: Jeremias Maerki [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 9:58 PM Subject: Re: problem with postscript (landscape) Hi suse Check this out: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21307 This may do what you need. On 17.09.2003 21:47:56 suse wrote: I've implemented the page-height and page-width in my stylesheet to produce a postscript-file which orientation is landscape. but if I open it with ghostview portrait is shown. is it a issue of fop or a bug of gs? 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]
XSL-FO - page borders
Title: Message Hi, It will be great if you guys can help me with the following in XSL-FO... I want a LEFT page border that runs from the top of the page till the end of the page, how can I do this using XSL-FO? I assume that is has to be done in the simple-page-master... I tried the following in the simple page master, it didn't work, any clue?, am I going in the right direction? fo:region-body border-left-style="solid" border-left-width="2mm" margin-top="3cm" margin-bottom="1cm"/ With the above statement I got NO border at all. Thanks for any inputs. Regards, Ganesh **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ***
Re: XSL-FO - page borders
From: Ganesh [EMAIL PROTECTED] I want a LEFT page border that runs from the top of the page till the end of the page, how can I do this using XSL-FO? I assume that is has to be done in the simple-page-master... borders on regions are not implemented by FOP. I think to acheive what you want you will have to use a table in the region-start, 1 row by 1 cell will do. Put left border on cell, and specify a row-height equal to height of region-start. Dont forget a nbsp; in the table cell to make sure it gets rendered. Chris _ Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSL-FO - page borders
-Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] From: Ganesh [EMAIL PROTECTED] I want a LEFT page border that runs from the top of the page till the end of the page, how can I do this using XSL-FO? I assume that is has to be done in the simple-page-master... borders on regions are not implemented by FOP. I think to acheive what you want you will have to use a table in the region-start, 1 row by 1 cell will do. Put left border on cell, and specify a row-height equal to height of region-start. Dont forget a nbsp; in the table cell to make sure it gets Another approach would be insert block-containers ( borders do work on these, as well ) equal to the region-body height. Hope this helps. Greetz, Andreas Delmelle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSL-FO - page borders [spam-BCC][Faked From Address][html-rem oved]
not sure, but you don't specify color, try adding that. -Original Message- From: Ganesh [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:11 AM To: [EMAIL PROTECTED] Subject: XSL-FO - page borders [spam-BCC][Faked From Address][html-removed] Hi, It will be great if you guys can help me with the following in XSL-FO... I want a LEFT page border that runs from the top of the page till the end of the page, how can I do this using XSL-FO? I assume that is has to be done in the simple-page-master... I tried the following in the simple page master, it didn't work, any clue?, am I going in the right direction? fo:region-body border-left-style=solid border-left-width=2mm margin-top=3cm margin-bottom=1cm/ With the above statement I got NO border at all. Thanks for any inputs. Regards, Ganesh **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory consumption
Timo Haberkern wrote: i have big problems. I use FOP embedded into a java application to create approx. 250 PDF Files. In each of the files are 5 or more images (JPGs or SVGs). The problem is that FOP consumes more and more memory. This seems to indicate a memory leak, however, I wasn't able to reproduce this. I have a server running FOP rendering dozens of PDF files per day up for months, without any sign of a memory leak in FOP. There are a few suspects in your code: Options options = new Options(userConfigFile); Unless your user config file changes, do this only once. InputHandler inputHandler = new XSLTInputHandler( Try to use a Transformer object instead, as shown in some other examples. Nothing helped? Is there no possibility to get rid of this reserverd memory? If you could get a memory profiler and track down which kind of object locks down the memory, you'll probably earn the inmeasurable gratitude of the community. Oh well, FOP before 0.20.4 *does* have memory leaks. Which version are you using? Which XML parser? Any DTD/schema reference in your XML? Which XSLT processor? Which JDK? Loong stretches of text in your transformation result (may cause some static buffers to grow unreasonably large)? J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory consumption
Ben Galbraith wrote: If you haven't figured it out yet, let me inform you: FOP suffers from large memory leaks. Where? Class names? FOP often uses a huge amount of memory during rendering, but once the driver object is released, most of it is eglible for GC. Memory locked accross rendering runs must be referenced by static variables, and a careful inspection of the code shows there aren't many such things. Most notably: - Image cache. No issue if it is reset. - A few string buffers used as, well, buffers in various places. They should grow of the order of text strings in the input, at most of the order of total text content in the largest block. Complete analysis is still pending. - Configuration data. This does not rule out there are hidden leaks elsewhere, perhaps introduced through the Java run time library. If anybody experiencing rapid growth of locked down memory after several runs of FOP could do experiments which kind of FO constructs is likely responsible for this, or preferably run a memory profiler, this would be of great help in tracking down the problem. My experiments so far failed to get a hold on this. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF file size increased from 10K to 80K with non-embedded fonts.
Chris Bowditch wrote: 1) make sure all the end-users that will receive the PDFs generated by FOP have the extra fonts installed along with their acrobat reader, and then simply reference the font in the PDF. Last time I checked, this did *not* work. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:basic-link
Lucian Opris wrote: font metrics-file=/nas/web/fonts/arial.xml kerning=yes embed-file= ^^^ I don't think this is a good idea. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: external-graphic : twice request for the same element
Thomas S wrote: I'm using FOP fop-0.20.5 with fop.sh script and for all external-graphic element, I can see 2 requests in my apache log. Well, this happens for a few image formats. FOP first opens a connection to check the image type (format), then may access the URL again to do the actual processing. However: src=http://agarycus/perl/mat_tests/A/A.jpg/ I could have sworn JPGs are accessed only once (GIFs are accessed twice for sure). Is that normal ? Can I change it ? Not easily. Your options: - cache in the image your generator - use another format (check the FOP website for supported formats) - provide a patch for FOP J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: fo:basic-link
Hi, I've regenerated the arial.xml using command line: java -cp build/fop.jar:lib/avalon-framework-cvs-20020806.jar:lib/xml-apis.jar:lib/xercesImpl-2.2.1.jar org.apache.fop.fonts.apps.TTFReader /nas/web/fonts/arial.ttf /nas/web/fonts/arial.xml and in config file I have font metrics-file=/nas/web/fonts/arial.xml kerning=yes embed-file=/nas/web/fonts/arial.ttf font-triplet name=Arial style=[normal|italic] weight=[normal|bold]/ /font I get the same result. Could you tell my why is not a good ideea? Thanks a lot Lucian Opris -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 5:33 PM To: [EMAIL PROTECTED] Subject: Re: fo:basic-link Lucian Opris wrote: font metrics-file=/nas/web/fonts/arial.xml kerning=yes embed-file= ^^^ I don't think this is a good idea. J.Pietschmann - 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: Fit data into a PDF page
Ngo Thanh Hien wrote: I am now transforming XML data into PDF by FOP (XML- XSL-FO -PDF), I don't know how to fit dynamic data into a page (table for example) in both vertical and horizontal, Will I change font size or ...? if have to change font size then how to know suitable font size, Could you help me a solution about this problem? Your problem description is a bit short. I can imagine lots of possible ways to fit dynamic data onto a page, though probably none of them will fit your problem. A somewhat more elaborate and formal description, perhaps with an illistrative example, could be of some help. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSL-FO - page borders
Ganesh wrote: I want a LEFT page border that runs from the top of the page till the end of the page, how can I do this using XSL-FO? I assume that is has to be done in the simple-page-master... I tried the following in the simple page master, it didn't work, any clue?, am I going in the right direction? fo:region-body border-left-style=solid border-left-width=2mm margin-top=3cm margin-bottom=1cm/ With the above statement I got NO border at all. You are not supposed to get a border: http://www.w3.org/TR/xsl/slice6.html#fo_simple-page-master See Trait derivation. FOP is just conformant. Some possible approaches: - place an appropriate fo:block-container with a right border in your region-start - use a SVG in the start region - use a background image in the start or body region simmulating the border J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: fo:basic-link
-Original Message- From: Lucian Opris [mailto:[EMAIL PROTECTED] font metrics-file=/nas/web/fonts/arial.xml kerning=yes embed-file=/nas/web/fonts/arial.ttf This seems fine... font-triplet name=Arial style=[normal|italic] weight=[normal|bold]/ /font however, I believe you have misunderstood me here. What I meant was 4 font-triplets, normal/bold/italic/bold italic, The one with name=Arial gets style=normal, weight=normal name=ArialI style=italic, weight=normal name=ArialBD style=normal, weight=bold name=ArialBDI style=italic, weight=bold This should work fine and is definitely not a bad idea... :) Greetz, Andreas Delmelle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:basic-link
Lucian Opris wrote: Hi, I've regenerated the arial.xml using command line: java -cp build/fop.jar:lib/avalon-framework-cvs-20020806.jar:lib/xml-apis.jar:lib/xercesImpl-2.2.1.jar org.apache.fop.fonts.apps.TTFReader /nas/web/fonts/arial.ttf /nas/web/fonts/arial.xml and in config file I have font metrics-file=/nas/web/fonts/arial.xml kerning=yes embed-file=/nas/web/fonts/arial.ttf font-triplet name=Arial style=[normal|italic] weight=[normal|bold]/ /font I get the same result. Could you tell my why is not a good ideea? You need a file to embed. Try something like fonts font metrics-file=/nas/web/fonts/arial.xml kerning=yes embed-file=/nas/web/fonts/arial.ttf font-triplet name=Arial style=normal weight=normal/ /font font metrics-file=/nas/web/fonts/arial.xml kerning=yes embed-file=/nas/web/fonts/arialb.ttf font-triplet name=Arial style=normal weight=bold/ /font ... You need a TTF file for the bold (and other derived) font. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory consumption
J.Pietschmann wrote: If you haven't figured it out yet, let me inform you: FOP suffers from large memory leaks. Where? Class names? I haven't tracked it down that far yet; if I had, I'd submit a patch to Bugzilla. I render hundreds of 4 page, image intensive PDFs over and over again. As FOP runs, the amount of memory on the heap it consumes continues a linear rise, over and over again, until it hits the limit specified by -Xmx, at which point it throws an OutOfMemoryException. I conclude that the issue is with FOP, as it is the only process involved in the loop that can consume an entire 1 GB heap. Each individual process is relatively small, but when I generate so many back-to-back, it all adds up. I have the following FOP code in my loop (Exception handling removed for readability): FopImageFactory.resetCache(); File configDir = new File(fopHome, conf); File fopConfigFile = new File(configDir, userconfig.xml); Options options = new Options(fopConfigFile); FileInputStream in = new FileInputStream(fopFile); FileOutputStream out = new FileOutputStream(pdfFile); Driver driver = new Driver(new InputSource(in), out); driver.setRenderer(Driver.RENDER_PDF); driver.run(); in.close(); out.close(); If I'm doing something wrong, please point it out. Otherwise, it seems pretty obvious to me that FOP is the culprit. If you like, I can start gathering metrics from the JVM itself. I don't own a commercial profiling utility, otherwise I'd run that. Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]