For the page count, put a marker on the last page and get the page number for the marker.
The following is from the FOP FAQ (distributed with FOP)



Total Document Pages

It is frequently desirable to know the total number of pages in a document and to use that number within the document. For example, you might wish to show the page number on the first page as being "page 1 of 12". To accomplish this, place an empty block with an id at the end of the flow:

<fo:flow ...>
   ...
 <fo:block id="last-page"/>
</fo:flow>

Get the number of the last page as follows:

<fo:page-number-citation ref-id="last-page"/>

This does not work in certain situations: multiple page sequences, an initial page number other than 1, or forcing a certain page count, thereby producing blank pages at the end.

Warning
There is no reliable way to get the real total page count with FO mechanisms. You can only get /page numbers/.


Rymasz Jacky wrote:

i/use the tag <fo:external-graphic/> see: http://www.w3.org/TR/xsl/slice6.html#fo_external-graphic and http://xml.apache.org/fop/fo.html#external-resources
ii/ here is FOP answer to your question: http://xml.apache.org/fop/fo.html#fo-total-pages


Jack
------------------------------------------------------------------------
*De :* Otavio [mailto:[EMAIL PROTECTED]
*Envoy� :* mardi 5 avril 2005 15:22
*� :* [email protected]
*Objet :* Trouble with FOP

Hi,
 I�m new with FOP... I have some question, that not found it�s
answers on internet:

i) How I set an image on my report ??? that is, not a static image, I want pass the a image to report. How I do that ?

ii) How I set the page count to my report ??? I�m try many things, but not have sucess in none.

I�m doing tests both FOP and Jasper, but my preference, is FOP ... but I�m have this trouble described above.

Thanks !
 OBG



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to