xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robyp7 ." <rob...@gmail.com>
Subject Re: how can override the start fo:page-number in xsl:fo with my number
Date Tue, 08 Sep 2015 11:05:48 GMT
yes it works!

Thanks|

2015-09-08 10:16 GMT+02:00 Pascal Sancho <psancho.asf@gmail.com>:

> Hi,
>
> the right attribute is "initial-page-number".
> And from what I can read in FOP 0.20.5 doc (see [1]), this was implemented.
> Not sure however if it worked perfectly, since FOP redesign (starting
> from v0.9x), 0.20.x remains unmaintained.
>
> [1]
> https://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-0_20_5/src/documentation/content/xdocs/compliance.xml
>
>
> 2015-09-08 9:49 GMT+02:00 Marc <Marc.Liste@free.fr>:
> > Hi,
> > You have an attribute start-page-number in the sequence element.
> > I don't know if it's ok in FOP 0.20.5
> > Marc
> > Le 07/09/2015 14:28, robyp7 . a écrit :
> >>
> >> Hi,
> >>
> >> i use an old fop lib version 0.20.5
> >> I have an xsl:fo with
> >>
> >> <fo:blocktext-align="end">
> >>
> >> _Page number :_<fo:page-number/>
> >>
> >> </fo:block>
> >> this is in the footer
> >>
> >> I need to create a PDF with a initial number > 1 and for ex. 10 or 11 or
> >> some other else..
> >>
> >> So the first page begin with 10, the secondo eith 11 and so..
> >>
> >> I need to pass this number as parameter from jsp web page to my
> >> bean/java classes that call the fop rendering
> >>
> >> I implement a CustomRender (it extend the class org
> >>
> >>
> <eclipse-javadoc:%E2%98%82=JFXIntegration/C:%5C/Users%5C/portoni%5C/.m2%5C/repository%5C/fop%5C/fop%5C/0.20.5%5C/fop-0.20.5.jar%3Corg>.apache
> >>
> >>
> <eclipse-javadoc:%E2%98%82=JFXIntegration/C:%5C/Users%5C/portoni%5C/.m2%5C/repository%5C/fop%5C/fop%5C/0.20.5%5C/fop-0.20.5.jar%3Corg.apache>.fop
> >>
> >>
> <eclipse-javadoc:%E2%98%82=JFXIntegration/C:%5C/Users%5C/portoni%5C/.m2%5C/repository%5C/fop%5C/fop%5C/0.20.5%5C/fop-0.20.5.jar%3Corg.apache.fop>.render
> >>
> >>
> <eclipse-javadoc:%E2%98%82=JFXIntegration/C:%5C/Users%5C/portoni%5C/.m2%5C/repository%5C/fop%5C/fop%5C/0.20.5%5C/fop-0.20.5.jar%3Corg.apache.fop.render>.Renderer)
> >> and i override tese two method:
> >>
> >> *public**void*render(Page page, OutputStream outputStream){
> >>
> >> *throws*IOException, FOPException {
> >>
> >>
> >> page.setNumber(pageCount);
> >>
> >> System.out.println("##@@## Rendering page " + page.getNumber());
> >>
> >> pageCount++;
> >>
> >> renderer.render(page, outputStream);
> >>
> >> }
> >>
> >>
> >> *public**void*renderPage(Page page){
> >>
> >> page.setNumber(pageCount);
> >>
> >> System.out.println("@@##@@ Rendering page " + page.getNumber());
> >>
> >> pageCount++;
> >>
> >> renderer.renderPage(page);
> >>
> >> }
> >>
> >>
> >> but page.setNumber(pageCount); doesn't seem to work!
> >>
> >> How can I do this work?
> >>
> >> Thanks in advice!
> >>
> >>
> >> Roberto
> >>
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> >
>
>
>
> --
> pascal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

Mime
View raw message