summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2018-10-15 21:07:09 +0100
committerRobin Watts <robin.watts@artifex.com>2018-10-16 11:05:50 +0100
commit0b104e0f35a8497f1f5fd2fc1a05f5015f49471f (patch)
tree36bd6dfae7a4023b557d0d9d014970e8ebe8d5df /source
parent09e6384783ebbd940f766adcd7b531c10332b24b (diff)
downloadmupdf-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.
Diffstat (limited to 'source')
-rw-r--r--source/pdf/pdf-op-buffer.c2
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