Make cupsfilter more general

This commit is contained in:
Andrea Cardaci 2021-01-12 18:03:09 +01:00
parent 46bbaaf6d6
commit 47db2fa431

View File

@ -1,21 +1,15 @@
--- ---
description: |
cupsfilter - convert a file to another format using cups filters (deprecated).
By default, it converts the file into a PDF ( default output mime: application/pdf ).
Available options:
-i "mime/type" # input mime/type
-m "mime/type" # output mime/type
functions: functions:
file-read: file-read:
- code: | - code: |
LFILE=file_to_read LFILE=file_to_read
cupsfilter $LFILE cupsfilter -i application/octet-stream -m application/octet-stream $LFILE
sudo: sudo:
- code: | - code: |
LFILE=file_to_read LFILE=file_to_read
sudo cupsfilter $LFILE sudo cupsfilter -i application/octet-stream -m application/octet-stream $LFILE
suid: suid:
- code: | - code: |
LFILE=file_to_read LFILE=file_to_read
./cupsfilter $LFILE ./cupsfilter -i application/octet-stream -m application/octet-stream $LFILE
--- ---