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