1.1 diff -r 7b5558607c49 -r ba64dfca82e9 pdf.c 1.2 --- a/pdf.c Thu Mar 13 08:00:21 2003 +0000 1.3 +++ b/pdf.c Thu Mar 13 08:03: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.8 2003/03/12 22:56:57 eric Exp $ 1.9 + * $Id: pdf.c,v 1.9 2003/03/13 00:03: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 @@ -55,7 +55,11 @@ 1.14 struct pdf_pages *pdf_new_pages (pdf_file_handle pdf_file) 1.15 { 1.16 struct pdf_pages *pages = pdf_calloc (1, sizeof (struct pdf_pages)); 1.17 - pages->kids = pdf_new_ind_ref (pdf_file, pdf_new_obj (PT_ARRAY)); 1.18 + 1.19 + pages->kids = pdf_new_obj (PT_ARRAY); 1.20 + /* The PDF 1.0 spec doesn't say that kids can't be an indirect object, 1.21 + but Acrobat 4.0 fails to optimize files if it is. */ 1.22 + 1.23 pages->count = pdf_new_integer (0); 1.24 pages->pages_dict = pdf_new_ind_ref (pdf_file, pdf_new_obj (PT_DICTIONARY)); 1.25 pdf_set_dict_entry (pages->pages_dict, "Type", pdf_new_name ("Pages")); 1.26 @@ -98,7 +102,7 @@ 1.27 pdf_new_name (page_mode_string)); 1.28 1.29 pdf_file->info = pdf_new_ind_ref (pdf_file, pdf_new_obj (PT_DICTIONARY)); 1.30 - pdf_set_info (pdf_file, "Producer", "t2p by Eric Smith <eric@brouhaha.com>"); 1.31 + pdf_set_info (pdf_file, "Producer", "tumble by Eric Smith <eric@brouhaha.com>"); 1.32 1.33 pdf_file->trailer_dict = pdf_new_obj (PT_DICTIONARY); 1.34 /* Size key will be added later */