[cl-pdf-devel] Nesting function calls

Marc Battyani marc.battyani at fractalconcept.com
Tue Jan 17 21:55:43 UTC 2006


"Jonathon McKitrick" <jcm at FreeBSD-uk.eu.org> wrote:

> if I want to build a complex page and call several functions to create the
> pages, how do I make sure each call has the correct context?
> 
> Is it enough just to wrap each function in with-document or with-page?  That
> doesn't seem like it would work.

Well, with-page and with document are macros not functions.

You have to use
(with-document
    (with-page...)
    (with-page...)
    (with-page...)
...)

The with-page can be in some function though

Marc




More information about the cl-pdf-devel mailing list