2013-09-05 1 views

답변

2

당신이 (.PDF에 모든 글리프를 .eps를 변환하기위한 Jens Nöckel's method을 사용할 수 있습니다 (당신이 gs 최상위 고스트 디렉토리입니다 PATHgs\bings\lib를 추가 should Windows 용) 적절한 환경 변수를 GhostScript를 설치하고 설정 한 후) 요약됩니다

gsEPS2PDF[epsPath_String, pdfPath_String] := 
Run["gswin64c.exe -sDEVICE=pdfwrite -dNOCACHE -sOutputFile=\"" <> 
    pdfPath <> "\" -q -dbatch -dNOPAUSE \"" <> epsPath <> "\" -c quit"] 
다음

gswin64c.exe는 64 비트 Windows 시스템의 실행 고스트 스크립트의 이름이고, Linux 용 gs로 교체하십시오.

(폰트 윤곽없이) Kurt Pfeifle' code에 기초하는 또 다른 방법은 :

gsEPS2PDFEmbedFonts[epsPath_String, pdfOutputPath_String] := 
Run["gswin64c.exe -sFONTPATH=c:/windows/fonts -o \"" <> 
    pdfOutputPath <> 
    "\" -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress \"" <> epsPath <> 
    "\""] 
여기

c:/windows/fonts 폰트가있는 디렉토리이다. GhostScript 명령 줄 매개 변수에 대한 자세한 내용은 here을 참조하십시오.

0
gr = Import["file.eps", "eps"] 
Export["file.pdf", gr, "pdf"] 
+0

대부분의 경우 .eps 파일의 '가져 오기'는 [this]에 대해 '$ Failed'를 반환합니다 (http://stackoverflow.com/questions/18647024/how-cani-i-import-eps- in-mathematica-loss-the-losing-the-text? lq = 1 # comment27602188_18647024) 파일을 사용하는 것이 좋습니다. –

관련 문제