Re: FOP hangs when using animated gifs...
I have put this in cvs. Thats not quite how you should submit a diff but it was simple enough that it doesn't matter. On 2001.11.21 08:50 Beer, Christian wrote: Hi FOP-specialists! I (with help from Jeremias Maerki) found a working solution for the animated gif problem! Here is what I created through diff (I don't have any diff knowledge! Hope it is right!): diff 60c60,61 if (this.imageStatus.intValue() != ImageConsumer.STATICIMAGEDONE) --- if (this.imageStatus.intValue() != ImageConsumer.STATICIMAGEDONE this.imageStatus.intValue() != ImageConsumer.SINGLEFRAMEDONE) 99c100,101 if (this.imageStatus.intValue() == ImageConsumer.STATICIMAGEDONE) --- if (this.imageStatus.intValue() == ImageConsumer.STATICIMAGEDONE || this.imageStatus.intValue() == ImageConsumer.SINGLEFRAMEDONE) /diff Hope that anybody could put that in cvs and that it helps! If you use animated gifs with these changes, the first image of that gif is rendered to the pdf. Greetings Christian Beer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Strange space in fo:block
Hi I am generating a simple document with fixed font family. If the fo:block contains the new line( with the space collapsed), then the next line in PDF is shifted by one character length to the right. FO: fo:page-sequence master-name=simplePM fo:flow flow-name=xsl-region-body fo:block font-family=Courier white-space-collapse=falseThis is a simple fo block. Hello World/fo:block fo:block font-family=Courier wrap-option=no-wrap white-space-collapse=falseThis is a simple fo block. Hello World/fo:block /fo:flow Please look at the attachments for details of FO and PDF: block.pdf block.fo I have tested with the FOP0.15. Is it a bug? Or am I writing the invalid XSL FO File? Thanks Mahendar This message is confidential and may also be legally privileged. If you are not the intended recipient, please notify us immediately. You should not copy it or use it for any purpose, nor disclose it's contents to any other person. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of Wilco International. block.pdf Description: Binary data block.fo Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: convert line height value from pixel to pt
lpkhoo, Just on the point of pixel conversion - there is no rigorously defined value for pixel. The FOP code assumes 1 point per pixel, but the actual size is up to the implementation and the medium, and may vary in the vertical and horizontal directions. Users are warned in the spec against relying on pixels, which may be a minimum of 1 device unit (which will vary from output device to device), 1/72 (i.e. a point), 1/90 or 1/92. Don't use them. Peter Keiron Liddle wrote: The line height is converted into points the same way that all other units are converted. The problem is that the actual line height in the output is incorrect. It sets the line height to the lineheight - half leading (depends on the font) which is wrong. The line stacking is not done correctly anyway so it is not simple to fix it properly. On 2001.11.21 08:57 [EMAIL PROTECTED] wrote: hello, Anyone know how to convert line height value, I need to convert the value from pixel to pt. I try to convert the value from pixel by multiple 0.75 (value * 0.75) , When I run FOP 0.20.0, I found the line height is wrong. So, I not sure how to convert the value from pixel to pt, anyone know how to calculate? Thank you. lpkhoo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest Lord, to whom shall we go? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Font in FOP
Hi, I don't know if it is a FOP problem or just my skills in xsl-fo, but I can set a font type (like Arial or Times) to a block. Any help? Thanks Cheers Manu Emmanuel Ponette Euro DB Place de l'Université, 16 B-1348 Louvain-La-Neuve Phone: +32 10 47 67 44 Fax: +32 10 47 67 67 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Silence?
How do FOP/Cocoon use the system memory when transforming FO to PDF? We did the following experiment which, in the end, led into trouble: a) process file with one TIFF graphic (1MB approx.): successful under Win NT, computed itself to death under Win 2000 b) process file with up to 40 times the same TIFF graphic (1MB approx.): successful under Win NT c) process file with 20 different TIFF graphics (1MB approx. each): computed itself to death under Win NT. Memory configurations: 1) Win NT machine: 128MB RAM, 256MB swap memory 2) Win 2000 machine: 256 MB RAM, 1GB swap memory Any helpful ideas how to proceed? Matthias Dott. Matthias Fischer abc.Mediaservice GmbH Nebelhornstraße 8 86807 Buchloe Tel. (08241) 9686-38 Fax (08241) 9686-26 http://www.abc-media.de e-mail: [EMAIL PROTECTED] ein Unternehmen der abc.Mediengruppe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Silence? Sorry...
No, I don't think OpenSource is like a service contract which includes 1 hour response times. Sorry. I'm a bit nervous due to two weeks' time I'm screwed-up doing nothing than troobleshooting after problems mainly with graphics, although I do not want to generate a PDF of the Encyclopaedia Britannica in printshop quality but of just a simple user's manual like there are millions on this earth, to be printed out on an office printer... We'll try to work your way. Matthias ---BeginMessage--- Silence? Do you think OpenSource is like a service contract which includes 1 hour response times? Anyway, try to increase the heap size available to the VM. run java -X to see the available options Example: java -Xms64M -Xmx320M I think your images are quite big. In the case they're compressed, imagine that FOP will uncompress the image in memory pixel by pixel. Then you understand why this uses so much memory. There may be a more memory efficient way, but it's not available at the moment. So you may have to try to reduce your images in size or resolution, if that's feasible. On Thu, 22 Nov 2001 17:10:01 +0100 Matthias Fischer wrote: How do FOP/Cocoon use the system memory when transforming FO to PDF? We did the following experiment which, in the end, led into trouble: a) process file with one TIFF graphic (1MB approx.): successful under Win NT, computed itself to death under Win 2000 b) process file with up to 40 times the same TIFF graphic (1MB approx.): successful under Win NT c) process file with 20 different TIFF graphics (1MB approx. each): computed itself to death under Win NT. Memory configurations: 1) Win NT machine: 128MB RAM, 256MB swap memory 2) Win 2000 machine: 256 MB RAM, 1GB swap memory Any helpful ideas how to proceed? Matthias Dott. Matthias Fischer abc.Mediaservice GmbH Nebelhornstraße 8 86807 Buchloe Tel. (08241) 9686-38 Fax (08241) 9686-26 http://www.abc-media.de e-mail: [EMAIL PROTECTED] ein Unternehmen der abc.Mediengruppe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Freundliche Grüsse OUTLINE AG Jeremias Märki mailto:[EMAIL PROTECTED] Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Fop ignores my unicode character
Hi again list ! thanks to Chris, I have discovered two unicode character to represent checked and unchecked checkboxes. Now I am trying to use it in my xsl style sheet to produce them checkboxes in my pdf output but all I get with fop is a # character. I am using xsl:text #x2611;/xsl:text to insert this U^2611 character (checkbox), like I have seen it done with the euro sign (wich works by the way, with the U^20AC character). all I have in return is a # ! Should I do some configuration change to my Fop ? Should I use some new font ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: page numbering question
I've done a fair amount of the stuff related to pagination, so even though I am currently in Vancouver on vacation, and away from all of my reference stuff, off the top of my pointy head I'd say, No, I don't think you can do what you want to do. Because you would have to add or subtract to fo:page-number, and you cannot currently do things like that. However, I'd say that this is something that would make for a very nice FOP extension; sort of an enhanced page-numbering. Regards, Arved Sandstrom Quoting Savino, Matt C [EMAIL PROTECTED]: I need to separately keep track of and print out page numbers within a sub-section of the master document. I could start a new page-sequence, but the problem is that I have a master header which needs to show the running page number of the entire document. Page |-- Header --| |-- Page 5 of 25 --| || |-- Subsection | |-- Page 1 of 6 | || Page |-- Header --| |-- Page 6 of 25 --| || |-- Subsection | |-- Page 2 of 6 | || Can FOP do anything like this? I hope I'm making myself clear. It would be easy enough if I could manipulate fo:page-number to add or subtract a fixed number. But I don't see this ability. Any ideas at all would be greatly appreciated. Thanks -Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --- This mail was sent through the Nova Scotia Provincial Server, with technical resources provided by Chebucto Community Net. http://nsaccess.ns.ca/mail/ http://www.chebucto.ns.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: FOP memory usage
Thank you, Lloyd. Of course, I do have sections, and I would not mind to make a page sequence break after each of them. If it were a 300-page document, I would even be willing to make more files out of it, like in a FrameMaker® multi-file book, but it's a 50-page thing. So, for the moment, I stick to the idea of having one FO/PDF file generated for the whole document. I think, FOP should be able of managing that much, if it aspires to being utilized by a larger group of users. However, inside this one-file FO/PDF document I don't mind page sequence breaks at all. I have section titles of the first order, H1, that start on a new page. Would I then have to have different H1's for each section, e.g H1-1, H1-2, H1-3, to trigger a new page sequence every time, e.g. left1/rigt1, left2/right2, left3/right3. How did you solve the problem in your case? Matthias ---BeginMessage--- Hi Matthias, The specific document I was working on had a series of 'chapters' that were more or less independent. My initial approach had all of the 'chapters' as part of a single page-sequence. When I switched to 1 page-sequence/chapter, it made a HUGE difference. I'm not terribly familiar with what you can can't do with FOP. However, I expect it would be difficult to end a page-sequence after x-pages. I believe the way FOP works is to take the content within a page sequence, and expands the page sequence to fit the number of pages necessary to contain the content. Is your document completely continuous, or are there logical places for a break where it would be ok if the text ended half-way down one page, and continued starting on the next page (or in your case, likely on the next odd page). If so, set your page sequences so that each of those 'sections' of text are within a separate sequence. If not, I'm afraid I don't have the expertise to help :-(. Lloyd Matthias Fischer [EMAIL PROTECTED] on 11/22/2001 09:20:04 AM To: [EMAIL PROTECTED] cc: Lloyd McKenzie/CanWest/IBM@IBMCA Subject: RE: FOP memory usage While waiting for an answer that would, once again, help me out of the mud, I went through some archives. I found this mail by Lloyd. What do you mean by: I modified my XSLT to put each section into a different page sequence? I have left and right pages. Can I then tell FOP to process pages 1 through 10 a sequence, then pages 11 through 20 etc. (inbstead of creating pairs left1 and right1, left2 and right2 etc.)? I don't have a clue how to accomplish the thing you wrote of... Matthias - Message from Lloyd McKenzie/CanWest/IBM [EMAIL PROTECTED] on Fri, 9 Nov 2001 19:31:47 +0100 - To: [EMAIL PROTECTED] Subject: Re: FOP memory usage I'm not sure if this will help or not, but it worked well for me. I was trying to process a 64 MB document, and it was taking DAYS and was eating gobs of memory. I did some wading through the code, looking for ways to optimize. I found a couple of places to reduce memory, but nothing substantial. (I plan to run some analysis on my changes, and if they make a difference of more than 5%, I'll submit them for inclusion in a future release.) However, in my wondering through the code, I realized that FOP parses and stores everything until it runs into an 'End' Page sequence marker. My XML document was one BIG page sequence, so FOP was parsing the entire thing before it would start to generate output. As my XML consisted of a large number of fairly independent sections, I modified my XSLT to put each section into a different page sequence. The result was that FOP only parses objects to the end of the page-sequence, spits out the pages for that sequence, and garbage collects the objects before moving on. The only data that is retained are link references. These eat up a bit memory, but nothing as bad as all of the area references needed to draw the page : Hope this helps, Lloyd Lloyd McKenzie, P.Eng. I/T Architect, IBM Global Services Internet: [EMAIL PROTECTED] PhoneMail: (780)421-5620 Internal Mail:AZ*K0R*1004 *EDM Matt Savino [EMAIL PROTECTED] on 11/09/2001 08:21:53 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: FOP memory usage Make sure you're using -hotspot. Try setting the initial and max heap size to 256M if you have it. Turn on verbose garbage collection to see what's happening. Even though it says 'No garbage collection was performed, I'm not sure that's accurate (see below). Also sometimes the total memory used is negative. So don't assume you'll always run out of memory. That said 15MB XML to 120MB PDF may be a littl much. The only way to find out is to try it! my output on Weblogic with -hotspot -verbose:gc -ms256m -mx256m FopServlet says hi [GC 14710K-12798K(261888K), 0.0258153 secs] [GC 14840K-13743K(261888K), 0.0275211 secs] [Full GC 15436K-13778K(261888K),