1.1 diff -r 5acb5b549729 -r 6e0551b59dba pdf_prim.c 1.2 --- a/pdf_prim.c Fri Feb 21 09:12:05 2003 +0000 1.3 +++ b/pdf_prim.c 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.c,v 1.3 2003/02/20 04:44:17 eric Exp $ 1.9 + * $Id: pdf_prim.c,v 1.4 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 @@ -24,6 +24,7 @@ 1.14 */ 1.15 1.16 1.17 +#include <stdarg.h> 1.18 #include <stdbool.h> 1.19 #include <stdint.h> 1.20 #include <stdio.h> 1.21 @@ -452,6 +453,18 @@ 1.22 } 1.23 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 + va_list ap; 1.30 + 1.31 + va_start (ap, fmt); 1.32 + vfprintf (pdf_file->f, fmt, ap); 1.33 + va_end (ap); 1.34 +} 1.35 + 1.36 + 1.37 void pdf_write_stream (pdf_file_handle pdf_file, struct pdf_obj *stream) 1.38 { 1.39 unsigned long begin_pos, end_pos;