Error converting txt to pdf
Posted: 2018-03-26T16:37:50-07:00
I need some help with the most basic of tasks: converting txt to pdf from the command line. I believe that this is the proper code to convert a .txt file to .pdf:
But I get this error:
Here is my version info (convert -v):
Do I have the code wrong or is there something else I need to do?
Code: Select all
convert text.txt text.pdf
Code: Select all
convert: improper image header 'text.txt' @ error/txt.c/ReadTXTImage/446.
convert: no images defined `text.pdf' @ error/convert.c/ConvertImageCommand/3258.
Code: Select all
Version: ImageMagick 6.9.9-38 Q16 x86_64 2018-03-12 http://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps rsvg tiff webp wmf x xml zlib