1.1 --- a/tumble.c Fri Mar 14 08:56:38 2003 +0000 1.2 +++ b/tumble.c Fri Mar 14 08:57:40 2003 +0000 1.3 @@ -2,7 +2,7 @@ 1.4 * tumble: build a PDF file from image files 1.5 * 1.6 * Main program 1.7 - * $Id: tumble.c,v 1.34 2003/03/14 00:24:37 eric Exp $ 1.8 + * $Id: tumble.c,v 1.35 2003/03/14 00:57:40 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 @@ -159,7 +159,7 @@ 1.13 for (o = output_files; o; o = n) 1.14 { 1.15 n = o->next; 1.16 - pdf_close (o->pdf); 1.17 + pdf_close (o->pdf, PDF_PAGE_MODE_USE_OUTLINES); 1.18 free (o->name); 1.19 free (o); 1.20 } 1.21 @@ -196,9 +196,7 @@ 1.22 return (0); 1.23 } 1.24 1.25 - o->pdf = pdf_create (name, (attributes->has_bookmarks ? 1.26 - PDF_PAGE_MODE_USE_OUTLINES : 1.27 - PDF_PAGE_MODE_USE_NONE)); 1.28 + o->pdf = pdf_create (name); 1.29 if (! o->pdf) 1.30 { 1.31 fprintf (stderr, "can't open output file '%s'\n", name); 1.32 @@ -606,8 +604,6 @@ 1.33 memset (& input_attributes, 0, sizeof (input_attributes)); 1.34 memset (& output_attributes, 0, sizeof (output_attributes)); 1.35 1.36 - output_attributes.has_bookmarks = (bookmark_fmt != NULL); 1.37 - 1.38 if (! open_pdf_output_file (out_fn, & output_attributes)) 1.39 fatal (3, "error opening output file \"%s\"\n", out_fn); 1.40 for (i = 0; i < inf_count; i++)