pdf_prim.c

changeset 66
6e0551b59dba
parent 62
9bd354b83e16
child 67
7add7411c1c2
     1.1 --- a/pdf_prim.c	Fri Feb 21 09:12:05 2003 +0000
     1.2 +++ b/pdf_prim.c	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.c,v 1.3 2003/02/20 04:44:17 eric Exp $
     1.8 + * $Id: pdf_prim.c,v 1.4 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 @@ -24,6 +24,7 @@
    1.13   */
    1.14  
    1.15  
    1.16 +#include <stdarg.h>
    1.17  #include <stdbool.h>
    1.18  #include <stdint.h>
    1.19  #include <stdio.h>
    1.20 @@ -452,6 +453,18 @@
    1.21  }
    1.22  
    1.23  
    1.24 +void pdf_stream_printf (pdf_file_handle pdf_file,
    1.25 +			struct pdf_obj *stream,
    1.26 +			char *fmt, ...)
    1.27 +{
    1.28 +  va_list ap;
    1.29 +
    1.30 +  va_start (ap, fmt);
    1.31 +  vfprintf (pdf_file->f, fmt, ap);
    1.32 +  va_end (ap);
    1.33 +}
    1.34 +
    1.35 +
    1.36  void pdf_write_stream (pdf_file_handle pdf_file, struct pdf_obj *stream)
    1.37  {
    1.38    unsigned long begin_pos, end_pos;