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