2013-10-18 3 views
1

Ghostscript 9.10을 사용하여 pdf 문서를 tiff로 변환하려고합니다. pdf에는 TrueType (CID) Arial 및 Calibri 글꼴이 포함되어 있습니다.글꼴이 고스트 스크립트에 올바르게 매핑되지 않았습니다.

내가 사용하고 명령 줄은 다음

gswin32.exe -dSAFER -dBATCH -r200 -sDEVICE= tifflzw -sOutputFile=d:\temp\tmp.tiff D:\Temp\test.pdf 

을 변환에 성공하지만, 돋움 부분이 나오는 난도질 나는이 (가) cidfmap에 다음의 서로 다른 조합을 추가하는 시도

:

/Calibri << /Path (c:/windows/Fonts/Calibri.ttf) /SubfontID 0 /FileType /TrueType /CSI [(Identity-H) 0] >> ; 
/Calibri << /Path (c:/windows/Fonts/Calibri.ttf) /SubfontID 0 /FileType /TrueType /CSI [(Unicode) 0] >> ; 
/Calibri << /Path (c:/windows/Fonts/Calibri.ttf) /SubfontID 0 /FileType /TrueType /CSI [(Identity) 0] >> ; 

그러나 cidfmap에 대한 변경 사항으로 명령을 실행하면 다음과 같은 메시지가 표시됩니다.

**** Warning: can't process font stream, loading font by the name. 
**** Error reading a content stream. The page may be incomplete. 
**** File did not complete the page properly and may be damaged. 

임베디드 arial 글꼴은 문제없이 처리되며 tiff에서 올바르게 출력됩니다.

Can't find CID font "Arial". 
Attempting to substitute CID font /Adobe-Identity for /Arial, see doc/Use.htm#CI 
DFontSubstitution. 
The substitute CID font "Adobe-Identity" is not provided either. attempting to u 
se fallback CIDFont.See doc/Use.htm#CIDFontSubstitution. 
Loading a TT font from %rom%Resource/CIDFSubst/DroidSansFallback.ttf to emulate 
a CID font Adobe-Identity ... Done. 

아무도 내재 된 calibri 글꼴을 어떻게 다룰 생각이 있습니까?

+0

여기서 cidfmap 파일은 windows에 있습니까? – klaxon

+0

FWIW GS 9.15에서 이와 같은 오류 메시지가 많이 발생했지만 9.20과 함께 사라진 것처럼 보였습니다 ... 9.20의 특정 pdf에서 더 잘 작동합니다. – rogerdpack

답변

1

글꼴이 PDF 파일에 포함되어 있으면 글꼴 매핑을 제공 할 필요가 없습니다. 표시되는 메시지는 Arial이 이 아니며이 발견되었고 DroidSansFallback이 대신 사용된다는 것을 나타냅니다.

을 추가하는 경우 -I 스위치를 사용하여 Ghostscript를 실행하면 실제로 cidfmap 파일을 처리하지 않습니다. 기본적으로 Ghostscript는 ROM 파일 시스템을 사용하며 모든 지원 파일은 실행 파일에 컴파일됩니다.

아마도 오류를 가져 오기 위해이 작업을 수행해야합니다. 어떤 경우에도 내가 제안 할 첫 번째 것은 명령 줄에서 -dSAFER를 제거하면 Ghostscript가 디스크의 대부분의 파일, 특히 사용하려는 글꼴 파일을 열지 못하게하는 것입니다.

관련 문제