diff options
Diffstat (limited to 'lib/alaveteli_text_masker.rb')
-rw-r--r-- | lib/alaveteli_text_masker.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/alaveteli_text_masker.rb b/lib/alaveteli_text_masker.rb index b970b9d2f..b1c6ed1ae 100644 --- a/lib/alaveteli_text_masker.rb +++ b/lib/alaveteli_text_masker.rb @@ -59,13 +59,12 @@ module AlaveteliTextMasker end def compress_pdf(censored_uncompressed_text) - recompressed_text = nil if AlaveteliConfiguration::use_ghostscript_compression == true command = ["gs", "-sDEVICE=pdfwrite", "-dCompatibilityLevel=1.4", "-dPDFSETTINGS=/screen", "-dNOPAUSE", "-dQUIET", "-dBATCH", "-sOutputFile=-", "-"] else command = ["pdftk", "-", "output", "-", "compress"] end - recompressed_text = AlaveteliExternalCommand.run(*(command + [{:stdin_string=>censored_uncompressed_text}])) + AlaveteliExternalCommand.run(*(command + [{:stdin_string=>censored_uncompressed_text}])) end # Replace text in place |