- see footer for list info -<
Is that possible? I've taken a look at the iText docs and it requires Java
programming skills which I don't have. And that's assuming a CF installation
will allow you to access iText directly. Hopefully #totalpagecount# is on
the Scorpio "to do" list.

Thanks,
Gary.


On 7/27/06, Snake <[EMAIL PROTECTED]> wrote:

>- see footer for list info -<
There may be a way if you use iTEXT directly instead of using cfdocument.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary
Sent: 27 July 2006 10:23
To: Coldfusion Development
Subject: Re: [CF-Dev] Using cfdocument.totalpagecount as a variable

>- see footer for list info -<
It's just a piece of text that says {totalpagecount} - including the
braces.
ColdFusion doesn't see it as a variables at all. It's definately an
internal
var for the PDF engine.

Is there another way to detect or calculate the number of PDF pages
generated? I've Googled for an answer but no joy.

Thanks,
Gary


On 7/27/06, Snake <[EMAIL PROTECTED]> wrote:
>
> >- see footer for list info -<
> Try evaluating it
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Gary
> Sent: 26 July 2006 23:27
> To: Coldfusion Development
> Subject: Re: [CF-Dev] Using cfdocument.totalpagecount as a variable
>
> >- see footer for list info -<
> It errored telling me that x is not a number. x is assigned the string
> "{totalcount}". That's why I've concluded that {totalcount} is a
> variable exclusive to the internal PDF engine. Perhaps there's a
> java.variable.in.cf.somewhere that can access this information? How
> much effort would it have taken MMAdobe to expose this to cfml?
>
> On 7/26/06, Snake <[EMAIL PROTECTED]> wrote:
> >
> > >- see footer for list info -<
> > Do u get any result ?
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Gary
> > Sent: 26 July 2006 20:12
> > To: Coldfusion Development
> > Subject: Re: [CF-Dev] Using cfdocument.totalpagecount as a variable
> >
> > >- see footer for list info -<
> > Nice idea but sadly it doesn't work. It's as if CF treats
> > totalpagecount as a string - perhaps the PDF engine uses
> > *{totalpagecount}* as an internal variable. :-(
> >
> > Gary.
> >
> > On 7/26/06, Snake <[EMAIL PROTECTED]> wrote:
> > >
> > > >- see footer for list info -<
> > > How about this
> > >
> > > <cfset pagecount = 0>
> > > <cfdocument blah...>
> > > <cfdocumentItem type="footer">
> > > <cfsavecontent
> > > variable="x">#cfdocument.totalpagecount#</cfsavecontent>
> > > <cfset pagecount = pagecount + x>
> > > </cfdocumentitem>
> > > </cfdocument>
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Gary
> > > Sent: 26 July 2006 19:44
> > > To: Coldfusion Development
> > > Subject: [CF-Dev] Using cfdocument.totalpagecount as a variable
> > >
> > > >- see footer for list info -<
> > > I desperately need my code to be aware of how many PDF pages have
> > > been generated after a cfdocument tag. According to the CF docs
> > > cfdocument.totalpagecount is only available to output within
> > > cfdocumentItem tags. e.g. to display "page 1 of 5" in footers
> > > within the PDF.
> > >
> > > I've tried to force totalpagecount into a local or request
> > > variable so I can perform some logic on it. e.g. if there is more
> > > than 1 page then do XYZ.
> > >
> > > It's crazy that this information isn't made available to
> > > developers to use in their code. Does anyone have some sneaky
> > > ideas on how to capture
> > it?
> > >
> > > I've tried this:
> > > <cfdocument blah...>
> > > <cfdocumentItem type="footer">
> > > <cfset request.totalpagecount="#cfdocument.totalpagecount#">
> > > </cfdocumentitem>
> > > </cfdocument>
> > > Which does not work. Dumping request.totalpagecount literally
> > > displays
> > > *
> > > {totalpagecount}*
> > >
> > > Gary.
> > > _______________________________________________
> > >
> > > For details on ALL mailing lists and for joining or leaving lists,
> > > go to http://list.cfdeveloper.co.uk/mailman/listinfo
> > >
> > > --
> > > CFDeveloper Sponsors:-
> > > >- Hosting provided by www.cfmxhosting.co.uk -<
> > > >- Forum provided by www.fusetalk.com -<
> > > >- DHTML Menus provided by www.APYCOM.com -<
> > > >- Lists hosted by www.Gradwell.com -<
> > > >- CFdeveloper is run by Russ Michaels, feel free to volunteer
> > > >your help -<
> > >
> > >
> > > _______________________________________________
> > >
> > > For details on ALL mailing lists and for joining or leaving lists,
> > > go to http://list.cfdeveloper.co.uk/mailman/listinfo
> > >
> > > --
> > > CFDeveloper Sponsors:-
> > > >- Hosting provided by www.cfmxhosting.co.uk -<
> > > >- Forum provided by www.fusetalk.com -<
> > > >- DHTML Menus provided by www.APYCOM.com -<
> > > >- Lists hosted by www.Gradwell.com -<
> > > >- CFdeveloper is run by Russ Michaels, feel free to volunteer
> > > >your help
> > > -<
> > >
> > _______________________________________________
> >
> > For details on ALL mailing lists and for joining or leaving lists,
> > go to http://list.cfdeveloper.co.uk/mailman/listinfo
> >
> > --
> > CFDeveloper Sponsors:-
> > >- Hosting provided by www.cfmxhosting.co.uk -<
> > >- Forum provided by www.fusetalk.com -<
> > >- DHTML Menus provided by www.APYCOM.com -<
> > >- Lists hosted by www.Gradwell.com -<
> > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your
> > >help -<
> >
> >
> > _______________________________________________
> >
> > For details on ALL mailing lists and for joining or leaving lists,
> > go to http://list.cfdeveloper.co.uk/mailman/listinfo
> >
> > --
> > CFDeveloper Sponsors:-
> > >- Hosting provided by www.cfmxhosting.co.uk -<
> > >- Forum provided by www.fusetalk.com -<
> > >- DHTML Menus provided by www.APYCOM.com -<
> > >- Lists hosted by www.Gradwell.com -<
> > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your
> > >help
> > -<
> >
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go
> to http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your
> >help -<
>
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go
> to http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your
> >help
> -<
>
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
>-<


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
-<

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -<
- Forum provided by www.fusetalk.com -<
- DHTML Menus provided by www.APYCOM.com -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to