converting a pdf with japanese fonts
Posted: 2009-10-23T12:15:19-07:00
Hi,
I am trying to convert a pdf that has japanese in it into a jpg under windows 2003 server.
The pdf has some cid fonts
I looked at the pdf doc's property. Thefollowing is an example font in it:
MS-PGothic
Type: TrueType (CID)
Encoding: Identity-H
Acutal Font: MSPGothic
Actual Font Type: TrueType
I ran the following
Q:\PDFTools\test2\convert Q:\PDFTools\test3\36746514.pdf[0] Q:\PDFTools\test3\36746514.jpg
and got this error message:
Error: /undefined in findresource
Operand stack:
--dict:9/18(L)-- TT6 1 --dict:5/5(L)-- --dict:5/5(L)-- MS-Mincho
--dict:11/12(ro)(G)-- --nostringval-- CIDFontObject --dict:7/7(L)-- --di
ct:7/7(L)-- Adobe-Japan1
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-
- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa
lse 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-- --nos
tringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval
-- %array_continue --nostringval-- --nostringval-- --nostringval-- --n
ostringval-- --nostringval-- %loop_continue
Dictionary stack:
--dict:1161/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:23/25(L)-
- --dict:4/6(L)-- --dict:26/40(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: `%s': %s "q:/myprogs/gs/gs8.70/bin/gswin32c.exe" -q -dQUIET -dPARANOIDS
AFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixel
s=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r7
2x72" -dFirstPage=1 -dLastPage=1 "-sOutputFile=C:/DOCUME~1/T~1.CHA/LOCALS~1
/Temp/1/magick-b96qrM4v" "-fC:/DOCUME~1/THOMAS~1.CHA/LOCALS~1/Temp/1/magick-_E3U
59lX" "-fC:/DOCUME~1/T~1.CHA/LOCALS~1/Temp/1/magick-_DycJJYs" @ pdf.c/Invok
ePDFDelegate/197.
convert: Postscript delegate failed `Q:\PDFTools\test3\36746514.pdf': No such fi
le or directory @ pdf.c/ReadPDFImage/634.
convert: missing an image filename `Q:\PDFTools\test3\36746514.jpg' @ convert.c/
ConvertImageCommand/2822.
I downloaded and installed the Japanese Font support for Adobe acrobat and can view the pdf with acrobat, but i keep getting this error with ImageMagick's convert utility.
Anybody know how i can fix this?
I am trying to convert a pdf that has japanese in it into a jpg under windows 2003 server.
The pdf has some cid fonts
I looked at the pdf doc's property. Thefollowing is an example font in it:
MS-PGothic
Type: TrueType (CID)
Encoding: Identity-H
Acutal Font: MSPGothic
Actual Font Type: TrueType
I ran the following
Q:\PDFTools\test2\convert Q:\PDFTools\test3\36746514.pdf[0] Q:\PDFTools\test3\36746514.jpg
and got this error message:
Error: /undefined in findresource
Operand stack:
--dict:9/18(L)-- TT6 1 --dict:5/5(L)-- --dict:5/5(L)-- MS-Mincho
--dict:11/12(ro)(G)-- --nostringval-- CIDFontObject --dict:7/7(L)-- --di
ct:7/7(L)-- Adobe-Japan1
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-
- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa
lse 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-- --nos
tringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval
-- %array_continue --nostringval-- --nostringval-- --nostringval-- --n
ostringval-- --nostringval-- %loop_continue
Dictionary stack:
--dict:1161/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:23/25(L)-
- --dict:4/6(L)-- --dict:26/40(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: `%s': %s "q:/myprogs/gs/gs8.70/bin/gswin32c.exe" -q -dQUIET -dPARANOIDS
AFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixel
s=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r7
2x72" -dFirstPage=1 -dLastPage=1 "-sOutputFile=C:/DOCUME~1/T~1.CHA/LOCALS~1
/Temp/1/magick-b96qrM4v" "-fC:/DOCUME~1/THOMAS~1.CHA/LOCALS~1/Temp/1/magick-_E3U
59lX" "-fC:/DOCUME~1/T~1.CHA/LOCALS~1/Temp/1/magick-_DycJJYs" @ pdf.c/Invok
ePDFDelegate/197.
convert: Postscript delegate failed `Q:\PDFTools\test3\36746514.pdf': No such fi
le or directory @ pdf.c/ReadPDFImage/634.
convert: missing an image filename `Q:\PDFTools\test3\36746514.jpg' @ convert.c/
ConvertImageCommand/2822.
I downloaded and installed the Japanese Font support for Adobe acrobat and can view the pdf with acrobat, but i keep getting this error with ImageMagick's convert utility.
Anybody know how i can fix this?