vv
vv copied to clipboard
not authorized for pdfs
07:56:48 pi@juanraspberry test → sudo vv abschlussffb7a237-d6e4-4c04-92c1-8dbab8158ee3.pdf
abschlussffb7a237-d6e4-4c04-92c1-8dbab8158ee3.pdf 6 pages, 589.606 x 841.889 pts
convert-im6.q16: attempt to perform an operation not allowed by the security policy PDF' @ error/constitute.c/IsCoderAuthorized/421. convert-im6.q16: no images defined
sixel:-' @ error/convert.c/ConvertImageCommand/3229.
07:57:50 pi@juanraspberry test →
Thank you for the report! I have not tested vv
on pdfs so it is good to hear from someone who is trying it. The problem appears to be that some installations of ImageMagick do not allow converting pdfs by default.
It is possible to work around it by editing the file /etc/ImageMagick-6/policy.xml
and commenting out the policy lines that prevent ghostscript from being called. (This may be a security problem if ImageMagick is being used as a service on a webserver).
...
<!-- disable ghostscript format types -->
<!-- <policy domain="coder" rights="none" pattern="PS" /> -->
<!-- <policy domain="coder" rights="none" pattern="PS2" /> -->
<!-- <policy domain="coder" rights="none" pattern="PS3" /> -->
<!-- <policy domain="coder" rights="none" pattern="EPS" /> -->
<!-- <policy domain="coder" rights="none" pattern="PDF" /> -->
<!-- <policy domain="coder" rights="none" pattern="XPS" /> -->
</policymap>
It looks like Debian 10 (Bullseye) and 11 (Buster) require this workaround. From my testing, it appears the problem does not exist in the upcoming release of Debian GNU/Linux 13 (Trixie). I am not sure, but probably Debian 12 (Bookworm) is fine which is good since it is the current stable release.
By the way, would you want vv
to offer to show all the pages of a PDF, similar to how it handles recursively entering a directory?
By the way, would you want vv to offer to show all the pages of a PDF, similar to how it handles recursively entering a directory?
👀 Wow! TOP answer! Thank you so much for the effort and quick response! That would make vv a sixel pdf viewer, yes of course! :D