Features that isn't implemented

Apr 20, 2009 at 10:36 AM
Edited Apr 20, 2009 at 10:38 AM
Hi.
Thanks for a great product.
I've noticed a couple of conversions that havent been implemented if I understand it correctly.

1. I tried to keep a block on the same page, using  <fo:block keep-together.within-page="always"> . It seems like fo.net ignores this while the apache renderer behaves like it should.
  I added a block with a couple of rows and then put plenty of  rows above it to see if the whole block would be pushed to the next page but it didn't. It was cut off when the page was full and continued on the next page. In apache, the whole block was moved to the next page if it didn't fit, which is the correct behaviour if i understand it correctly.

2. if a table cell contains a long word without spaces, the word ignore the cell length and is continuing into the cell to the right. I have tried a couple of properties that don't work, such as overflow=hidden and a clip property. This feature work in apache.

Is this something that can be fixed in a future release or if I got something wrong, could be explained to me.
Coordinator
Jun 8, 2009 at 5:23 PM

Hi

It could be that this was not implemented in the version of FOP that FO.NET was ported from.  Whilst I am not adding any new features to FO.NET myself - if you send in a patch then I will try to include it in a future release.

Cheers

Mark

Jun 22, 2009 at 9:50 PM

How about background-image on block-container ?

I am trying to make layers of images, but I can't seem to get it to work, eg;

 

 

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<fo:layout-master-set>
		<fo:simple-page-master master-name="simple" page-width="210mm" page-height="297mm" margin-top="10mm" margin-bottom="10mm" margin-left="10mm" margin-right="10mm">
			<fo:region-body background-image="baggrund.png"/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="simple">
		<fo:flow flow-name="xsl-region-body" font-family="Verdana">
			<fo:block-container absolute-position="absolute" top="8cm" left="3cm" width="7cm" height="8cm" background-image="sample.png">
				<fo:block/>
			</fo:block-container>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

I get no errors or warnings, but for some reason the sample.png does not show in the final PDF

 

 

Jan 30, 2010 at 12:02 AM

For your keep-together issue, you can use the fact that in FO.NET keep-together works on table-column.

e.g.

<fo:table width=100%>
   <fo:table-column/>
   <fo:table-body>
      <fo:table-row keep-together="always">
         <fo:table-cell>
            Put things you want kept together here!
         </fo:table-cell>
      </fo:table-row>
   </fo:table-body>
</fo:table>

See this:

using blind tables for keep-together

Apr 20, 2010 at 8:25 AM
Edited Apr 20, 2010 at 8:26 AM
Hi, I also would like to know if reference-orientation is implemented. I'd like to use it to simulate the landscape and portrait formats. Here is a sample
<?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="page" 
   page-height="11in" page-width="8.5in"
   reference-orientation="90">
   <fo:region-body margin="1in" background-color="yellow" 
    border="solid thick orange"/>
   <fo:region-before extent="1in" background-color="lightblue" 
    border="solid thick blue"/>
   <fo:region-after extent="1in" background-color="lightblue" 
    border="solid thick blue"/>
   <fo:region-start extent="1in" background-color="lightgreen" 
    border="solid thick green"/>
   <fo:region-end extent="1in" background-color="lightgreen" 
    border="solid thick green"/>
  </fo:simple-page-master>
 </fo:layout-master-set>
 <fo:page-sequence master-reference="page" font-size="24pt" 
  font-weight="bold" text-align="center">
 ---- Code Omitted ---- 
</fo:page-sequence>
</fo:root>