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
30ebfaf8e6
commit
b24d2a09db
@ -34,4 +34,16 @@ if [ -n "$NON_BLANK" ]; then
|
|||||||
NON_BLANK=$(echo $NON_BLANK | tr ' ' ",")
|
NON_BLANK=$(echo $NON_BLANK | tr ' ' ",")
|
||||||
qpdf "$IN" --replace-input --pages . $NON_BLANK --
|
qpdf "$IN" --replace-input --pages . $NON_BLANK --
|
||||||
fi
|
fi
|
||||||
|
```
|
||||||
|
|
||||||
|
## Cleaning with `qpdf`
|
||||||
|
|
||||||
|
- :warning: **This script modifies the original file**
|
||||||
|
- Useful for correcting certain structural issues with PDFs
|
||||||
|
|
||||||
|
```bash
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
qpdf --replace-input "$DOCUMENT_SOURCE_PATH"
|
||||||
|
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user