Vincent Bernat on Fri, 9 Nov 2001 08:35:48 +0100 (CET)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Problem when printing some windows postscript files


Hello !

I have found a little problem with apsfilter. It occurs when I print a
postscript file issued by the generic postscript driver of Windows
98. When I print this postscript file, I get a first page with "%%[
ProductName AFPL Ghostscript ]%%" on it and it only prints one page
since my printer complains about bad PCL.

I have a Samsung ML 6060 which can uses PCL 6. I use the driver
pxlmono which works fine.

Here is what I think. If I try to apply manually the command that
apsfilter uses to print, but if instead of asking to print to the
standard output, I use a file, I get this :

neo bernat/tmp> gs -q -dNOPAUSE -dSAFER -sDEVICE=pxlmono -r600x600 \
                -sPAPERSIZE=a4 -sOutputFile=cs3.pcl cs.ps 
%%[ ProductName: AFPL Ghostscript ]%%
%%[ Page: 1 ]%%
%%[ Page: 2 ]%%
%%[ Page: 3 ]%%
%%[ Page: 4 ]%%
%%[ Page: 5 ]%%
%%[ Page: 6 ]%%
%%[ Page: 7 ]%%
%%[ Page: 8 ]%%
%%[ Page: 9 ]%%
%%[ Page: 10 ]%%
%%[ Page: 11 ]%%
%%[ Page: 12 ]%%
%%[ Page: 13 ]%%
%%[ Page: 14 ]%%
%%[ Page: 15 ]%%
%%[ Page: 16 ]%%
%%[ Page: 17 ]%%
%%[ Page: 18 ]%%

If I use now the standard output and I pipe to /dev/null the result, I
get :

neo bernat/tmp> psselect -p1-5 cs.ps | gs -q -dNOPAUSE -dSAFER \
                -sDEVICE=pxlmono \
                -r600x600 -sPAPERSIZE=a4 -sOutputFile=- - > /dev/null
[1] [2] [3] [4] [5] Wrote 5 pages, 290096 bytes

So, "%%[ ProductName: AFPL Ghostscript ]%%" is issued on the standard
output and it is mixed in apsfilter with the PCL code. I don't know
how to fix this easily. Maybe by using a temp file ? Or by filtering
postscript comments ?

Regards,
-- 
SHOOTING PAINTBALLS IS NOT AN ART FORM
SHOOTING PAINTBALLS IS NOT AN ART FORM
SHOOTING PAINTBALLS IS NOT AN ART FORM
-+- Bart Simpson on chalkboard in episode 5F23