From 1994f122cc29504862944cca1da1c5203c7e41eb Mon Sep 17 00:00:00 2001 From: yzrh Date: Thu, 31 Dec 2020 22:36:28 +0000 Subject: Decode JBIG and JPEG during HN conversion. --- src/pdf.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/pdf.h') 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 + * Copyright (c) 2020-2021, yzrh * * 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 */ -- cgit v1.2.3