1.1 diff -r 6e306105c128 -r 12bc5088172e pdf_private.h 1.2 --- a/pdf_private.h Wed Mar 05 01:58:31 2003 +0000 1.3 +++ b/pdf_private.h Wed Mar 05 01:58:36 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_private.h,v 1.2 2003/02/20 04:44:17 eric Exp $ 1.9 + * $Id: pdf_private.h,v 1.3 2003/03/04 17:58:36 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 @@ -45,14 +45,32 @@ 1.14 }; 1.15 1.16 1.17 +struct pdf_bookmark 1.18 +{ 1.19 + struct pdf_obj *dict; /* indirect reference */ 1.20 + bool open; 1.21 + 1.22 + struct pdf_bookmark *first; 1.23 + struct pdf_bookmark *last; 1.24 + 1.25 + /* the following fields don't appear in the root */ 1.26 + /* title and dest are in the dictionary but don't have 1.27 + explicit fields in the C structure */ 1.28 + struct pdf_bookmark *parent; 1.29 + struct pdf_bookmark *prev; 1.30 + struct pdf_bookmark *next; 1.31 +}; 1.32 + 1.33 + 1.34 struct pdf_file 1.35 { 1.36 - FILE *f; 1.37 - struct pdf_obj *first_ind_obj; 1.38 - struct pdf_obj *last_ind_obj; 1.39 - long int xref_offset; 1.40 - struct pdf_obj *catalog; 1.41 - struct pdf_obj *info; 1.42 - struct pdf_pages *root; 1.43 - struct pdf_obj *trailer_dict; 1.44 + FILE *f; 1.45 + struct pdf_obj *first_ind_obj; 1.46 + struct pdf_obj *last_ind_obj; 1.47 + long int xref_offset; 1.48 + struct pdf_obj *catalog; 1.49 + struct pdf_obj *info; 1.50 + struct pdf_pages *root; 1.51 + struct pdf_bookmark *outline_root; 1.52 + struct pdf_obj *trailer_dict; 1.53 };