首页 > OpenSource > pdf and postscript

pdf and postscript

2008年2月26日

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

 

分类: OpenSource 标签:
  1. 2009年12月25日19:41 | #1

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

  2. 2hei
    2009年12月26日10:51 | #2

    OK, 🙂

  3. 2010年12月21日09:32 | #3

    I was surfing looking for some information and came across your blog entry. I’m impressed, good job!

本文的评论功能被关闭了.