<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Can you give some more details about your SBCL setup? What version, what platform, etc...?<div><br class="webkit-block-placeholder"></div><div>Thanks,</div><div><br class="webkit-block-placeholder"></div><div>Cyrus</div><div><br><div><div>On Oct 16, 2007, at 1:31 PM, Cunningham, Jeff wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> I am posting this question to the list at Marc's suggestion. <br> If anyone knows how to configure cl-pdf to run under SBCL I'd sure appreciate some advice. <br> <br> Thanks. <br> --Jeff <br> <br> <br> Hi Jeff, <br> <br> Cunningham, Jeff wrote: <br> <blockquote type="cite">Hi Marc, <br> <br> I'm no doubt doing something really dumb, but I can't get your first <br> example to work in cl-pdf. <br> I am working with the latest copy and have all the dependencies <br> (latest copies). I'm running SBCL. I'm hoping you can tell me how to <br> get past this. <br> <br> Thanks. <br> --Jeff Cunningham <br> Seattle, Washington, USA <br> <br> Here's what I get: <br> <br> (asdf:oos 'asdf:load-op :cl-pdf) <br> (use-package :pdf) <br> <br> ;;; cl-pdf copyright 2002-2005 Marc Battyani see license.txt for <br> details of the BSD style license <br> ;;; You can reach me at <a class="moz-txt-link-abbreviated" href="mailto:marc.battyani@fractalconcept.com">marc.battyani@fractalconcept.com</a> or <br> <a class="moz-txt-link-abbreviated" href="mailto:marc@battyani.net">marc@battyani.net</a> <br> ;;; The homepage of cl-pdf is here: <br> <a class="moz-txt-link-freetext" href="http://www.fractalconcept.com/asp/html/cl-pdf.html">http://www.fractalconcept.com/asp/html/cl-pdf.html</a> <br> <br> (defun example1 (&optional (file #P"/tmp/ex1.pdf")) <br> (pdf:with-document () <br> (pdf:with-page () <br> (pdf:with-outline-level ("Example" (pdf:register-page-reference)) <br> (let ((helvetica (pdf:get-font "Helvetica"))) <br> (pdf:in-text-mode <br> (pdf:set-font helvetica 36.0) <br> (pdf:move-text 100 800) <br> (pdf:draw-text "cl-pdf: Example 1")) <br> (pdf:translate 230 500) <br> (loop repeat 150 <br> for i = 0.67 then (* i 1.045) <br> do (pdf:in-text-mode <br> (pdf:set-font helvetica i) <br> (pdf:set-rgb-fill (/ (random 255) 255.0)(/ (random 255) <br> 255.0)(/ (random 255) 255.0)) <br> (pdf:move-text (* i 3) 0) <br> (pdf:show-text "cl-typesetting")) <br> (pdf:rotate 13))))) <br> (pdf:write-document file))) <br> <br> (example1) <br> <br> #<SB-SYS:FD-STREAM for "file /tmp/ex1.pdf" {C463F41}> is not a binary <br> output stream. <br> [Condition of type SIMPLE-TYPE-ERROR] <br> <br> Restarts: <br> 0: [ABORT] Abort SLIME compilation. <br> 1: [ABORT] Return to SLIME's top level. <br> 2: [TERMINATE-THREAD] Terminate this thread (#<THREAD "worker" <br> {B7055F1}>) <br> <br> </blockquote> It's a configuration problem to use binary/text or bivalent streams in <br> SBCL. I don't use SBCL, so I can't help you much here, but several <br> cl-pdf/cl-typesetting users use it. So you should post your question in <br> the cl-pdf mailing list. <br> <br> Marc <br> <br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">cl-pdf-devel site list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:cl-pdf-devel@common-lisp.net">cl-pdf-devel@common-lisp.net</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://common-lisp.net/mailman/listinfo/cl-pdf-devel">http://common-lisp.net/mailman/listinfo/cl-pdf-devel</a></div> </blockquote></div><br></div></body></html>