Skip to content

Commit f3b61ec

Browse files
committed
Let ocrmypdf and pdftotext print errors
1 parent f699308 commit f3b61ec

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/archivist/system_calls.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ defmodule Archivist.SystemCalls do
187187
case System.cmd("ocrmypdf", [
188188
"--output-type",
189189
"pdfa",
190-
"--quiet",
191190
"--rotate-pages",
192191
"--deskew",
193192
"--skip-text",
@@ -203,7 +202,7 @@ defmodule Archivist.SystemCalls do
203202
def pdf_to_text(path) do
204203
Logger.info(["Calling pdftotext on ", Path.basename(path)])
205204

206-
case System.cmd("pdftotext", ["-eol", "unix", "-q", path, "-"]) do
205+
case System.cmd("pdftotext", ["-eol", "unix", path, "-"]) do
207206
{pdf_text, 0} -> {:ok, pdf_text}
208207
{_output, _exit_status} -> :error
209208
end

0 commit comments

Comments
 (0)