[cl-pdf-devel] patch, pdf templates

Marc Battyani marc.battyani at fractalconcept.com
Sun Oct 23 20:36:54 UTC 2005


"Tim Daly Jr." <tim at tenkan.org> wrote:
>
> Hi everybody,
>
> I'd like to contribute a small patch, and some code for creating
> "templates" from pdf pages.

Good idea!

> The patch mostly changes pdf-parser.lisp.  It adds location
> information to a couple of error messages, a couple of comments, names
> a constant, and fixes a couple of small parsing bugs.  There is one
> change in pdf.lisp -- when printing numbers, we have to make sure that
> they are printed in a form that's legal PDF syntax.

OK

> The template code allows you to create a "Form XObject" from a PDF
> page which can then be drawn onto new PDF pages.  The file stands
> alone, but it might be nicer to integrate it into the cl-pdf system
> and package definitions.

This is great. It was on my to-do list, so I'm glad you did it before me ;-)
I will look at this.

> The source itself can be converted into a PDF using pbook.el, which
> might be a nicer way to read it:
>
>   http://tenkan.org/~tim/pdf-template.pdf
>
> This is an example output file, created with
> (pdf:test-template "/tmp/pdf-template.pdf" 0 "/tmp/example.pdf"):
>
>   http://tenkan.org/~tim/example.pdf
>
> Thanks for cl-pdf.  It's beautiful code, and a lot of fun to work
> with! :)

You're welcome! Thanks for your contribution. ;-)

Marc




More information about the cl-pdf-devel mailing list