aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2017-03-12 16:05:51 -0700
committerSean Whitton <spwhitton@spwhitton.name>2017-03-12 16:05:51 -0700
commit69ece105e8dd278e33f85841947fe5f263bd7437 (patch)
treefadae45b1f7424e45a08c37971752affd1b5a16c
parent68e5a1faed2fc49b5a2ab433ea8cca754fff957d (diff)
downloadsscan-69ece105e8dd278e33f85841947fe5f263bd7437.tar.gz
comment about --remove-background
-rw-r--r--Main.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Main.hs b/Main.hs
index 67367e2..559defa 100644
--- a/Main.hs
+++ b/Main.hs
@@ -70,6 +70,9 @@ processScanSessDir st dir = withCurrentDirectory dir $ do
-- to output to stdout
void $ withFile "temp.pdf" WriteMode $ \tempFile -> do
(_, _, Just herr, p) <- createProcess_ "OCRmyPDF"
+ -- we'd like to use --remove-background here, but then
+ -- qpdf says that ocrmypdf's output is damaged.
+ -- reported upstream
(proc "ocrmypdf" ["-c", "-i", "-r", "temp2.pdf", "-"])
{ std_in = NoStream
, std_out = UseHandle tempFile