Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting to PDF fails #69

Closed
MarHaj opened this issue Nov 22, 2019 · 3 comments
Closed

Converting to PDF fails #69

MarHaj opened this issue Nov 22, 2019 · 3 comments

Comments

@MarHaj
Copy link

MarHaj commented Nov 22, 2019

Doesn't convert at all to pdf from jpg and png images at the least.

Conversion status report:
Total: 1
Converted: 0
Error:0

Running Converseen 0.9.7 installed from repository ppa:ubuntuhandbook1/apps on Linux Mint 19.2.

Maybe some prerequisites/libraries missing?

@Faster3ck
Copy link
Owner

Hello,

Please, try to install the ghostscript package. ImageMagick may require it in order to process PDF files.

@MarHaj
Copy link
Author

MarHaj commented Nov 22, 2019

@Faster3ck:

Please, try to install the ghostscript package. ImageMagick may require it in order to process PDF files.

I had ghostscript 9.26 installed (verified bin is in the path). And seems imagemagic too:

ii imagemagick 8:6.9.7.4+dfsg-16ubuntu6.8 amd64 image manipulation programs -- binaries
ii imagemagick-6-common 8:6.9.7.4+dfsg-16ubuntu6.8 all image manipulation programs -- infrastructure
ii imagemagick-6.q16 8:6.9.7.4+dfsg-16ubuntu6.8 amd64 image manipulation programs -- quantum depth Q16

@MarHaj
Copy link
Author

MarHaj commented Jan 9, 2020

I've found the problem and the solution:

There is a ImageMagic policy file /etc/ImageMagick-6/policy.xml. There I had a line disabling ghostscript from reading/writing pdf files: <policy domain="coder" rights="none" pattern="PDF" />. I changed it to <policy domain="coder" rights="read|write" pattern="PDF" /> and the problem "converting to pdf fails" does not exit anymore.

@MarHaj MarHaj closed this as completed Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants