mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Updated Pre Consume Script Examples (markdown)
parent
00b1767b9a
commit
7ec62616c6
@ -12,7 +12,7 @@ set -e -o pipefail
|
||||
export LC_ALL=C
|
||||
|
||||
#IN="$1"
|
||||
IN="$DOCUMENT_SOURCE_PATH"
|
||||
IN="$DOCUMENT_WORKING_PATH"
|
||||
|
||||
PAGES=$(pdfinfo "$IN" | grep ^Pages: | tr -dc '0-9')
|
||||
THRESHOLD=0.002
|
||||
@ -44,6 +44,6 @@ fi
|
||||
```bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
qpdf --replace-input "$DOCUMENT_SOURCE_PATH"
|
||||
qpdf --replace-input "$DOCUMENT_WORKING_PATH"
|
||||
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user