aboutsummaryrefslogtreecommitdiffstats
path: root/lib/alaveteli_text_masker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alaveteli_text_masker.rb')
-rw-r--r--lib/alaveteli_text_masker.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/alaveteli_text_masker.rb b/lib/alaveteli_text_masker.rb
index 0ba4fd2cf..5d836f66c 100644
--- a/lib/alaveteli_text_masker.rb
+++ b/lib/alaveteli_text_masker.rb
@@ -60,7 +60,15 @@ module AlaveteliTextMasker
def compress_pdf(text)
if AlaveteliConfiguration::use_ghostscript_compression
- command = ["gs", "-sDEVICE=pdfwrite", "-dCompatibilityLevel=1.4", "-dPDFSETTINGS=/screen", "-dNOPAUSE", "-dQUIET", "-dBATCH", "-sOutputFile=-", "-"]
+ command = ["gs",
+ "-sDEVICE=pdfwrite",
+ "-dCompatibilityLevel=1.4",
+ "-dPDFSETTINGS=/screen",
+ "-dNOPAUSE",
+ "-dQUIET",
+ "-dBATCH",
+ "-sOutputFile=-",
+ "-"]
else
command = ["pdftk", "-", "output", "-", "compress"]
end