2012-03-01 3 views
0

모두Ghostscript 글꼴 변환 문제

pdf 글꼴 문제가 있습니다. 원본에는 실선이 표시되어 있지만 복사하면 클립 보드에 ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ이 표시됩니다.

그건 나에게 약간의 특수한 글꼴이 사용되고 있다는 것을 의미합니다. 문제는이 pdf를 ghostscript에 대한 입력으로 사용한다는 것입니다.이 줄은 X가 들어있는 상자가됩니다. Boxes in pdf

Line in pdf

약간의 검색 후, 나는 this answer을 가로 질러왔다. -c 명령은 상자를 성공적으로 제거하지만 줄은 여전히 ​​없습니다. 윈도우에 gswin64c.exe -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf USA_15238-2897_5853101.pdf 실행

7 64 비트 시스템, 나는 다음과 같은 출력을 얻을 :

GPL Ghostscript 9.04 (2011-08-05) 
Copyright (C) 2011 Artifex Software, Inc. All rights reserved. 
This software comes with NO WARRANTY: see the file PUBLIC for details. 
Processing pages 1 through 2. 
Page 1 
Substituting font Courier-Bold for CourierNew,Bold. 
Loading NimbusMonL-Bold font from %rom%Resource/Font/NimbusMonL-Bold... 3825552 2503053 2085544 
779106 3 done. 
Substituting font Courier for CourierNew. 
Loading NimbusMonL-Regu font from %rom%Resource/Font/NimbusMonL-Regu... 3986304 2660967 2146096 
844377 3 done. 
Can't find (or can't open) font file %rom%Resource/Font/ArialMT. 
Can't find (or can't open) font file ArialMT. 
Can't find (or can't open) font file %rom%Resource/Font/ArialMT. 
Can't find (or can't open) font file ArialMT. 
Querying operating system for font files... 
Didn't find this font on the system! 
Substituting font Helvetica for ArialMT. 
Loading NimbusSanL-Regu font from %rom%Resource/Font/NimbusSanL-Regu... 4100320 2785188 2226832 
918025 3 done. 
Page 2 
Substituting font Courier-Bold for CourierNew,Bold. 
Substituting font Courier for CourierNew. 

글꼴 경로 스위치, 를 글꼴을 찾을 수 있습니다 만에 라인을 수정하지 않는 한 윈도우 글꼴 폴더 추가를 박스 문제.

GPL Ghostscript 9.04 (2011-08-05) 
Copyright (C) 2011 Artifex Software, Inc. All rights reserved. 
This software comes with NO WARRANTY: see the file PUBLIC for details. 
Processing pages 1 through 2. 
Page 1 
Substituting font Courier-Bold for CourierNew,Bold. 
Loading NimbusMonL-Bold font from %rom%Resource/Font/NimbusMonL-Bold... 3825552 2503973 2105728 
793286 3 done. 
Substituting font Courier for CourierNew. 
Loading NimbusMonL-Regu font from %rom%Resource/Font/NimbusMonL-Regu... 3986304 2661903 2166280 
858469 3 done. 
Can't find (or can't open) font file %rom%Resource/Font/ArialMT. 
Can't find (or can't open) font file ArialMT. 
Can't find (or can't open) font file %rom%Resource/Font/ArialMT. 
Can't find (or can't open) font file ArialMT. 
Querying operating system for font files... 
Didn't find this font on the system! 
Substituting font Helvetica for ArialMT. 
Loading NimbusSanL-Regu font from %rom%Resource/Font/NimbusSanL-Regu... 4100320 2786124 2247016 
932205 3 done. 
Page 2 
Substituting font Courier-Bold for CourierNew,Bold. 
Substituting font Courier for CourierNew. 

을하지만 라인은 이제 PDF로 공간입니다 : gswin64c.exe -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf -c ".setpdfwrite <</NeverEmbed [ ]>> setdistillerparams" -f USA_15238-2897_5853101.pdf 실행

이를 생성합니다. 복사하여 붙여 넣으면 ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─이됩니다.

원본 PDF에서 줄을 지우려면 어떤 고스트 스크립트 스위치를 추가해야합니까?

답변

1

PDF 파일을 보지 않고도 어떤 일이 벌어지고 있는지 말할 수 없습니다. Ghostscript로 PDF로 변환 한 후 복사 + 붙여 넣기가 작동하지 않는다는 점을 유의하십시오. 특히

이미 PDF 파일이 있으므로 PDF로 변환하는 이유는 무엇입니까?

가장 가능성있는 문제는 Courier-New 로의 Courier 대체이지만 파일을 보지 않고는 확신 할 수 없습니다.

+0

Ghostscript를 사용하여 여러 PDF 파일을 결합했습니다. 나는 복사와 붙여 넣기에 신경 쓰지 않는다. 나는 외관에 관심이있다. 복사를 언급 한 이유는 유니 코드 글꼴이 벡터 그래픽 대신 선을 생성하는 데 사용되고 있기 때문입니다. 민감한 데이터가 포함되어 있으므로 원본 pdf를 제공 할 수 없습니다. 'Courier'와'Courier-New'의 차이점은 무엇입니까? –

+0

나는 이것을 Courier 폰트 대체 였기 때문에 대답으로 받아 들일 것이다. 나를 올바른 방향으로 가리켜 주셔서 감사합니다. –

+0

하지만 택배 글꼴 대체를 고스트 스크립트에서 전환 한 이유는 무엇입니까? – Joe