Re: tables with margins and borders
Ralph, Yes, actually that was clear. I should have said, there isn't a _layout_ problem with borders, but I agree, there was/is a rendering one. -Karen Ralph LaChance wrote: > > At 06:53 PM 8/7/01 +0200, you wrote: > >Koen (and Ralph and others), > > > >There is a problem, but it's not a border-drawing problem. > > Karen, > > Sorry, I wasn't clear -- I'm suggesting there are ~two~ separate problems > here. The first is what you describe below. The second is: given > the fo such as it is, it renders differently for -print and -awt versus > -pdf. On both -awt and -print no border is drawn for the table cells. > The pdf renderer ~does~ draw the table borders. > > The awt/print problem is due to AWTRenderer attmpting to fill a rectangle > with either the width or height of zero. This happens when the border size > drops below a threshold (i.e., 500 millipts) This all stems from a patch > to AWTRender I supplied a few weeks ago in which, among other things, we > made AWTRenderer honor actual border sizes. > > (The original 0.19.0 AWTRenderer drew ~all~ borders 1 pixel thick, > regardless of border-size.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tables with margins and borders
At 06:53 PM 8/7/01 +0200, you wrote: >Koen (and Ralph and others), > >There is a problem, but it's not a border-drawing problem. Karen, Sorry, I wasn't clear -- I'm suggesting there are ~two~ separate problems here. The first is what you describe below. The second is: given the fo such as it is, it renders differently for -print and -awt versus -pdf. On both -awt and -print no border is drawn for the table cells. The pdf renderer ~does~ draw the table borders. The awt/print problem is due to AWTRenderer attmpting to fill a rectangle with either the width or height of zero. This happens when the border size drops below a threshold (i.e., 500 millipts) This all stems from a patch to AWTRender I supplied a few weeks ago in which, among other things, we made AWTRenderer honor actual border sizes. (The original 0.19.0 AWTRenderer drew ~all~ borders 1 pixel thick, regardless of border-size.) Does this make sense to you ? If so, I supplied a patch earlier today to fix it. >You have a left-margin specified as 2cm on a block which is containing >the paragraphs before the table and the table itself. This property is >inherited and is therefore used on both the fo:table and the fo:blocks >inside the fo:table-cell objects. > >What isn't normal is that the table itself should be indented by 2cm and >it isn't. But that in itself won't fix the cell text alignment, since >the margin (or start-indent which is the same thing) is being inherited >by all the content inside the table. So the cell content would still be >badly positioned. > >Assuming that FOP handled indent correctly on the table, you would want >to set it back to a smaller value, on table-body for example. > >In the meantime, there is an ugly workaround involving an empty first >column whose width is equal to the current indent and which only has >borders on the right side. > >As Arved has just suggested focusing on tables, this problem will be a >good place to start and I'll try to put it on the high priority list. ' Best, -Ralph LaChance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tables with margins and borders
Koen (and Ralph and others), There is a problem, but it's not a border-drawing problem. You have a left-margin specified as 2cm on a block which is containing the paragraphs before the table and the table itself. This property is inherited and is therefore used on both the fo:table and the fo:blocks inside the fo:table-cell objects. What isn't normal is that the table itself should be indented by 2cm and it isn't. But that in itself won't fix the cell text alignment, since the margin (or start-indent which is the same thing) is being inherited by all the content inside the table. So the cell content would still be badly positioned. Assuming that FOP handled indent correctly on the table, you would want to set it back to a smaller value, on table-body for example. In the meantime, there is an ugly workaround involving an empty first column whose width is equal to the current indent and which only has borders on the right side. As Arved has just suggested focusing on tables, this problem will be a good place to start and I'll try to put it on the high priority list. Regards, Karen [EMAIL PROTECTED] wrote: > > Hello, > Hello Karen, > > I tried it with the snapshot of the night before yesterday (due to the > firewall I cannot get into CVS directly). It was not rendered > correctly. > > I have included the document (doc.xml) and the stylesheet > (doc2pdf.xsl) that lead to docxalan.fo > > If rendered to awt few borders are rendered and those rendered are not > aligned with the table. > If rendered to pdf all borders ara rendered but all are not aligned > with the table. > > The version I'm using is from a file called > xml-fop_20010806101537.tar.gz (it is stating FOP 0.19.0-CVS at > startup) > > Kind regards, > > Koen. > > Please respond to [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tables with margins and borders
Hello Koen I may be able to help with ~part~ of this. The latest version of AWTRender fails to draw a border at all for your .fo file. However, the border re-appears if you increase the border-size to 1.0pt. This may be a (bad) side effect of changes we recently made to the awt render to respect border-size (previously it drew all borders 1 pixel thick regardless of the value of border-size.) My hunch is the thickness calculation is rounding down to zero. [ aside: We will investigate and supply a patch later today if appropriate. The awt renderer should probably render a border one pixel thick when the math rounds to zero. Any comments? ] As for the ~placement~ of the borders, others will need to comment on that. At first glance, it looks to me that the pdf and awt renderers both put the borders in the same wrong place. Which suggests the problem is not in the renderers themselves. One more comment, however, it looks like your table is buried 3 or 4 levels deep in fo:blocks. While that is probably legal, my own experience is that nesting fo:blocks too deeply can lead to spacing and placement problems. As a workaround, you might want to try embedding your table in a single level fo:block -- perhaps that would improve the border placement. ' Best, -Ralph LaChance At 08:19 AM 8/7/01 +0200, you wrote: >Hello, > >I tried it with the snapshot of the night before yesterday (due to the >firewall I cannot get into CVS directly). It was not rendered correctly. > >I have included the document (doc.xml) and the stylesheet (doc2pdf.xsl) >that lead to docxalan.fo > >If rendered to awt few borders are rendered and those rendered are not >aligned with the table. >If rendered to pdf all borders ara rendered but all are not aligned with >the table. > >The version I'm using is from a file called xml-fop_20010806101537.tar.gz >(it is stating FOP 0.19.0-CVS at startup) > >Kind regards, > >Koen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tables with margins and borders
Hello, Hello Karen, I tried it with the snapshot of the night before yesterday (due to the firewall I cannot get into CVS directly). It was not rendered correctly. I have included the document (doc.xml) and the stylesheet (doc2pdf.xsl) that lead to docxalan.fo If rendered to awt few borders are rendered and those rendered are not aligned with the table. If rendered to pdf all borders ara rendered but all are not aligned with the table. The version I'm using is from a file called xml-fop_20010806101537.tar.gz (it is stating FOP 0.19.0-CVS at startup) Kind regards, Koen. Please respond to [EMAIL PROTECTED] |---> | | | |---> >---| | | >---| |---> | To: | | |---> >---| | [EMAIL PROTECTED] | >---| |---> | cc: | | |---> >---| | (bcc: Koen HANDEKYN/BE/ALCATEL) | >---| |---> | | | |---> >---| | | >---| |---> | Subject: | | |---> >-------------------| | Re: tables with margins and borders | >---| [IMAGE] Hi Koen, There are some table-border fixes in both PDF and AWT in the latest CVS which probably fix this problem. Try using one of the recent source snapshots if you can't wait for the 0.20 release. Or you can send your .fo file and I'll see whether it still looks bad with the current version. Hope that helps, Karen Leas
Re: tables with margins and borders
Hi Koen, There are some table-border fixes in both PDF and AWT in the latest CVS which probably fix this problem. Try using one of the recent source snapshots if you can't wait for the 0.20 release. Or you can send your .fo file and I'll see whether it still looks bad with the current version. Hope that helps, Karen Lease [EMAIL PROTECTED] wrote: > Hello, > > I'm using version 0.19.0 from the distribution directory. It seems to have to the >problem both with -awt and -pdf. > I included a snapshot from the awt renderer below. > > Kind regards, > > Koen. > > --- > > Koen, > > Please indicate which version of FOP you are using > and which renderer (-awt, -pdf, -print etc) displays > this behavior. > > ' Best, > -Ralph LaChance > > At 11:24 AM 8/6/01 +0100, you wrote: > > >I'm having some issues with the rendering of table borders. When I ask to > >render a border around the table cell's and the table has a left margin of > >for example 2cm, than the text is shifted correctly 2 cm to the rigth but > >the borders appear disaligned > >with the text, ie 2cm to much to the left (I tend to conclude that the > >margins are not taken into account when rendering the cell borders). It > >looks like a 'bug' to me, as the same file is rendered correctly in the > >trial versions of the commericial tools > >availlable? > > >Name: pic07739.pcx >pic07739.pcxType: unspecified type (application/octet-stream) >Encoding: base64 > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tables with margins and borders
Hi Arved, Did you get a chance to look at the JPEG image I send you which increases the PDF file size? Please advise as I am not sure what I need to do to reduce the PDF file size. Thanks, Chetan Vig Arved Sandstrom wrote: > At 11:43 AM 8/6/01 -0400, Ralph LaChance wrote: > >fyi, the awt renderer changes are included in the latest > >snapshot and will presumably be in 0.20.0 > > Oh, they will be, no question about it. What's in CVS (or probably anything > that gets added in the next couple of days) will definitely be in there. > > Regards, > Arved > > Fairly Senior Software Type > e-plicity (http://www.e-plicity.com) > Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia > > - > 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: tables with margins and borders
At 11:43 AM 8/6/01 -0400, Ralph LaChance wrote: >fyi, the awt renderer changes are included in the latest >snapshot and will presumably be in 0.20.0 Oh, they will be, no question about it. What's in CVS (or probably anything that gets added in the next couple of days) will definitely be in there. Regards, Arved Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tables with margins and borders
At 12:44 PM 8/6/01 +0100, you wrote: >I'm using version 0.19.0 from the distribution directory. It seems to have >to the problem both with -awt and -pdf. >I included a snapshot from the awt renderer below. We fixed a few thing regarding border placement in the awt renderer (-awt, -print), although I'm not completely sure this covers what your seeing -- particularly since you report problems in PDF. (I believe everything we did simply fixed things that rendered differently in -awt and -print vs -pdf.) fyi, the awt renderer changes are included in the latest snapshot and will presumably be in 0.20.0 ' Best, -Ralph LaChance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tables with margins and borders
Koen, Please indicate which version of FOP you are using and which renderer (-awt, -pdf, -print etc) displays this behavior. ' Best, -Ralph LaChance At 11:24 AM 8/6/01 +0100, you wrote: >I'm having some issues with the rendering of table borders. When I ask to >render a border around the table cell's and the table has a left margin of >for example 2cm, than the text is shifted correctly 2 cm to the rigth but >the borders appear disaligned >with the text, ie 2cm to much to the left (I tend to conclude that the >margins are not taken into account when rendering the cell borders). It >looks like a 'bug' to me, as the same file is rendered correctly in the >trial versions of the commericial tools >availlable? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tables with margins and borders
Hello, I'm having some issues with the rendering of table borders. When I ask to render a border around the table cell's and the table has a left margin of for example 2cm, than the text is shifted correctly 2 cm to the rigth but the borders appear disaligned with the text, ie 2cm to much to the left (I tend to conclude that the margins are not taken into account when rendering the cell borders). It looks like a 'bug' to me, as the same file is rendered correctly in the trial versions of the commericial tools availlable? kind regards, Koen. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]