[cl-typesetting-devel] Re: [cl-pdf-devel] Can't add link in cl-typesetting

Marc Battyani marc.battyani at fractalconcept.com
Fri Jan 19 21:14:14 UTC 2007


"Jonathon McKitrick" <jcm at FreeBSD-uk.eu.org> wrote:
>
> Here's a snippet that generates the error.

OK I tried it and from looking at the error, the problem is that you call a 
cl-pdf function during the text compilation but the text compilation is like 
a macro in Common Lisp, it is run at a macro-expansion time before the code 
is executed. So your add-link is run during the text compilation but that 
not when you generate the pdf, it's too early and not inside a pdf 
with-page. So here you have to use a user-drawn box or make your own kind of 
box in which you can call your function. BTW I think that add-link works 
with the page coordonates not with the scaled/translated ones so maybe it's 
not so simple.

Marc





More information about the cl-typesetting-devel mailing list