From ch-lisp at bobobeach.com Mon Sep 29 00:58:20 2008 From: ch-lisp at bobobeach.com (Cyrus Harmon) Date: Sun, 28 Sep 2008 17:58:20 -0700 Subject: [cl-pdf-devel] make-image vs. make-jpeg-image in cl-typesetting Message-ID: <8CAA8030-F652-4320-83C8-6F028F38FC8F@bobobeach.com> In graphics.lisp/stroke there's a call to pdf:make-jpeg-image that could just as easily (and better yet) be call to pdf::make-image, which unfortunately isn't exported. This would allow me to embed PNGs in my pdfs. Any chance of seeing this changed to make-image and exporting make-image from cl-pdf? thanks, Cyrus From pinterface at gmail.com Mon Sep 29 08:05:13 2008 From: pinterface at gmail.com (Pixel // pinterface) Date: Mon, 29 Sep 2008 08:05:13 -0000 Subject: [cl-pdf-devel] [bug?] cl-pdf tries to read past end-of-file on some jpegs Message-ID: <2a1501c9220a$1baa4210$3100a8c0@trinity> Greetings! I was having trouble with cl-pdf trying to set file-position past the end of the file on certain jpegs, such as those created by Photoshop. I think the attached patch is the right fix (it works for me), but maybe somebody who knows something about the JPEG format would like to make sure. Also included is a little s/#\Nul/#\Null/ because clisp requires both #\Ls. (Though maybe there's an implementation which only works with one #\L?) -------------- next part -------------- A non-text attachment was scrubbed... Name: cl-pdf.patch Type: application/octet-stream Size: 1437 bytes Desc: not available URL: