1.1 --- a/pdf_prim.h Fri Feb 21 09:25:47 2003 +0000 1.2 +++ b/pdf_prim.h Fri Feb 21 10:49:11 2003 +0000 1.3 @@ -4,7 +4,7 @@ 1.4 * will be compressed using ITU-T T.6 (G4) fax encoding. 1.5 * 1.6 * PDF routines 1.7 - * $Id: pdf_prim.h,v 1.3 2003/02/21 01:25:47 eric Exp $ 1.8 + * $Id: pdf_prim.h,v 1.4 2003/02/21 02:49:11 eric Exp $ 1.9 * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com> 1.10 * 1.11 * This program is free software; you can redistribute it and/or modify 1.12 @@ -95,8 +95,19 @@ 1.13 pdf_stream_write_callback callback, 1.14 void *app_data); 1.15 1.16 -/* The callback should call pdf_stream_write_data or pdf_stream_printf 1.17 - to write the actual stream data. */ 1.18 +/* The callback should call pdf_stream_write_bits(), pdf_stream_write_data(), 1.19 + or pdf_stream_printf() to write the actual stream data. If 1.20 + pdf_stream_write_bits() is used, pdf_stream_flush_bits() should be 1.21 + called after all the bits are written. */ 1.22 + 1.23 +void pdf_stream_write_bits (pdf_file_handle pdf_file, 1.24 + struct pdf_obj *stream, 1.25 + uint32_t count, 1.26 + uint32_t bits); 1.27 + 1.28 +void pdf_stream_flush_bits (pdf_file_handle pdf_file, 1.29 + struct pdf_obj *stream); 1.30 + 1.31 void pdf_stream_write_data (pdf_file_handle pdf_file, 1.32 struct pdf_obj *stream, 1.33 char *data,