aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/alaveteli_text_masker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/alaveteli_text_masker.rb b/lib/alaveteli_text_masker.rb
index de85df7cf..520872980 100644
--- a/lib/alaveteli_text_masker.rb
+++ b/lib/alaveteli_text_masker.rb
@@ -59,7 +59,7 @@ module AlaveteliTextMasker
end
def compress_pdf(text)
- if AlaveteliConfiguration::use_ghostscript_compression == true
+ if AlaveteliConfiguration::use_ghostscript_compression
command = ["gs", "-sDEVICE=pdfwrite", "-dCompatibilityLevel=1.4", "-dPDFSETTINGS=/screen", "-dNOPAUSE", "-dQUIET", "-dBATCH", "-sOutputFile=-", "-"]
else
command = ["pdftk", "-", "output", "-", "compress"]