You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Clute, Andrew" <AC...@iccohio.com> on 2001/10/04 18:51:38 UTC
How can I dynmaically use page-number?
I am trying to place a unique barcode on every single page that is rendered.
Right now my code is hard-coded to the barcode generator:
<code>
<fo:external-graphic height="1.2in" width=".35in"
src="http://localhost:7001/barcode?code=0401°ree=270&caption=t"/>
</code>
Which is telling the barcode server to return a barcode for page 1 of 4.
Ideally, I would like to do something like this:
<code>
<fo:external-graphic height="1.2in" width=".35in"
src="http://localhost:7001/barcode?code=04<fo:page-number/>&degree=270&a
mp;caption=t"/>
</code>
Which, of course is not valid XML. Anyone have insight on how I might go
about accomplishing this?
Thanks
-andrew
Re: How can I dynmaically use page-number?
Posted by Keiron Liddle <ke...@aftexsw.com>.
I think the best way to handle this would be with an extension.
An external graphic does not know what page it is on and the page number
cannot be resolved until after the image is loaded.
The website has some info about creating extensions.
On Thu, 04 Oct 2001 18:51:38 "Clute, Andrew" wrote:
> I am trying to place a unique barcode on every single page that is
> rendered.
> Right now my code is hard-coded to the barcode generator:
>
> <code>
> <fo:external-graphic height="1.2in" width=".35in"
> src="http://localhost:7001/barcode?code=0401°ree=270&caption=t"/>
> </code>
>
> Which is telling the barcode server to return a barcode for page 1 of 4.
>
> Ideally, I would like to do something like this:
>
> <code>
> <fo:external-graphic height="1.2in" width=".35in"
> src="http://localhost:7001/barcode?code=04<fo:page-number/>&degree=270&a
> mp;caption=t"/>
> </code>
>
> Which, of course is not valid XML. Anyone have insight on how I might go
> about accomplishing this?
>
> Thanks
>
> -andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org