[cl-pdf-devel] Concatenating PDF files

Marc Battyani marc.battyani at fractalconcept.com
Mon Nov 14 22:12:56 UTC 2005


Arthur Lemmens <alemmens at xs4all.nl> wrote:

> Marc Battyani wrote:
>
> > Tim Daly Jr has sent the code for the transformation of pdf pages into
> > XObject, which can be printed on a page like any graphical element.
(It's in
> > the current cl-pdf version, look at pdf-template.lisp) So you just have
to
> > write the pages and then draw the new page numbers above the existing
ones.
>
> That's more or less what I told Edi (without the technical details ;-).
> But doesn't this have the problem that you have to know the position
> of the page numbers on the page?  In other words, this is not a general
> solution but would only work for documents where you figure out the page
> number position by looking at the document (with your eyes, not with the
> pdf parser), right?

Yes. In the tool mentionned by Edi, you give the x,y, font, font size for
the new number on the command line.

The next thing to do would be to parse the content of the content-streams to
modify them. But even simple text can be ouput in separated commands (one
for each letter or letter group). And then there is the encoding etc.

> >> PS: Marc, Arthur is not in contributors.txt - I think he provided the
> >>    parser, didn't he?
> >
> > Oops, thanks for pointing this. I'm very sorry Arthur :-(
>
> No problem Marc.  I thought you gave me special treatment by mentioning
> me in the file itself instead of in contributors.txt like everybody else
;-)

No, when people send me some new functionality I credit them in the
file -and- in the contributors file. When I don't forgot to do it that is...
;-) When it's some scattered code then only in the contributors file.

Marc





More information about the cl-pdf-devel mailing list