From: Gordon W. <gwe...@od...> - 2003-12-15 18:41:57
|
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. -----Original Message from Bruce Butterfield <ba...@en...>----- I must have missed this thread - what was the original post? Noel Welsh wrote: > In the abscence of scm-pdf experts, you've got a gumby > like me responding. > > I'm not aware of any procedure but it is easy enough > to hack with-document to take an arbitrary port: > > (define write-document > (lambda (port) > (*output* port) > ...)) > > I'd also get rid of the last line that closes the > port. It' a bit rude to close a port you've been > passed. > > Noel > > ===== > Email: noelwelsh <at> yahoo <dot> com > Jabber: noelw <at> jabber <dot> org > > __________________________________ > Do you Yahoo!? > New Yahoo! Photos - easier uploading and sharing. > http://photos.yahoo.com/ > > > ------------------------------------------------------- > 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-development mailing list > Sch...@li... > https://lists.sourceforge.net/lists/listinfo/schematics-development ------------------------------------------------------- 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-development mailing list Sch...@li... https://lists.sourceforge.net/lists/listinfo/schematics-development |