From lispmr at gmail.com Thu Nov 5 21:41:33 2009 From: lispmr at gmail.com (Harrison Maseko) Date: Thu, 5 Nov 2009 23:41:33 +0200 Subject: [cl-typesetting-devel] error when writing file Message-ID: <000801ca5e60$d1e0ea50$75a2bef0$@com> Dear list, I was trying cl-typesetting, example 1 of business card. After calling the function like (business-card1 #P"D:/home/src/phcard1.pdf") I get the error below: # is not a binary output stream. [Condition of type SIMPLE-TYPE-ERROR] 0: [DEFAULT-DEBUGGER] Use default debugger. 1: [ABORT] Return to SLIME's top level. 2: [CLOSE-CONNECTION] Close SLIME connection 3: [ABORT] Exit debugger, returning to top level. What am I doing wrong? I was running it on WinXP + SBCL under Cusp. hm -------------- next part -------------- An HTML attachment was scrubbed... URL: From attila.lendvai at gmail.com Fri Nov 6 09:50:07 2009 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Fri, 6 Nov 2009 09:50:07 +0000 Subject: [cl-typesetting-devel] error when writing file In-Reply-To: <000801ca5e60$d1e0ea50$75a2bef0$@com> References: <000801ca5e60$d1e0ea50$75a2bef0$@com> Message-ID: > # is not > a binary output stream. cl-pdf needs a bivalent stream. open your output stream with :element-type :default, or without calling :element-type (note: using with-open-file might hinder this, i don't really remember but there are some headaches somewhere related to this) -- attila