Re: [gentoo-user] convert: attempt to perform an operation not allowed by the security policy

2023-05-02 Thread thelma

On 5/2/23 16:25, Hoël Bézier wrote:

Am Tue, May 02, 2023 at 03:07:30PM -0600 schrieb the...@sys-concept.com:

Trying to use convert and getting security policy problem:

convert -density 300 document.pdf -fuzz 10% -channel rgba -fill none -opaque "#d2d2d2" 
-opaque "#b8b8b8" daily_appointment.pdf

convert: attempt to perform an operation not allowed by the security policy 
`PDF' @ error/constitute.c/IsCoderAuthorized/449.
convert: no images defined `daily_appointment.pdf' @ 
error/convert.c/ConvertImageCommand/3342


Which security policy is it? Output of:  cat /etc/ImageMagick-7/policy.xml


  
  
  
  
  
  
  


By default conversion to pdf are forbidden. You may want to read the gentoo bug indicated 
in the file and if you still want to allow convert to create pdf files, remove or comment 
the line with pattern="PDF".


You are correct, changing it to:


solved the problem.
 



Re: [gentoo-user] convert: attempt to perform an operation not allowed by the security policy

2023-05-02 Thread Hoël Bézier

Am Tue, May 02, 2023 at 03:07:30PM -0600 schrieb the...@sys-concept.com:

Trying to use convert and getting security policy problem:

convert -density 300 document.pdf -fuzz 10% -channel rgba -fill none -opaque "#d2d2d2" 
-opaque "#b8b8b8" daily_appointment.pdf

convert: attempt to perform an operation not allowed by the security policy 
`PDF' @ error/constitute.c/IsCoderAuthorized/449.
convert: no images defined `daily_appointment.pdf' @ 
error/convert.c/ConvertImageCommand/3342


Which security policy is it? Output of:  cat /etc/ImageMagick-7/policy.xml


  
  
  
  
  
  
  


By default conversion to pdf are forbidden. You may want to read the gentoo bug 
indicated in the file and if you still want to allow convert to create pdf 
files, remove or comment the line with pattern="PDF".




[gentoo-user] convert: attempt to perform an operation not allowed by the security policy

2023-05-02 Thread thelma

Trying to use convert and getting security policy problem:

convert -density 300 document.pdf -fuzz 10% -channel rgba -fill none -opaque "#d2d2d2" 
-opaque "#b8b8b8" daily_appointment.pdf

convert: attempt to perform an operation not allowed by the security policy 
`PDF' @ error/constitute.c/IsCoderAuthorized/449.
convert: no images defined `daily_appointment.pdf' @ 
error/convert.c/ConvertImageCommand/3342


Which security policy is it? Output of:  cat /etc/ImageMagick-7/policy.xml



  
  
  
]>


  
  
  
  
  
  
  

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  


--
Thelma