From 558b5e000fef4ba81227a7dc1f9b0f1a5e0ff10d Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 13 May 2015 16:59:51 +0100 Subject: [PATCH] only run qpdf for the main output.pdf file was previously matching any pdf file, which caused it to run for embedded pdf figures produced during the mklatex run --- app/coffee/OutputFileOptimiser.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/coffee/OutputFileOptimiser.coffee b/app/coffee/OutputFileOptimiser.coffee index d0c091d..f337a7a 100644 --- a/app/coffee/OutputFileOptimiser.coffee +++ b/app/coffee/OutputFileOptimiser.coffee @@ -9,7 +9,7 @@ module.exports = OutputFileOptimiser = optimiseFile: (src, dst, callback = (error) ->) -> # check output file (src) and see if we can optimise it, storing # the result in the build directory (dst) - if src.match(/\.pdf$/) + if src.match(/\/output\.pdf$/) OutputFileOptimiser.optimisePDF src, dst, callback else callback (null)