aboutsummaryrefslogtreecommitdiffstats
path: root/src/pdf_cnki.c
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_cnki.c
parentb20c6ad3ed930977990f3812b25b80d2ce282d79 (diff)
downloadmelon-1994f122cc29504862944cca1da1c5203c7e41eb.tar.gz
melon-1994f122cc29504862944cca1da1c5203c7e41eb.tar.zst
Decode JBIG and JPEG during HN conversion.
Diffstat (limited to 'src/pdf_cnki.c')
-rw-r--r--src/pdf_cnki.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pdf_cnki.c b/src/pdf_cnki.c
index 6e5f810..84274b8 100644
--- a/src/pdf_cnki.c
+++ b/src/pdf_cnki.c
@@ -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
*/
@@ -93,7 +93,7 @@ _outline(pdf_object_t **pdf, object_outline_tree_t **outline_tree, int id, int *
atoi(ptr->item->page) - 1);
strcat(dictionary, buf);
- pdf_obj_append(pdf, ptr->id, NULL, dictionary, NULL);
+ pdf_obj_append(pdf, ptr->id, NULL, dictionary, NULL, 0);
if (ptr->left == NULL)
(*stat)[1] = ptr->id;
@@ -128,7 +128,7 @@ pdf_cnki_outline(pdf_object_t **pdf, object_outline_t **outline, int **ids)
free(ret);
- pdf_obj_append(pdf, (*ids)[0], NULL, buf, NULL);
+ pdf_obj_append(pdf, (*ids)[0], NULL, buf, NULL, 0);
return 0;
}