pdf.c

changeset 67
7add7411c1c2
parent 62
9bd354b83e16
child 75
29d7cbc7c251
     1.1 diff -r 6e0551b59dba -r 7add7411c1c2 pdf.c
     1.2 --- a/pdf.c	Fri Feb 21 09:25:47 2003 +0000
     1.3 +++ b/pdf.c	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.c,v 1.3 2003/02/20 04:44:17 eric Exp $
     1.9 + * $Id: pdf.c,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 @@ -53,7 +53,7 @@
    1.14  
    1.15  struct pdf_pages *pdf_new_pages (pdf_file_handle pdf_file)
    1.16  {
    1.17 -  struct pdf_pages *pages = pdf_calloc (sizeof (struct pdf_pages));
    1.18 +  struct pdf_pages *pages = pdf_calloc (1, sizeof (struct pdf_pages));
    1.19    pages->kids = pdf_new_ind_ref (pdf_file, pdf_new_obj (PT_ARRAY));
    1.20    pages->count = pdf_new_integer (0);
    1.21    pages->pages_dict = pdf_new_ind_ref (pdf_file, pdf_new_obj (PT_DICTIONARY));
    1.22 @@ -68,7 +68,7 @@
    1.23  {
    1.24    pdf_file_handle pdf_file;
    1.25  
    1.26 -  pdf_file = pdf_calloc (sizeof (struct pdf_file));
    1.27 +  pdf_file = pdf_calloc (1, sizeof (struct pdf_file));
    1.28  
    1.29    pdf_file->f = fopen (filename, "wb");
    1.30    if (! pdf_file->f)
    1.31 @@ -154,7 +154,7 @@
    1.32  			      double width,
    1.33  			      double height)
    1.34  {
    1.35 -  pdf_page_handle page = pdf_calloc (sizeof (struct pdf_page));
    1.36 +  pdf_page_handle page = pdf_calloc (1, sizeof (struct pdf_page));
    1.37  
    1.38    page->pdf_file = pdf_file;
    1.39