pdf_private.h

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