pdf_bookmark.c

changeset 79
4cd9d23d924a
parent 78
74b6b230f85d
child 125
e2ef1c2f9eca
     1.1 diff -r 74b6b230f85d -r 4cd9d23d924a pdf_bookmark.c
     1.2 --- a/pdf_bookmark.c	Wed Mar 05 20:44:33 2003 +0000
     1.3 +++ b/pdf_bookmark.c	Wed Mar 05 20:56:25 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_bookmark.c,v 1.4 2003/03/05 12:44:33 eric Exp $
     1.9 + * $Id: pdf_bookmark.c,v 1.5 2003/03/05 12:56:25 eric Exp $
    1.10   * Copyright 2003 Eric Smith <eric@brouhaha.com>
    1.11   *
    1.12   * This program is free software; you can redistribute it and/or modify
    1.13 @@ -38,6 +38,24 @@
    1.14  #include "pdf_private.h"
    1.15  
    1.16  
    1.17 +struct pdf_bookmark
    1.18 +{
    1.19 +  struct pdf_obj *dict;    /* indirect reference */
    1.20 +  struct pdf_obj *count;
    1.21 +  bool open;
    1.22 +
    1.23 +  struct pdf_bookmark *first;
    1.24 +  struct pdf_bookmark *last;
    1.25 +
    1.26 +  /* the following fields don't appear in the root */
    1.27 +  /* title and dest are in the dictionary but don't have
    1.28 +     explicit fields in the C structure */
    1.29 +  struct pdf_bookmark *parent;
    1.30 +  struct pdf_bookmark *prev;
    1.31 +  struct pdf_bookmark *next;
    1.32 +};
    1.33 +
    1.34 +
    1.35  static void pdf_bookmark_update_count (pdf_bookmark_handle entry)
    1.36  {
    1.37    while (entry)