Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 7 of 7

This is a discussion on help needed on imagemagick PDF conversion in the Shared & Semi-Dedicated forum
Hi guys. I am trying to convert a PDF to JPG using imagemagick. It works fine on my Windows PC, but failed to work on ...

  1. #1
    Squeegy Boy TeeJay's Avatar
    Join Date
    Feb 2002
    Location
    Nueva Ecija
    Posts
    147

    help needed on imagemagick PDF conversion

    Hi guys. I am trying to convert a PDF to JPG using imagemagick. It works fine on my Windows PC, but failed to work on JPC server. The error I am getting is:

    **** Warning: Fonts with Subtype = /TrueType should be embedded.
    The following fonts were not embedded:
    Arial-BoldMT
    ArialMT

    I typed 'gs -h' and found out the gs is looking at font folder /usr/local/share/ghostscript/fonts, which does not contain the Arial fonts listed above. Then I tried to install MSTTF, which asked me to install cabextract, which gave me another error:

    error: cannot create %sourcedir /usr/src/redhat/SOURCES

    As you can see, it's been a long, frustrating day trying to get the seeminly simple command to work. I am new to Linux, so any advice is much appreciated.

    Many thanks.

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    You probably need to be root to do those installs, at least to do them in a "normal" manner without doing your own custom builds. Since you are posting in the Shared and Semi-Dedicated forum, I assume you do not have root access to your server. "Root" is the super user (administrator) of the system. In order install any software or write to files outside of your own account (which is at /home/yourusername) you need to be logged in as root.

    You can open a support ticket and ask if JPC would be willing to install the fonts for you--they might do it. Or, if you have Acrobat Professional, consider editing the document to embed the fonts so that this isn't an issue. You can do this in the Fonts tab of the Document Properties dialog which you can reach from File > Properties or simply by pressing Ctrl-D.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    Squeegy Boy TeeJay's Avatar
    Join Date
    Feb 2002
    Location
    Nueva Ecija
    Posts
    147
    Thanks for the reply, Jason. I tried another PDF file, and this time it gave me a different warning message:

    **** Warning: Embedded symbolic TT fonts must contain a cmap for Platform=1 Encoding=0.

    This is the command I am using:

    convert receipt.pdf receipt.jpg

    Just wondering if there is anyone out there who has successfully used imagemagick to convert PDF to JPG? My script is supposed to create a thumbnail image of the PDF file for the users, so I don't really have control as to the input PDF file.

    Thank you!

  4. #4
    Loyal Client the_ancient's Avatar
    Join Date
    Feb 2004
    Posts
    3,386
    Quote Originally Posted by TeeJay View Post
    Thanks for the reply, Jason. I tried another PDF file, and this time it gave me a different warning message:

    **** Warning: Embedded symbolic TT fonts must contain a cmap for Platform=1 Encoding=0.

    This is the command I am using:

    convert receipt.pdf receipt.jpg

    Just wondering if there is anyone out there who has successfully used imagemagick to convert PDF to JPG? My script is supposed to create a thumbnail image of the PDF file for the users, so I don't really have control as to the input PDF file.

    Thank you!
    This is one area that windows has the advantage, Font Support sucks in linux, you will never be able to offer a reliable PDF conversion on Linux with out working out large numbers of font problems.

    For my Full time employer I abandoned the web server for Image Conversion and put it in a internal Windows PC for the company and the users access a internal web site(even though they dont know they are) for their document uploading and conversion.
    -------------------------
    the_ancient
    MP Technology Group

  5. #5
    Not A Senior Member homoludens's Avatar
    Join Date
    Sep 2005
    Location
    H-Town
    Posts
    582
    Quote Originally Posted by TeeJay
    Just wondering if there is anyone out there who has successfully used imagemagick to convert PDF to JPG? My script is supposed to create a thumbnail image of the PDF file for the users, so I don't really have control as to the input PDF file.
    I started doing this recently so I can provide PDF preview images for my file browser; I'm not having any issues at all.

    Ghostscript is outputting a warning, not an error, and substituting for the missing font. Imagemagick should therefore convert the PDF. Are you sure it isn't?

    Quote Originally Posted by TA
    This is one area that windows has the advantage, Font Support sucks in linux, you will never be able to offer a reliable PDF conversion on Linux with out working out large numbers of font problems.
    No it doesn't. Font support sucks on any system that doesn't have the required font.

    I've just installed wine, and the internet has become ugly again. Arial. Ugh. At least it's anti-aliased.

  6. #6
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    That's not bad font support, that's Microsoft's (attempts at) vendor lock in at work.
    Quote Originally Posted by homoludens View Post
    Ghostscript is outputting a warning, not an error, and substituting for the missing font.

    [..]

    Font support sucks on any system that doesn't have the required font.
    In its Windows and Office products, Microsoft defaults to font (variants) of their own design. Linux will have to replace these with fonts with a Linux compatible licence. So, you'll see lots and lots of substitutions, but the differences tend to be extremely small in most cases.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  7. #7
    Not A Senior Member homoludens's Avatar
    Join Date
    Sep 2005
    Location
    H-Town
    Posts
    582
    Quote Originally Posted by Gwaihir
    That's not bad font support,
    So we're all agreed then. ;o)

    Quote Originally Posted by Gwaihir
    that's Microsoft's (attempts at) vendor lock in at work.
    In this case it's Apple's / the USPTO's fault.

    but the differences tend to be extremely small in most cases.
    Not when Helvetica gets replaced with Arial.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •