[cl-pdf-devel] Embedding several PDF files in one document

Klaus Weidner kw at w-m-p.com
Fri Apr 23 16:54:41 UTC 2004


On Fri, Apr 23, 2004 at 06:03:22PM +0200, Marc Battyani wrote:
> "Arthur Lemmens" <alemmens at xs4all.nl> wrote:
> > Now, I think you can't just parse the stream by reading lines
> > until you see the "endstream" keyword. After all, a line starting
> > with "endstream" could be just a part of the stream contents. So
> > you have to use the length that's specified in the dictionary
> > that's in front of the stream. But the length can be specified
> > by an indirect object reference; to resolve that reference you
> > may need an object that's located after the stream contents.
> 
> Yes, you need all that but it's not too difficult. (my parser has less than
> 300 lines IIRC)

I can confirm that this part is easy - my code uses delayed evaluation to
make access to indirect objects completely transparent to the functions
using them.

-Klaus




More information about the cl-pdf-devel mailing list