pdf and postscript

作者: 2hei 发表于2008年2月26日 16:50
版权声明: 可以转载, 转载时务必以超链形式标明文章原始出处和作者信息及版权声明
http://www.2hei.net/mt/2008/02/pdf-and-postscript.html


when you want to covert postscript's file to pdf file
you can use ghostscript and gsview .

ghostscript's install.
next is gs copy the system's font to itself  .

I fond this in cidfmap ...
%!
% cidfmap generated automatically by mkcidfm.ps from fonts found in
%   C:/WINDOWS/fonts

% Substitutions
/BatangChe << /FileType /TrueType /SubfontID 1 /CSI [(Korea1) 3] /Path (C:/WINDOWS/fonts/batang.ttc) >> ;
/GungsuhChe << /FileType /TrueType /SubfontID 3 /CSI [(Korea1) 3] /Path (C:/WINDOWS/fonts/batang.ttc) >> ;
/Batang << /FileType /TrueType /SubfontID 0 /CSI [(Korea1) 3] /Path (C:/WINDOWS/fonts/batang.ttc) >> ;
/MS-Mincho << /FileType /TrueType /SubfontID 0 /CSI [(Japan1) 3] /Path (C:/WINDOWS/fonts/msmincho.ttc) >> ;
/NSimSun << /FileType /TrueType /SubfontID 1 /CSI [(GB1) 2] /Path (C:/WINDOWS/fonts/simsun.ttc) >> ;
/SimHei << /FileType /TrueType /SubfontID 0 /CSI [(GB1) 2] /Path (C:/WINDOWS/fonts/simhei.ttf) >> ;
/DotumChe << /FileType /TrueType /SubfontID 3 /CSI [(Korea1) 3] /Path (C:/WINDOWS/fonts/gulim.ttc) >> ;
/Gulim << /FileType /TrueType /SubfontID 0 /CSI [(Korea1) 3] /Path (C:/WINDOWS/fonts/gulim.ttc) >> ;
/Gungsuh << /FileType /TrueType /SubfontID 2 /CSI [(Korea1) 3] /Path (C:/WINDOWS/fonts/batang.ttc) >> ;
/MS-UI-Gothic << /FileType /TrueType /SubfontID 2 /CSI [(Japan1) 3] /Path (C:/WINDOWS/fonts/msgothic.ttc) >> ;
/MS-Gothic << /FileType /TrueType /SubfontID 0 /CSI [(Japan1) 3] /Path (C:/WINDOWS/fonts/msgothic.ttc) >> ;
/MS-PGothic << /FileType /TrueType /SubfontID 1 /CSI [(Japan1) 3] /Path (C:/WINDOWS/fonts/msgothic.ttc) >> ;
/MS-PMincho << /FileType /TrueType /SubfontID 1 /CSI [(Japan1) 3] /Path (C:/WINDOWS/fonts/msmincho.ttc) >> ;
/Dotum << /FileType /TrueType /SubfontID 2 /CSI [(Korea1) 3] /Path (C:/WINDOWS/fonts/gulim.ttc) >> ;
/GulimChe << /FileType /TrueType /SubfontID 1 /CSI [(Korea1) 3] /Path (C:/WINDOWS/fonts/gulim.ttc) >> ;
/MingLiU << /FileType /TrueType /SubfontID 0 /CSI [(CNS1) 2] /Path (C:/WINDOWS/fonts/mingliu.ttc) >> ;
/PMingLiU << /FileType /TrueType /SubfontID 1 /CSI [(CNS1) 2] /Path (C:/WINDOWS/fonts/mingliu.ttc) >> ;
/SimSun << /FileType /TrueType /SubfontID 0 /CSI [(GB1) 2] /Path (C:/WINDOWS/fonts/simsun.ttc) >> ;

% Aliases
/STFangsong-Light /SimSun ;
/HYSMyeongJo-Medium /Batang ;
/HeiseiMin-W3 /MS-Mincho ;
/STKaiti-Regular /SimHei ;
/STSong-Light /SimSun ;
/MKai-Medium /MingLiU ;
/MHei-Medium /MingLiU ;
/Ryumin-Medium /MS-Mincho ;
/HeiseiKakuGo-W5 /MS-Gothic ;
/MSung-Medium /MingLiU ;
/GothicBBB-Medium /MS-Gothic ;
/HYRGoThic-Medium /Gulim ;
/Ryumin-Light /MS-Mincho ;
/HYGoThic-Medium /Dotum ;
/STHeiti-Regular /SimHei ;
/MSung-Light /MingLiU ;

when you have gsview,you must edit the gsview32.ini


[GSview-4.9]
Version=4.9
GSversion=861
GhostscriptDLL=D:\Program Files\gs\gs8.61\bin\gsdll32.dll
GhostscriptInclude=D:\Program Files\gs\gs8.61\lib;D:\Program Files\gs\fonts;D:\Program Files\gs\gs8.61\Resource;C:/WINDOWS/fonts
GhostscriptOther=-dNOPLATFONTS -sFONTPATH="c:\psfonts"
Configured=1


sometimes you cant find the specific fonts in your country such as China's founder and huaguang.
when you open the ps file, the message is fallow.

------------------------------------------------------------
Substituting font Courier for JZDX.
Can't find (or can't open) font file D:\Program Files\gs\gs8.51\Resource/Font/JDH.
Can't find (or can't open) font file JDH.
Didn't find this font on the system!


ps-error1.jpg

 

 

 

 

 

 

 

 

 

 

 

------

 error2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

gs need fonts in C:\windows\fonts
also   D:\Program Files\gs\gs8.51\Resource/Font

so you must put the Font JDH in the directorys.
like this : D:\Program Files\gs\gs8.51\Resource/Font/JDH.

------------------------------------------------------------
But I fond the founder and huaguang'fonts can't agree with the ghostscript.

and the CMap also haven't this fonts.

Someone say founder's fonts isn't the standard ps file.  :(
------------------------------------------------------------
I will try to find how to resolve it!!

 

| | Comments (2) | TrackBacks (0)

2 Comments

I want to quote your post in my blog. It can?
And you et an account on Twitter?

2hei Author Profile Page 说:

OK, :)

发表一个评论

关于这篇文章

这篇文章由2hei2008年2月26日 16:50发布.

上一篇:Java Support on Pocket PC

下一篇:使用itext工具,实现java分割pdf文件

回到首页 或者查看归档文章