From 65dd4e256fe50504eed7f9a38937b781775a1886 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 14 Apr 2004 10:00:07 +0000 Subject: Implemented PDF outlines. [originally from svn r4067] --- paper.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'paper.h') diff --git a/paper.h b/paper.h index 1f01f8b..7c46571 100644 --- a/paper.h +++ b/paper.h @@ -20,6 +20,7 @@ typedef struct text_fragment_Tag text_fragment; typedef struct xref_Tag xref; typedef struct xref_dest_Tag xref_dest; typedef struct rect_Tag rect; +typedef struct outline_element_Tag outline_element; /* * This data structure represents the overall document, in the form @@ -29,6 +30,8 @@ struct document_Tag { int paper_width, paper_height; font_list *fonts; page_data *pages; + outline_element *outline_elements; + int n_outline_elements; }; /* @@ -264,6 +267,11 @@ struct rect_Tag { int x, y, w, h; }; +struct outline_element_Tag { + int level; /* 0=title 1=C 2=H 3=S 4=S2... */ + paragraph *para; +}; + /* * Functions and data exported from psdata.c. */ -- cgit v1.1