[cl-pdf-devel] cl-pdf repository update

tom at rakegroup.com tom at rakegroup.com
Fri Apr 8 23:43:20 UTC 2005


These fixes work on clisp, I believe they will work on SBCL as well but I need
to go to work to test that again! Without the color-space fix all verions of
example3 should produce an unreadable pdf file!

Once patched I can generate ex1.pdf to ex8.pdf and read them in acrobat.

Here is a svn diff for my clisp fixes

Index: pdf.lisp
===================================================================
--- pdf.lisp	(revision 89)
+++ pdf.lisp	(working copy)
@@ -350,6 +350,8 @@
 				       &allow-other-keys)
  ;;; Args: color-space - can be an array!
   (enforce-/ filter) ; color-space)
+  (if (stringp color-space)
+      (enforce-/ color-space))
   (setf (content image)
 	(make-instance 'pdf-stream
 	       :no-compression no-compression
Index: salza/deflate-stream-interface.lisp
===================================================================
--- salza/deflate-stream-interface.lisp	(revision 89)
+++ salza/deflate-stream-interface.lisp	(working copy)
@@ -74,7 +74,7 @@
   #+(and allegro (not octet-characters))
   (excl:string-to-octets string :start start :end end :null-terminate nil)
   #+(and clisp (not octet-characters))
-  (ext:convert-string-to-bytes string charset:ascii :start start :end end)
+  (ext:convert-string-to-bytes string charset:iso-8859-1 :start start :end end)
   #+(or octet-characters lispworks)
   (let* ((length (- end start))
          (result (make-array length :element-type 'octet)))

I use the following to compile in clisp because is assumes we are in ASCII which
is only 7 bit! We need iso-8859-1 so we tell clisp that before the compile.
Could this go in the asd file???

;; turn off WARNINGS for math stuff.

#+clisp (setf *warn-on-floating-point-contagion* nil)

;;In CLISP default encoding is ASCII 7bit cl-pdf is ISO-8859-1 encoding
#+clisp (setf *default-file-encoding*  (ext:make-encoding :charset
charset:iso-8859-1 :line-terminator :dos))
(asdf:operate 'asdf:load-op :cl-pdf)
(load "/cygdrive/c/Documents and Settings/twr/My
Documents/lisp/cl-pdf-r89/examples/examples.lisp")


-tom rake

Quoting Marc Battyani <marc.battyani at fractalconcept.com>:

> Sorry, 2 files were missing in Salza. :(
>
> Corrected now in Rev 89
>
> Marc
>
> > I've commited the latest modifications to the cl-pdf repository.
> >
> > Rev 88:
> > Native integration of salza 0.7.1 for the content-streams compression.
> Salza
> > is Zach Beane's zlib in Lisp (No more FFI problems ;-) and is now the
> > default compression for cl-pdf. It is even slightly faster than using zlib
> > through FFI. (the other compressions are still there for some time (look
> at
> > cl-pdf.asd if you want to use them)
> >
> > Refactoring of charts. Added pre and post draw hooks for plot-xy (to draw
> a
> > background etc.).
> >
> > Removed cl-pdf.system as all the other systems cl-pdf depends on have no
> > .system defined. (I will put it back if somebody wants to add and maintain
> > them)
> >
> > The full repository is here:
> > http://www.fractalconcept.com:8000/public/open-source/
> > (It's a subversion 1.1 repository.)
> >
> > The projects repositories are:
> > http://www.fractalconcept.com:8000/public/open-source/cl-pdf/
> > http://www.fractalconcept.com:8000/public/open-source/cl-typesetting/
> > http://www.fractalconcept.com:8000/public/open-source/mod_lisp/
> >
> > There are also tarballs available
> > http://www.fractalconcept.com/download/cl-pdf-current.tgz
> > http://www.fractalconcept.com/download/cl-typesetting-current.tgz
> >
> > BTW the (somewhat outdated) home pages for these projects are here:
> > http://www.fractalconcept.com/asp/html/cl-pdf.html
> > http://www.fractalconcept.com/asp/html/cl-typesetting.html
> > http://www.fractalconcept.com/asp/html/mod_lisp.html
> >
> > Marc
> >
> >
> > _______________________________________________
> > cl-pdf-devel site list
> > cl-pdf-devel at common-lisp.net
> > http://common-lisp.net/mailman/listinfo/cl-pdf-devel
> >
>
>
> _______________________________________________
> cl-pdf-devel site list
> cl-pdf-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/cl-pdf-devel
>






More information about the cl-pdf-devel mailing list