diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-12-24 10:06:04 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-12-24 10:06:04 +0000 |
commit | 0c29558f8caf51da6c4258fbd1ebfa341af5aab9 (patch) | |
tree | e9831771710d81ee4e374d9449c856f0700ed191 /src/pdf_doc.h | |
parent | 897a8900bf77db2d804b0f78bc4b41371e05347f (diff) | |
download | libnspdf-0c29558f8caf51da6c4258fbd1ebfa341af5aab9.tar.gz libnspdf-0c29558f8caf51da6c4258fbd1ebfa341af5aab9.tar.bz2 |
clean up error handling and start decoding of indirect objects
Diffstat (limited to 'src/pdf_doc.h')
-rw-r--r-- | src/pdf_doc.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pdf_doc.h b/src/pdf_doc.h index 696c121..b37e3b2 100644 --- a/src/pdf_doc.h +++ b/src/pdf_doc.h @@ -7,7 +7,7 @@ struct xref_table_entry { uint64_t offset; /* indirect object if already decoded */ - struct cos_object *o; + struct cos_object *object; }; @@ -38,5 +38,7 @@ struct pdf_doc { /* byte data acessory, allows for more complex buffer handling in future */ #define DOC_BYTE(doc, offset) (doc->start[(offset)]) -int doc_skip_ws(struct pdf_doc *doc, uint64_t *offset); -int doc_skip_eol(struct pdf_doc *doc, uint64_t *offset); +nspdferror doc_skip_ws(struct pdf_doc *doc, uint64_t *offset); +nspdferror doc_skip_eol(struct pdf_doc *doc, uint64_t *offset); + +nspdferror xref_get_referenced(struct pdf_doc *doc, struct cos_object **cobj_out); |