Debian Codegraph @

pdf/pdf_doc.h

raw
1 /* Copyright (C) 2020-2023 Artifex Software, Inc.
2 All Rights Reserved.
3
4 This software is provided AS-IS with no warranty, either express or
5 implied.
6
7 This software is distributed under license and may not be copied,
8 modified or distributed except as expressly authorized under the terms
9 of the license contained in the file LICENSE in this distribution.
10
11 Refer to licensing information at http://www.artifex.com or contact
12 Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
13 CA 94129, USA, for further information.
14 */
15
16 #ifndef PDF_DOC
17 #define PDF_DOC
18
19 int pdfi_read_Info(pdf_context *ctx);
20
21 int pdfi_read_Root(pdf_context *ctx);
22 void pdfi_read_OptionalRoot(pdf_context *ctx);
23 void pdfi_free_OptionalRoot(pdf_context *ctx);
24
25 int pdfi_read_Pages(pdf_context *ctx);
26 int pdfi_get_page_dict(pdf_context *ctx, pdf_dict *d, uint64_t page_num, uint64_t *page_offset, pdf_dict **target, pdf_dict *inherited);
27 int pdfi_find_resource(pdf_context *ctx, unsigned char *Type, pdf_name *name, pdf_dict *dict,
28 pdf_dict *page_dict, pdf_obj **o);
29 int pdfi_doc_page_array_init(pdf_context *ctx);
30 void pdfi_doc_page_array_free(pdf_context *ctx);
31 int pdfi_doc_trailer(pdf_context *ctx);
32
33 #endif