diff options
author | yzrh <yzrh@noema.org> | 2020-12-30 03:09:00 +0000 |
---|---|---|
committer | yzrh <yzrh@noema.org> | 2020-12-30 03:09:00 +0000 |
commit | 98691d4203f4e578b84b2014db0fbe0c1209cc48 (patch) | |
tree | c528e3ea964111b934ae5e61e847831d62944f41 /src/pdf_writer.c | |
parent | 8d6fbb43c9bc840d4217bf4f0b49b1213f1601a1 (diff) | |
download | melon-98691d4203f4e578b84b2014db0fbe0c1209cc48.tar.gz melon-98691d4203f4e578b84b2014db0fbe0c1209cc48.tar.zst |
Add HN text extraction.
Diffstat (limited to 'src/pdf_writer.c')
-rw-r--r-- | src/pdf_writer.c | 9 |
1 files changed, 6 insertions, 3 deletions
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); |