Re: Re: [Schematics-users] Writing PDF to a stream?
Gordon Weakliem <[email protected]>
| Newsgroups | gmane.lisp.scheme.plt.schematics |
|---|---|
| Message-ID | <[email protected]> |
I suspected that it was done to satisfy someone's immediate need, which didn't coincide with mine. Contributions? Speaking as someone with 2 month's experience with Scheme, don't say you weren't warned! I've attached my modified pdf.ss and an additional file with an example - the same as ex1, but writing to current-output-port. I refactored the body of write-document into write-document-port, I ran the examples and they seem to have survived the change. -----Original Message from Bruce Butterfield <bab-lsrMmtCsshhWk0Htik3J/[email protected]>----- Uhhh, stupidity on my part? I ported that code a while back and it was mostly an exercise to see how to transform CLOS code into a more "functional" (read "non-OO") style. I think the changes would be minimal as Noel has pointed out but it would also be nice to refactor some of the cruft. Let me look at it and see what I can do. Also, any contributions are welcome, that's what Open Source is all about ;) Gordon Weakliem wrote: > I posted this to schematics-users, which seems to be pretty inactive. The original was: > > The examples for the PDF library all write to a file, though it seems like with-document should be able to write to an arbitrary stream. Is there a simple example of how to do that? > > I see where Noel is going with this (essentially rewrite write-document to take a port instead of a file name), but it looks like the definition has to go into pdf.ss itself, since write-document and with-document-to-port use functions that aren't exported from the pdf module. > ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Schematics-users mailing list Schematics-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/schematics-users
pdf.ss
(application/octet-stream, 11.9 KB) - not displayed
pdfex.scm
(application/octet-stream, 966 B) - not displayed