1.1 --- a/pdf_prim.h Fri Feb 21 09:12:05 2003 +0000 1.2 +++ b/pdf_prim.h Fri Feb 21 09:25:47 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.2 2003/02/20 04:44:17 eric Exp $ 1.8 + * $Id: pdf_prim.h,v 1.3 2003/02/21 01:25:47 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,13 +95,18 @@ 1.13 pdf_stream_write_callback callback, 1.14 void *app_data); 1.15 1.16 -/* The callback should call pdf_stream_write_data to write the actual 1.17 - stream data. */ 1.18 +/* The callback should call pdf_stream_write_data or pdf_stream_printf 1.19 + to write the actual stream data. */ 1.20 void pdf_stream_write_data (pdf_file_handle pdf_file, 1.21 struct pdf_obj *stream, 1.22 char *data, 1.23 unsigned long len); 1.24 1.25 +void pdf_stream_printf (pdf_file_handle pdf_file, 1.26 + struct pdf_obj *stream, 1.27 + char *fmt, ...); 1.28 + 1.29 + 1.30 void pdf_stream_add_filter (struct pdf_obj *stream, 1.31 char *filter_name, 1.32 struct pdf_obj *decode_parms);