I am trying to thumbnail all of the pages in a PDF using ImageMagick. Some process fine, but some of the PDFs fail midway through.
Here is the log:
convert sample.pdf -resize 190 test.jpg
** Warning: Error reading font stream, loading font by the name Error:/rangecheck in --run-- Operand stack: --dict:13/22(L)-- C2_0 1 --dict:6/6(L)--
--dict:6/6(L)-- MBFTXR+SILDoulosIPA93Regular --dict:11/12(ro)(G)-- --nostringval-- CIDFontObject --dict:8/8(L)-- --dict:8/8(L)--
Adobe-Identity Execution stack: %interp_exit .runexec2
--nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- --nostringval-- --nostringval--
false 1 %stopped_push 1846 1 3 %oparray_pop 1845 1 3 %oparray_pop 1829 1 3 %oparray_pop --nostringval--
--nostringval-- 68 1 83 --nostringval--
%for_pos_int_continue --nostringval-- --nostringval-- false 1 %stopped_push --nostringval-- --nostringval-- Dictionary stack:
--dict:1158/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)--
--dict:75/200(L)-- --dict:106/127(ro)(G)-- --dict:285/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:26/40(L)-- Current allocation mode is local Last OS error: 2 GPL Ghostscript 8.70: Unrecoverable error, exit code 1
I tried googling about errors in reading the font stream, but I could not find useful information.
Is this caused by lack of fonts in the system?
I tried pdffonts on the pdf and got many
Error: Illegal entry in bfchar block in ToUnicode CMap
all over the place.
This may be a point, the PDFs are in Japanese.