
Pdf-Afterscan Service Menu
Source (link to git-repo or to original if based on someone elses unmodified work):
Description:
This utility is intended to fix contrast on scanned documents.
For example, it can remove noises due to paper folding.
Plus, it allows you to recompress your scanned documents by changing
the DPI or the JPEG compression settings, allowing you to reduce the size.
Requirements:
KDE/Plasma 5
ghostscript
imagemagick
poppler
Installation:
Put pdf-afterscan.gui.sh in your executables path (eg: /usr/bin)
Put pdf-afterscan.desktop in your ~/.local/share/kservices5/ServiceMenus/
(create ~/.local/share/kservices5/ if it does not exists)
Usage:
Right click in dolphin on a PDF, and select "PDF Afterscan".
Follow onscreen instructions. Last changelog:
For example, it can remove noises due to paper folding.
Plus, it allows you to recompress your scanned documents by changing
the DPI or the JPEG compression settings, allowing you to reduce the size.
Requirements:
KDE/Plasma 5
ghostscript
imagemagick
poppler
Installation:
Put pdf-afterscan.gui.sh in your executables path (eg: /usr/bin)
Put pdf-afterscan.desktop in your ~/.local/share/kservices5/ServiceMenus/
(create ~/.local/share/kservices5/ if it does not exists)
Usage:
Right click in dolphin on a PDF, and select "PDF Afterscan".
Follow onscreen instructions.
0.5.3
gs has a weird bug for which it don't work for particular numbers starting with leading zeroes.
strip them for it.
Ratings & Comments
7 Comments
9 +
m0ji, i think this is due to Imagemagick not being "authorized" to convert pdf to images, see: https://bugs.archlinux.org/task/60580 a possible fix is explained here: https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion ...or just wait for your distro to somehow "fix" the imagemagick package. Anyway, you can start from the console and check the output that way: > pdf-afterscan.gui.sh /path/to/my/document.pdf
I changed policy.xml and it works now. Thanks
No output!
Check your /etc/ImageMagick-7/policy.xml and see if changing: To: ...makes it work.
I'm sorry, opendesktop is mangling my comments. Read the original comment here: https://pastebin.com/yeLGzCGi
9 Nice idea!