[cw-discuss] wine postscript printer driver config
Ant
ant at symons.net.au
Thu Jun 7 04:20:41 CDT 2007
Im trying to use word inside wine to convert docs to postscript files.
Im using vbscript to remote control word, and tell it to print to the
wine postscript printer driver. Then i'm grabbing the postscript file
off disk for further processing. Ive looked at openoffice, and the wv
set of tools and while they were easyer and quicker, the output was not
always exactly 100% which is a requirement.
Ive just noticed that when I convert the postscript to a g3 tiff file,
that the bounding box is enforced, which I set by the wine postscript
driver. The header of the ps file is:
[*] [1] %!PS-Adobe-3.0
%%Creator: Wine PostScript Driver
%%Title: Microsoft Word - template.doc
%%BoundingBox: 18 18 594 774
%%Pages: 4 0
%%EndComments
%%BeginProlog
After researching this it appears that the wineps driver is doing the
wrong thing. If I use ghostscript to calculate the required BoundingBox
to avoid cropping it comes up with:
> gs -sDEVICE=bbox -dNOPAUSE -dBATCH template.ps
ESP Ghostscript 815.04 (2007-03-14)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
%%BoundingBox: 19 56 543 774
%%HiResBoundingBox: 19.205999 56.587428 542.046218 773.999976
Loading NimbusMonL-Regu font
from /usr/share/fonts/default/Type1/n022003l.pfb... 2470180 1163097
2151548 808015 2 done.
%%BoundingBox: 17 17 588 774
%%HiResBoundingBox: 17.981999 17.981999 587.483982 773.999976
Its the second page thats getting cropped. Does anyone know if you can
set the bounding box to the very edges of the page in the wine
postscript driver?
Thanks,
Ant
More information about the discuss
mailing list