[3rd post] Memory growth in version 0.20.5
Is there a way to manage FOP's memory usage? I'm not talking about increasing the JVM memory and stack space, I mean the amount of memory FOP allocates as a function of job size. What we're experiencing is an almost linear growth in memory demand for the reports we produce. Any and all suggestions, ideas, etc., would be helpful. Please ask questions if that'd help. -- Mark C. Allman -- Allman Professional Consulting, Inc. -- www.allmanpc.com, 617-947-4263 BusinessMsg -- the secure, managed, 100% J2EE Enterprise IM plug-in solution.
Absolute-positon of a block
Version: 0.20.5rc, with my fixes to get markers working. What Im trying to do is place a fo:block at an absolute position on a page. Any way I can. The idea is to format text on a page so that when we feed a pre-printed form through the printer we get X placed in a box, a name in its box, a date where it should be on the form, etc. I see that absolute-position isnt supported yet, but that top, right, etc., are. Is there functionality implemented in 0.20.5rc that allows a block to be placed at a specific position or do I need to add the implementation of absolute-position (and, if I need to do this, can anyone suggest any helpful hints)? -- Mark C. Allman -- Innovator -- Allman Professional Consulting, Inc. -- www.allmanpc.com, 617-947-4263 BusinessMsg the secure, managed, J2EE-standard Enterprise IM solution (alpha testing shortly).
RE: Absolute-position of a block
Yea were dealing with medical forms. We need (my client needs, actually) to support a customer that has these forms to be printed. Things like claims forms. -- Mark C. Allman -- Innovator -- Allman Professional Consulting, Inc. -- www.allmanpc.com, 617-947-4263 BusinessMsg the secure, managed, J2EE-standard Enterprise IM solution (alpha testing shortly). -Original Message- From: Clay Leeds [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 1:41 PM To: [EMAIL PROTECTED] Subject: Re: Absolute-positon of a block Mark, That's funny... We are using FOP to move *away* from something like this. Our clients are tired of paying us to sell them pre-printed pages with the boxes, only to have the little x be off-center ;-) I don't know if it'll help, but you could use blind tables with images or something inside to maneuver the box where you want it. Of course, it'll take a bit of trial and error. Also, the results might be different depending on the printer, as well as whether you're outputting with -awt/-print or -ps/-pdf. Good luck! Mark C. Allman wrote: Version: 0.20.5rc, with my fixes to get markers working. What Im trying to do is place a fo:block at an absolute position on a page. Any way I can. The idea is to format text on a page so that when we feed a pre-printed form through the printer we get X placed in a box, a name in its box, a date where it should be on the form, etc. I see that absolute-position isnt supported yet, but that top, right, etc., are. Is there functionality implemented in 0.20.5rc that allows a block to be placed at a specific position or do I need to add the implementation of absolute-position (and, if I need to do this, can anyone suggest any helpful hints)? -- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Absolute-position of a block
Aha, I see what I need to change. I take the posted example, move the fo:block-container to the fo:flow, wrap it in a fo:block, and it disappears. This is what I was doing (a container in a block) and it wasnt working. As I (try to) read the spec it seems legal to do this. If I take out the wrapping fo:block it appears to work like a charm. Heres the edited FO code: ?xml version=1.0 encoding=UTF-8 ? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format fo:layout-master-set fo:simple-page-master master-name=simpleA4 page-height=11in page-width=8.5in margin-top=0in margin-bottom=0in margin-left=0in margin-right=0in fo:region-before extent=0in / fo:region-body margin-top=0in / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simpleA4 fo:flow flow-name=xsl-region-body fo:blockHello World!/fo:block fo:blockxsl-region-before/fo:block fo:block !-- ADDED, remove to have the container appear -- fo:block-container left=2cm top=1cm width=5cm height=1cm background-color=lightgreen position=absolute fo:blockI love block-containers!/fo:block /fo:block-container /fo:block !-- ADDED, remove to have the container appear -- /fo:flow /fo:page-sequence /fo:root Its NO BIG DEAL at all. I just wanted to check with folks after consulting the compliance page. -- Mark C. Allman -- Innovator -- Allman Professional Consulting, Inc. -- www.allmanpc.com, 617-947-4263 BusinessMsg the secure, managed, J2EE-standard Enterprise IM solution (alpha testing shortly). -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 2:20 PM To: [EMAIL PROTECTED] Subject: Re: Absolute-positon of a block Just answered that yesterday on fop-user: http://marc.theaimsgroup.com/?l=fop-userm=104928256603740w=2 On 03.04.2003 20:34:59 Mark C. Allman wrote: Version: 0.20.5rc, with my fixes to get markers working. What I'm trying to do is place a fo:block at an absolute position on a page. Any way I can. The idea is to format text on a page so that when we feed a pre-printed form through the printer we get X placed in a box, a name in it's box, a date where it should be on the form, etc. I see that absolute-position isn't supported yet, but that top, right, etc., are. Is there functionality implemented in 0.20.5rc that allows a block to be placed at a specific position or do I need to add the implementation of absolute-position (and, if I need to do this, can anyone suggest any helpful hints)? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Markers in areas
... but markers will continue to work as per the XSLFO spec, correct? We depend on markers for dynamic page headings. -- Mark C. Allman -- Allman Professional Consulting, Inc. -- www.allmanpc.com, 617-947-4263 -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 4:09 PM To: [EMAIL PROTECTED] Subject: Re: Markers in areas Arved Sandstrom wrote: Joerg, you can freely get rid of that stuff. Great! Anybody out there bothering to profile the new code? Two objects less created per Area, this should be noticable! J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: FopServlet example!
Write your own InputHandler to do what you need. Then do the usual driver.render() call: Driver driver = new Driver(); InputHandler inputHandler = new MyCustomInputHandler(..whatever your InputHandler needs..); driver.setOutputStream(..wherever you want the output to go..); driver.render(inputHandler.getParser(), inputHandler.getInputSource()); -- Mark C. Allman -- Allman Professional Consulting, Inc. -- www.allmanpc.com, 617-947-4263 -Original Message- From: Ken Masters [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 4:16 PM To: [EMAIL PROTECTED] Subject: FopServlet example! Hi everyone, I am new to Apache FOP, and am finding a little problem with what I'm doing. The XSLTInputHandler class has two parameters, the XML and XSL File's. Basically what I would like to do is pass an XML as a Java String (since it is dynamically created) and the XSL can be passed as a File. How would I go about doing something like this, where the XML is created dynamically by a Servlet (from an XML database,Apache-Xindice), and passing this onto the XSLTInputHandler class (or any other class). Thanking you in advance! Ken _ Overloaded with spam? With MSN 8, you can filter it out http://join.msn.com/?page=features/junkmailpgmarket=en-gbXAPID=32DI=1 059 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Changes to maintenance release to support fo:marker
A page eats *lots* of memory. Thought about that, which is why I mentioned the optimization. It is not necessary to store the whole page, we need just the marker list. We (appear to) need to keep track of the page sequences (as in StreamRenderer.getPreviousPage()), or change how we find markers in past PageSequences, or something. As soon as I wrote it I didn't like saving the entire page. As to getting the change into tomorrow's build: not yet. Test, test, test, ... Besides, my test file generates an extra blank page at the end and I'm working on getting rid of that also. -- Mark C. Allman -- Allman Professional Consulting, Inc. -- www.allmanpc.com, 617-947-4263 -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 8:14 PM To: [EMAIL PROTECTED] Subject: Re: Changes to maintenance release to support fo:marker Christian Geisert wrote: Thanks for contribution but as I'm planing to do the 0.20.5 release tomorrow (really ;-) it's just to late for it. I want to take a closer look at this: 1. We need to keep a list of all pages. If a marker is referenced on a later page we need to be able to retrieve the marker value. We were using the page queue for this but as pages are rendered they're removed from the queue--not good if that removes a page with a marker we'll need later. So I added an ArrayList called pagesList to hold this list. This might need to be optimized to only save markers from previous pages but we also need to know things like page sequence so for now just save the entire page. It is not necessary to store the whole page, we need just the marker list. A page eats *lots* of memory. This is the disadvantage of the current approach (which works perfectly well if you put a fo:page-number-citation ref-id=does-not-exist/ somewhere on the first page where it doesn't screw the layout completely). In order to cater for the retrieving scopes, nested lists have to be used: page-sequence-list +- page-list +- marker-list This structure is preferably built in queuePage(). J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Code Snapshot
Is the fop-0_20_2-maintain tag the source for fop-0.20.5rc? I have the source code for 20.5rc via the zip download and I've fixed a few things (markers). Also, what is the capability status of the main branch compared to the 20.5rc? I _just_ started looking at fop-dev (yesterday, in fact) so the answers to my questions may be right there in front of me--sorry to waste the bandwidth. -- Mark C. Allman -- Allman Professional Consulting, Inc. -- www.allmanpc.com, 617-947-4263 -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:37 PM To: [EMAIL PROTECTED] Subject: Re: Code Snapshot Funny coincidence. I've just finished enabling SVG in the PS renderer in the redesign. I'll talk more in another mail. If possible it would be best if you downloaded the source using CVS. Then you're sure to have the latest stuff. The snapshots get generated once a day, only. Here, you'll find instructions for CVS access: http://xml.apache.org/cvs.html When you use CVS, you normally get the redesigned FOP. If you use the fop-0_20_2-maintain tag you'll get the maintenance branch code. I'd recommend you to subscribe to the fop-cvs mailing list, so you'll know when something's changed. On 30.01.2003 18:16:43 George Yi wrote: Hi, I just downloaded the snapshot package from apache. Is this the lastest development code that everyone makes changes against to? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]