From 0b104e0f35a8497f1f5fd2fc1a05f5015f49471f Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 15 Oct 2018 21:07:09 +0100 Subject: 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. --- source/pdf/pdf-op-buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/pdf/pdf-op-buffer.c') 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 -- cgit v1.2.3