On 18-Jul-05 Johannes Meixner wrote:
Hello,
On Jul 18 09:07 Ted.Harding@nessie.mcc.ac.uk wrote (shortened):
I've got some PS files ... ... The other possibility I've tried is pstops. The command
pstops 1:0@.7 infile.ps outfile.ps
reduces the scale of the printing by a factor of 0.7 (as it says on the box). But this is not what I want: I want to scale up by about 1.5, not scale down. However,
pstops 1:0@1.5 infile.ps outfile.ps
leaves the scale unchanged.
It depends on your particuilar "some PS files".
Examples:
A working example:
echo foo | a2ps -1 -M A5 -o in.ps pstops 1:0@0.7 in.ps out-0.7.ps pstops 1:0@1.4 in.ps out-1.4.ps
Now view them directly with "gs" to avoid any unwanted side effects from "smart" applications:
gs in.ps gs out-0.7.ps gs out-1.4.ps
(Finish with [Ctrl]+[C].)
A non-working example:
echo '100 100 100 200 rectstroke showpage' >in2.ps
Here the missing BoundingBox and other DSC comments make it impossible for the psutils to change the size.
I.e. the PostScript document must have appropriate DSC comments so that psutils can change them.
Thanks for these comments, Johannes.
They are PS files produced from PDF files by printing to PS
from Acobat Reader. I have checked that they have a
%%BoundingBox line, and per-page DSC comments as well.
They don't however have %%PageBoundingBox comments -- might
this be a problem?
Perhaps I'll try using 'acroread --toPostScript ...' instead
of simply printing to file.
What has puzzled me is that while decreasing the size with
'pstops' works, increasing the size does not. I expected
that if one would work then the other would, which led me
to wonder if pstops does not accept scale factors > 1.
Thanks again, and best wishes,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding)