diff options
author | Robin Watts <robin.watts@artifex.com> | 2018-10-15 21:07:09 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2018-10-16 11:05:50 +0100 |
commit | 0b104e0f35a8497f1f5fd2fc1a05f5015f49471f (patch) | |
tree | 36bd6dfae7a4023b557d0d9d014970e8ebe8d5df | |
parent | 09e6384783ebbd940f766adcd7b531c10332b24b (diff) | |
download | mupdf-0b104e0f35a8497f1f5fd2fc1a05f5015f49471f.tar.xz |
Fix line spacing bug in rewriting PDF files.
The filter op for Tz was reading the scale in and dividing by 100 as we
do elsewhere. The buffer op was then forgetting to multiply by 100
before rewriting it.
-rw-r--r-- | source/pdf/pdf-op-buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-op-buffer.c b/source/pdf/pdf-op-buffer.c index 8774fd4f..b2e3b98e 100644 --- a/source/pdf/pdf-op-buffer.c +++ b/source/pdf/pdf-op-buffer.c @@ -304,7 +304,7 @@ static void pdf_out_Tz(fz_context *ctx, pdf_processor *proc, float scale) { fz_output *out = ((pdf_output_processor*)proc)->out; - fz_write_printf(ctx, out, "%g Tz\n", scale); + fz_write_printf(ctx, out, "%g Tz\n", scale*100); } static void |