Skip to content

Commit 6d8a86c

Browse files
committed
Log pdftotext command
1 parent 970251f commit 6d8a86c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/grim/page.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ def save(path, options={})
5050
# Returns a String.
5151
#
5252
def text
53-
`#{[@pdftotext_path, "-enc", "UTF-8", "-f", @number, "-l", @number, Shellwords.escape(@pdf.path), "-"].join(' ')}`
53+
command = [@pdftotext_path, "-enc", "UTF-8", "-f", @number, "-l", @number, Shellwords.escape(@pdf.path), "-"].join(' ')
54+
Grim.logger.debug "Running pdftotext command"
55+
Grim.logger.debug command
56+
`#{command}`
5457
end
5558
end
5659
end

0 commit comments

Comments
 (0)