blob: e53f2b25b5708e12e8022d18fea567eba3d8e203 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*
* Copyright 2018 Vincent Sanders <vince@netsurf-browser.org>
*
* This file is part of libnspdf.
*
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
*/
/**
* \file
* NetSurf PDF library cross reference table handling
*/
#ifndef NSPDF__XREF_H_
#define NSPDF__XREF_H_
#include "cos_stream.h"
struct nspdf_doc;
struct cos_object;
/**
* parse xref from file
*/
nspdferror nspdf__xref_parse(struct nspdf_doc *doc, struct cos_stream *stream, strmoff_t *offset_out);
/**
* get an object dereferencing through xref table if necessary
*/
nspdferror nspdf__xref_get_referenced(struct nspdf_doc *doc, struct cos_object **cobj_out);
/**
* allocate storage for cross reference table
*/
nspdferror nspdf__xref_allocate(struct nspdf_doc *doc, int64_t size);
#endif
|