У меня есть скомпилированный ghostscript 9.18 для Android. Когда я запускаю его, (я протестировал gs
и gs -sDEVICE=pdfwrite test.ps -sOutputFile=test.pdf
с test.ps действительного файлом постскриптум), я всегда эта ошибка:Ghostscript Не удалось открыть исходное устройство
**** Unable to open the initial device, quitting. Unrecoverable error: unknownerror in .special_op
У меня есть настроить его с ./configure --prefix=/data/local/tmp --build=x86_64-linux-gnu --host=i686-linux-android --with-system-libtiff
гса --help return:
Artifex Ghostscript 9.18 (2015-10-05)
Copyright (C) 2015 Artifex Software, Inc. All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
-dNOPAUSE no pause after page | -q quiet, fewer messages
-g<width>x<height> page size in pixels | -r<res> pixels/inch resolution
-sDEVICE=<devname> select device | -dBATCH exit after last file
-sOutputFile=<file> select output file: - for stdout, |command for pipe,
embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3 PDF
Default output device: bbox
Available devices:
ap3250 appledmp atx23 atx24 atx38 bbox bit bitcmyk bitrgb bitrgbtags
bj10e bj200 bjc600 bjc800 bmp16 bmp16m bmp256 bmp32b bmpgray bmpmono
bmpsep1 bmpsep8 ccr cdeskjet cdj500 cdj550 cdjcolor cdjmono cfax cif
cljet5 cljet5c cljet5pr coslw2p coslwxl cp50 declj250 deskjet devicen
dfaxhigh dfaxlow dj505j djet500 djet500c dnj650c eps2write eps9high
eps9mid epson epsonc escp faxg3 faxg32d faxg4 fpng fs600 gprf hl7x0
ibmpro ijs imagen inferno ink_cov inkcov itk24i itk38 iwhi iwlo iwlq
jbig2 jetp3852 jpeg jpegcmyk jpeggray laserjet lbp8 lips3 lj250 lj3100sw
lj4dith lj4dithp lj5gray lj5mono ljet2p ljet3 ljet3d ljet4 ljet4d
ljet4pjl ljetplus lp2563 lp8000 lq850 lxm5700m m8510 mgr4 mgr8 mgrgray2
mgrgray4 mgrgray8 mgrmono miff24 necp6 nullpage oce9050 oki182 okiibm
paintjet pam pamcmyk32 pamcmyk4 pbm pbmraw pcx16 pcx24b pcx256 pcx2up
pcxcmyk pcxgray pcxmono pdfwrite pgm pgmraw pgnm pgnmraw photoex picty180
pj pjetxl pjxl pjxl300 pkm pkmraw pksm pksmraw plan plan9bm planc plang
plank planm plib plibc plibg plibk plibm png16 png16m png256 png48
pngalpha pnggray pngmono pnm pnmraw ppm ppmraw ps2write psdcmyk psdcmykog
psdrgb pxlcolor pxlmono r4081 rinkj sgirgb sj48 spotcmyk st800 stcolor
sunhmono t4693d2 t4693d4 t4693d8 tek4696 tiff12nc tiff24nc tiff32nc
tiff48nc tiff64nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray tifflzw
tiffpack tiffscaled tiffscaled24 tiffscaled32 tiffscaled4 tiffscaled8
tiffsep tiffsep1 txtwrite uniprint xcf xpswrite
Search path:
%rom%Resource/Init/ : %rom%lib/ :
/data/local/tmp/share/ghostscript/9.18/Resource/Init :
/data/local/tmp/share/ghostscript/9.18/lib :
/data/local/tmp/share/ghostscript/9.18/Resource/Font :
/data/local/tmp/share/ghostscript/fonts :
/data/local/tmp/share/fonts/default/ghostscript :
/data/local/tmp/share/fonts/default/Type1 :
/data/local/tmp/share/fonts/default/TrueType :
/usr/lib/DPS/outline/base : /usr/openwin/lib/X11/fonts/Type1 :
/usr/openwin/lib/X11/fonts/TrueType
Ghostscript is also using fontconfig to search for font files
Initialization files are compiled into the executable.
For more information, see /data/local/tmp/share/ghostscript/9.18/doc/Use.htm.
Please report bugs to bugs.ghostscript.com.`
Любая идея исправить мою проблему? Thanks
Вы смогли это исправить? Могли ли вы конвертировать eps в pdf с помощью ghostscript на Android? – Zartha