1
General Discussion / Error when generating logos in PDF format
« on: November 15, 2017, 05:36:00 pm »
Hi Xiang-Jun,
When I run these commands:
cd examples/MatrixREDUCE/spellman-alpha
sh commandline.sh
LogoGenerator -file=results/psam_001.xml -format=pdf
I get the following error:
GPL Ghostscript 9.19:
ERROR:
Can't set GraphicsAlphaBits or TextAlphaBits with a vector device.
Unrecoverable error: rangecheck in .putdeviceprops
system('gs -sOutputFile=./psam_001.pdf \
-sDEVICE=pdfwrite \
-dPDFSETTINGS=/printer \
-dEmbedAllFonts=true \
-dDEVICEWIDTHPOINTS=340 \
-dDEVICEHEIGHTPOINTS=213 \
-q -r96 -dTextAlphaBits=4 -dSAFER -dBATCH -dNOPAUSE \
./temp_logo.eps
') returns nonzero (65280)
The error seems to be triggered by the "-dTextAlphaBits=4" option. When I run "gs" manually without it, it work fine.
Seems that this is a known problem with more recent versions of "gs". I use version 9.19 on a Mac OS 10.11.6.
Thanks,
Harmen
When I run these commands:
cd examples/MatrixREDUCE/spellman-alpha
sh commandline.sh
LogoGenerator -file=results/psam_001.xml -format=pdf
I get the following error:
GPL Ghostscript 9.19:
ERROR:
Can't set GraphicsAlphaBits or TextAlphaBits with a vector device.
Unrecoverable error: rangecheck in .putdeviceprops
system('gs -sOutputFile=./psam_001.pdf \
-sDEVICE=pdfwrite \
-dPDFSETTINGS=/printer \
-dEmbedAllFonts=true \
-dDEVICEWIDTHPOINTS=340 \
-dDEVICEHEIGHTPOINTS=213 \
-q -r96 -dTextAlphaBits=4 -dSAFER -dBATCH -dNOPAUSE \
./temp_logo.eps
') returns nonzero (65280)
The error seems to be triggered by the "-dTextAlphaBits=4" option. When I run "gs" manually without it, it work fine.
Seems that this is a known problem with more recent versions of "gs". I use version 9.19 on a Mac OS 10.11.6.
Thanks,
Harmen