GhostScript: Rendern von PDF-Schriftarten als Glyphen - wird abgebrochen, da 'default_gray.icc nicht gefunden wurde'

553
0__

Dieses Skript funktionierte früher für mich und renderte Schriftarten in einer PDF-Datei als Glyph-Pfade, sodass sie beim Bearbeiten der Datei in Inkscape nicht verkrüppelt wurden:

#!/bin/sh  if [ "x$1" = "x" -o "x$2" = "x" ]; then echo Usage: `basename "$0"` "<input.pdf>" "<output.pdf>" >&2 exit 1 fi  gs -sDEVICE=pswrite -dNOCACHE -sOutputFile=- -q -dbatch \ -dNOPAUSE -dQUIET "$1" -c quit | ps2pdf - "$2" 

Auf einem neuen Computer (Debian Stretch) werden jedoch beim Ausführen folgende Fehler angezeigt:

$ pdf-fonts-to-outlines in.pdf out.pdf ./base/gsicc_manage.c:1148: gsicc_open_search(): Could not find default_gray.icc  | ./base/gsicc_manage.c:1789: gsicc_set_device_profile(): cannot find device profile Error: /undefined in Unknown Operand stack:  Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1999 1 3 %oparray_pop 1998 1 3 %oparray_pop 1982 1 3 %oparray_pop 1868 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:1209/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)-- Current allocation mode is local GPL Ghostscript 9.20: Unrecoverable error, exit code 1 

Wie kann ich das beheben? (In diesem Fall enthält die PDF-Eingabe Farben. Ich möchte keine Farbräume usw. konvertieren.)

0

1 Antwort auf die Frage

0
0__

Dies wird in einer Frage bei Stackoverflow tatsächlich beantwortet :

das gerät wird ps2writeheutzutage gerufen.

Ändern pswritefür ps2writebehebt das Problem.