aboutsummaryrefslogtreecommitdiffstats
path: root/src/pdf.h
diff options
context:
space:
mode:
authoryzrh <yzrh@noema.org>2020-12-31 22:36:28 +0000
committeryzrh <yzrh@noema.org>2021-01-03 03:01:28 +0000
commit1994f122cc29504862944cca1da1c5203c7e41eb (patch)
treed89e37c5f3443156116bd8476e0efc2d380acd55 /src/pdf.h
parentb20c6ad3ed930977990f3812b25b80d2ce282d79 (diff)
downloadmelon-1994f122cc29504862944cca1da1c5203c7e41eb.tar.gz
melon-1994f122cc29504862944cca1da1c5203c7e41eb.tar.zst
Decode JBIG and JPEG during HN conversion.
Diffstat (limited to 'src/pdf.h')
-rw-r--r--src/pdf.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/pdf.h b/src/pdf.h
index a5630d8..f02035a 100644
--- a/src/pdf.h
+++ b/src/pdf.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020, yzrh <yzrh@noema.org>
+ * Copyright (c) 2020-2021, yzrh <yzrh@noema.org>
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -26,16 +26,24 @@ void pdf_obj_destroy(pdf_object_t **pdf);
int pdf_obj_add(pdf_object_t **pdf, int id,
const char * restrict object,
const char * restrict dictionary,
- const char * restrict stream);
+ const char * restrict stream,
+ int stream_size);
int pdf_obj_del(pdf_object_t **pdf, int id);
int pdf_obj_prepend(pdf_object_t **pdf, int id,
const char * restrict object,
const char * restrict dictionary,
- const char * restrict stream);
+ const char * restrict stream,
+ int stream_size);
int pdf_obj_append(pdf_object_t **pdf, int id,
const char * restrict object,
const char * restrict dictionary,
- const char * restrict stream);
+ const char * restrict stream,
+ int stream_size);
+int pdf_obj_replace(pdf_object_t **pdf, int id,
+ const char * restrict object,
+ const char * restrict dictionary,
+ const char * restrict stream,
+ int stream_size);
int pdf_obj_sort(pdf_object_t **pdf);
/* pdf_parser.c */