aboutsummaryrefslogtreecommitdiffstats
path: root/src/pdf_writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf_writer.c')
-rw-r--r--src/pdf_writer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pdf_writer.c b/src/pdf_writer.c
index 8d5fc16..cda998a 100644
--- a/src/pdf_writer.c
+++ b/src/pdf_writer.c
@@ -27,10 +27,10 @@ pdf_dump_obj(pdf_object_t **pdf, FILE **fp)
fprintf(*fp, "%d 0 obj\n", ptr->id);
if (ptr->dictionary != NULL) {
- fputs(ptr->dictionary, *fp);
+ fwrite(ptr->dictionary, ptr->dictionary_size, 1, *fp);
fputs("\n", *fp);
} else if (ptr->object != NULL) {
- fputs(ptr->object, *fp);
+ fwrite(ptr->object, ptr->object_size, 1, *fp);
fputs("\n", *fp);
} else if (ptr->stream == NULL) {
fputs("null\n", *fp);