Forum How do I...?

Converting a PDF with special characters and a special font fails

have
This is not really really a Prince issue - but will try my luck anyway :-)

My system failed when generating a JPG preview from a Prince generated PDF. I use ImageMagick convert.

The PDF however is just fine (hence not a Prince issue). I found out that a combination of the special characters: ¼ and ½ and the font BlenderPro-Thin caused the problem.

In this error log, there is a reference to Ghostscript:

    Error: /undefinedresource in findresource
    Operand stack:
       --nostringval--   --dict:6/15(L)--   F3   8.0   --dict:6/6(L)--   --dict:6/6(L)--   BlenderPro-Thin   --dict:11/12(ro)(G)--   --nostringval--   CIDFontObject   --dict:6/6(L)--   --dict:6/6(L)--   BlenderPro-Thin   CIDFont   BlenderPro-Thin
    Execution stack:
       %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1862   1   3   %oparray_pop   1861   1   3   %oparray_pop   1845   1   3   %oparray_pop   --nostringval--   --nostringval--   2   1   1   --nostringval--   %for_pos_int_continue   --nostringval--   --nostringval--   --nostringval--   --nostringval--   %array_continue   --nostringval--   false   1   %stopped_push   --nostringval--   %loop_continue   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   %array_continue   --nostringval--   --nostringval--   --nostringval--   --nostringval--   1813   14   9   %oparray_pop   findresource   %errorexec_pop   --nostringval--   --nostringval--   --nostringval--
    Dictionary stack:
       --dict:1150/1684(ro)(G)--   --dict:1/20(G)--   --dict:74/200(L)--   --dict:74/200(L)--   --dict:106/127(ro)(G)--   --dict:278/300(ro)(G)--   --dict:22/25(L)--   --dict:4/6(L)--   --dict:25/40(L)--   --dict:20/26(ro)(G)--
    Current allocation mode is local
    Last OS error: 2
    GPL Ghostscript 8.64: Unrecoverable error, exit code 1
    convert: Postscript delegate failed `merged_52f3983b5b281.pdf':  @ error/pdf.c/ReadPDFImage/645.
 



If I copy/paste from the PDF, I get this:

1⁄4 1⁄2


Not ligatures, just weird looking.

Any suggestions??
mikeday
Could you attach a small sample PDF file that contains these characters and demonstrates the problem?
have
Attached
  1. test.pdf390.8 kB
mikeday
Has this file been modified by another tool to add metadata? Unfortunately I do not get any problem if I run "convert test.pdf test.png", with ghostscript 9.05 installed it seems to work fine.
have
Well, it has been merged with another PDF using pdftk. But I don't think that's the problem. We are running ghostscript 8.70 here, so it's worth trying to update. Thanks