Hello I am entering
convert -density 300 DisabilityManagementGuide.pdf -depth 8 -strip -background white -alpha off out.tiff
as my terminal command line but I am getting the error
convert-im6.q16: no images defined `out.tiff' @ error/convert.c/ConvertImageCommand/3258.
I have looked up all the possible solutions but none of them have worked for me.
I am using Ubuntu 18
PDF to tiff not working
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: PDF to tiff not working
What version of ImageMagick? Your -background white does nothing. It is a setting and not followed by any operator to use that setting. If your pdf is transparent, then try
or
You need Ghostscript as a delegate to imagemagick when processing PDFs. Also there was a recent addition to the policy.xml file to restrict the use of PDF at the time there was a security bug in Ghostscript, which has now been fixed with the latest Ghostscript. So you need to edit your policy.xml file to re-enable the use of PDF. See https://imagemagick.org/script/resources.php
Code: Select all
convert -density 300 DisabilityManagementGuide.pdf -depth 8 -strip -background white -alpha background -alpha off out.tiff
Code: Select all
convert -density 300 DisabilityManagementGuide.pdf -depth 8 -strip -background white -flatten out.tiff