From 98691d4203f4e578b84b2014db0fbe0c1209cc48 Mon Sep 17 00:00:00 2001 From: yzrh Date: Wed, 30 Dec 2020 03:09:00 +0000 Subject: Add HN text extraction. --- src/pdf_cnki.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pdf_cnki.c') diff --git a/src/pdf_cnki.c b/src/pdf_cnki.c index 16d5d64..d69797b 100644 --- a/src/pdf_cnki.c +++ b/src/pdf_cnki.c @@ -50,7 +50,7 @@ _outline(pdf_object_t **pdf, object_outline_tree_t **outline_tree, int id, int * &size) == 0) { strcat(dictionary, "/Title >\n", + snprintf(buf, 64, "/Dest [%d /XYZ null null null]\n>>", atoi(ptr->item->page) - 1); strcat(dictionary, buf); @@ -123,7 +123,7 @@ pdf_cnki_outline(pdf_object_t **pdf, object_outline_t **outline, int **ids) free(outline_tree); snprintf(buf, 128, - "<<\n/Type Outlines\n/First %d 0 R\n/Last %d 0 R\n/Count %d\n>>\n", + "<<\n/Type Outlines\n/First %d 0 R\n/Last %d 0 R\n/Count %d\n>>", ret[0], ret[1], ret[2]); free(ret); -- cgit v1.2.3