当前位置: 首页 > OpenSource > 正文

pdf and postscript

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!!

 

本文固定链接: https://www.2hei.net/2008/02/26/pdf_and_postscript/ | 2hei.net

该日志由 u2 于2008年02月26日发表在 OpenSource 分类下,
原创文章转载请注明: pdf and postscript | 2hei.net

pdf and postscript:目前有3 条留言