diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-02-22 15:44:06 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-02-22 16:38:05 +0000 |
commit | 5a390d0ce33a7dd9400675a236424db390a807c5 (patch) | |
tree | 703ea41b8cde0f98329dd8a28654fc353fe5f6b3 /source/pdf | |
parent | d9e8a0720d984f276b391800a4787f71075b5ee2 (diff) | |
download | mupdf-5a390d0ce33a7dd9400675a236424db390a807c5.tar.xz |
Fix flaw in printing objects.
When printing a PDF object to a file, if it was a name, then we'd
output without a required \n. For example:
10 0 obj
/SomeNameOrOtherendobj
This would trip gs up.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index 86e4ebaf..0dacdcf8 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -1792,7 +1792,7 @@ static void writeobject(fz_context *ctx, pdf_document *doc, pdf_write_state *opt { fz_printf(ctx, opts->out, "%d %d obj\n", num, gen); pdf_print_obj(ctx, opts->out, obj, opts->do_tight); - fz_puts(ctx, opts->out, "endobj\n\n"); + fz_puts(ctx, opts->out, "\nendobj\n\n"); } else if (entry->stm_ofs < 0 && entry->stm_buf == NULL) { |