Hi,
I am using Imagemagick 6.6.7-6 on soalris 9.
Below error occurs when tried to convert txt file to PDF file.
convert /home/pstopdf/Cover.txt /home/pstopdf/Cover.pdf
convert: delegate library support not built-in `/usr/openwin/lib/locale/iso_8859_15/X11/fonts/TrueType//ArialBold.ttf' (Freetype) @ warning/annotate.c/RenderFreetype/1508
convert: no decode delegate for this image format `/var/tmp/magick-4X.EaWem-00000001' @ error/constitute.c/ReadImage/532.
convert: Postscript delegate failed `/var/tmp/magick-T_7EaWem': No such file or directory @ error/ps.c/ReadPSImage/806.
Please let me know if any additonal delegates need to updated to imagemagick to convert txt file to pdf
or is there any another way to convert?
How to convert txt files to PDF file
-
- Posts: 7
- Joined: 2011-02-08T07:23:31-07:00
- Authentication code: 8675308
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to convert txt files to PDF file
I am no expert on this, but it appears that you don't have ghostscript fonts for ArialBold.ttf or do not have that font installed. You might try upgrading your ghostscript fonts and perhaps ghostscript. If the latter then re-install the latest IM. It is possible that your ghostscript fonts are not in the place ghostscript or IM knows about it. It may also be that it is looking for freetype.
To check your delegates, type
convert -list configure
and look for the line starting with DELEGATES and see if gs and freetype are listed.
Some delegates can be found at http://www.imagemagick.org/download/delegates/ or by searching google.
where is IM installed and where is ghostscript installed on your system? type
which convert
and
which gs
and see if the same location.
You may have to tell IM where your ghostscript fonts are installed in the ./configure command.
see
http://www.imagemagick.org/script/advan ... #configure
look at --with-gs-font-dir
directory containing Ghostscript fonts.
Specify the directory containing the Ghostscript Postscript Type 1 font files (e.g. n022003l.pfb) so that they can be rendered using the FreeType library. If the font files are installed using the default Ghostscript installation paths (${prefix}/share/ghostscript/fonts), they should be discovered automagically by configure and specifying this option is not necessary. Specify this option if the Ghostscript fonts fail to be located automagically, or the location needs to be overridden.
To check your delegates, type
convert -list configure
and look for the line starting with DELEGATES and see if gs and freetype are listed.
Some delegates can be found at http://www.imagemagick.org/download/delegates/ or by searching google.
where is IM installed and where is ghostscript installed on your system? type
which convert
and
which gs
and see if the same location.
You may have to tell IM where your ghostscript fonts are installed in the ./configure command.
see
http://www.imagemagick.org/script/advan ... #configure
look at --with-gs-font-dir
directory containing Ghostscript fonts.
Specify the directory containing the Ghostscript Postscript Type 1 font files (e.g. n022003l.pfb) so that they can be rendered using the FreeType library. If the font files are installed using the default Ghostscript installation paths (${prefix}/share/ghostscript/fonts), they should be discovered automagically by configure and specifying this option is not necessary. Specify this option if the Ghostscript fonts fail to be located automagically, or the location needs to be overridden.