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_writer.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/pdf_writer.c') diff --git a/src/pdf_writer.c b/src/pdf_writer.c index 43c4255..8d5fc16 100644 --- a/src/pdf_writer.c +++ b/src/pdf_writer.c @@ -26,12 +26,15 @@ pdf_dump_obj(pdf_object_t **pdf, FILE **fp) fprintf(*fp, "%d 0 obj\n", ptr->id); - if (ptr->dictionary != NULL) + if (ptr->dictionary != NULL) { fputs(ptr->dictionary, *fp); - else if (ptr->object != NULL) + fputs("\n", *fp); + } else if (ptr->object != NULL) { fputs(ptr->object, *fp); - else if (ptr->stream == NULL) + fputs("\n", *fp); + } else if (ptr->stream == NULL) { fputs("null\n", *fp); + } if (ptr->stream != NULL) { fputs("stream\r\n", *fp); -- cgit v1.2.3