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]