[pdftex] Trying to print testpage with Acrobat Reader 5.06
The Thanh Han
hanthethanh at fptnet.com.vn
Mon Oct 28 17:37:11 CET 2002
I use a script to call acrobat or pdftops to print a pdf file to ps as
following:
printpdf [--pdftops|--acr|--a4|--a5|--letter|--lpr] <file>.pdf
the result is <file>.ps
if no option is specified then --acr (acroread) and --a4 is used.
--lpr prints the ps file using lpr, of course.
HTH,
Thanh
On Mon, Oct 28, 2002 at 09:03:02AM +0000, Sebastian Rahtz wrote:
> On Sun, 2002-10-27 at 23:42, Martin Schroeder wrote:
> .
> >
> > What helps is to toggle the pagesize in the page setup to letter
> > and back to A4. Weird...
>
> yup, I have to do that every time. it insists on starting up
> with lettersize dimensions every time. If there is a way
> around it, I have not found it yet after at least a year of
> frustration
> --
> Sebastian Rahtz OUCS Information Manager
> 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
>
> _______________________________________________
> pdftex mailing list
> pdftex at tug.org
> http://tug.org/mailman/listinfo/pdftex
#!/bin/bash
cmd() {
echo "$*"
eval "$*"
}
progname=$0
lpr=n
# a4 paper size in points:
a4w=595
a4h=842
a5w=420
a5h=595
# letter paper size in points:
letterw=612
letterh=792
# defaults:
program="acroread"
paperw=$a4w
paperh=$a4h
while test $# -gt 0; do
case "$1" in
--pdftops) program="pdftops"; shift ;;
--acr) program="acroread"; shift ;;
--a4) paperw=$a4w; paperh=$a4h; shift ;;
--a5) paperw=$a5w; paperh=$a5h; shift ;;
--letter) paperw=$letterw; paperh=$letterh; shift ;;
--lpr) lpr=y; shift ;;
*) break ;;
esac
done
if test "x$1" = "x"; then
echo Usage: $progname "[--pdftops|--acr|--a4|--a5|--letter|--lpr] <file>.pdf"
exit 1
fi
if test "$program" = "acroread"; then
cmd acroread -toPostScript -fast -size ${paperw}x${paperh} -pairs $1 ${1%.*}.ps
else
cmd pdftops -paperw $paperw -paperh $paperh $1 ${1%.*}.ps
fi
if test "$lpr" = "y"; then
cmd lpr ${1%.*}.ps
fi
--- StripMime Report -- processed MIME parts ---
multipart/mixed
text/plain (text body -- kept)
text/plain (text body -- kept)
---
More information about the pdftex
mailing list