chickadee » pdf » build-pdf-stream

(build-pdf-stream CONTENT [EXTRA] [FORCE-UNCOMPRESSED?])procedure

Returns a PDF stream object holding CONTENT: either a string, whose characters (each with a code from 0 to 255) are written as one byte each, or a bytevector, written exactly as it is. Use a bytevector for binary data such as font files or ICC profiles. EXTRA is an alist of additional dictionary entries for the stream. If FORCE-UNCOMPRESSED? is true, the stream is never compressed, regardless of DOC's compression setting.