Feature: Add slugify filter in templating (#9269)

This commit is contained in:
Harold Waterkeyn
2025-03-03 17:20:04 +01:00
committed by GitHub
parent 5a453653e2
commit 1bc77546eb
3 changed files with 69 additions and 0 deletions

View File

@@ -509,6 +509,12 @@ Invoice_{{ custom_fields|get_cf_value("Select Field") }}_{{ custom_fields|get_cf
This will create a path like `invoices/2022/01/01/Invoice_OptionTwo_20220101.pdf` if the custom field "Date Field" is set to January 1, 2022 and "Select Field" is set to `OptionTwo`.
You can also use a custom `slugify` filter to slufigy text:
```jinja
{{ title | slugify }}
```
## Automatic recovery of invalid PDFs {#pdf-recovery}
Paperless will attempt to "clean" certain invalid PDFs with `qpdf` before processing if, for example, the mime_type