summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d85c362)
raw | patch | inline | side by side (parent: d85c362)
author | bryce <bryce@users.sourceforge.net> | |
Sat, 19 Jan 2008 03:02:32 +0000 (03:02 +0000) | ||
committer | bryce <bryce@users.sourceforge.net> | |
Sat, 19 Jan 2008 03:02:32 +0000 (03:02 +0000) |
share/extensions/ps2pdf.sh | patch | blob | history |
index 3e77ec30a006b6cb77fc918158533542ad2ec609..61b6dd146ad15a2201d72b6f7145a4ea4bba8dc1 100755 (executable)
params=`grep "^%%DocumentMedia:" "$1" | head -n 1 | awk '{ if (NF==7) { if ($2!="plain") print "-sPAPERSIZE=" $2; else print "-dDEVICEWIDTHPOINTS=" $3 " -dDEVICEHEIGHTPOINTS=" $4; } }'`
if [ "x${params}x" = "xx" ]
-then
+then
params=`grep "^%%BoundingBox:" "$1" | head -n 1 | awk '{ print "-dDEVICEWIDTHPOINTS=" $4 " -dDEVICEHEIGHTPOINTS=" $5; }'`
fi