mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Updated Pre Consume Script Examples (markdown)
parent
30ebfaf8e6
commit
b24d2a09db
1 changed files with 12 additions and 0 deletions
|
|
@ -34,4 +34,16 @@ if [ -n "$NON_BLANK" ]; then
|
|||
NON_BLANK=$(echo $NON_BLANK | tr ' ' ",")
|
||||
qpdf "$IN" --replace-input --pages . $NON_BLANK --
|
||||
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…
Add table
Add a link
Reference in a new issue