Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#60607 - imagemagick gives an error trying to write an image to a PDF file

Attached to Project: Arch Linux
Opened by M. Edward (Ed) Borasky (znmeb) - Saturday, 27 October 2018, 03:06 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 27 October 2018, 06:57 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Description: imagemagick gives an error trying to write an image to a PDF file:

attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408>

Additional info:
* package version(s)
* config and/or log files etc.

Steps to reproduce:
1. Install imagemagick and the R `magick` package. This is probably reproducible from the command line but I don't have anything set up that way.
2. Try to write a PDF using `magick::image_write`.

1. Older versions work; the last good version was imagemagick
2. There's a GitHub issue that has the fix: You have to edit the file `/etc/ImageMagick-7/policy.xml` and change the line ` <policy domain="coder" rights="none" pattern="{PS,PS2,PS3,EPS,PDF,XPS}" />` to ` <policy domain="coder" rights="all" pattern="{PS,PS2,PS3,EPS,PDF,XPS}" />`
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 27 October 2018, 06:57 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#60580