The way I use pstops to crop the pages is: pstops '[EMAIL PROTECTED](-1.2in,-1.3in)' "in.ps" "out.ps"
where 1.1 is the zoom factor, -1.2in is the X offset, and -1.3in is the Y offset. It's a bit lame when u just wanna cut off the margins, but I'm sure you can figure out the mathematical formula for converting margins to zoom/shift factors... =P 1.3, -1.3in, and -1.3in seems to work alright for LaTeX documents with large margins, but I'm sure you can optimize it more if you really wanted to. -Mark On Sat, 10 Dec 2005, Henry House wrote: > P� 2005-12-10, skrev Peter Jay Salzman: > [...] > > What I'd really like is some utility that allows me to cut the margins of a > > pdf or ps file. This would allow me to use a larger scale factor and not > > have the pages overlap each other. > > > > I'm thinking something like gimp's crop tool. Its "autoshrink" option, > > which auto-crops to a box that *just barely* surrounds the content, would > > be ideal. Of course, I can't use gimp on a 100 page postscript document, > > but this is what I'd like to do. > > > > Are there any utilities out there that would: > > > > 1. crop blank margins of a ps or pdf file > > > > 2. crop margin dimensions specified by me (not ideal, but I could take > > out a ruler and measure the margins myself). > > I believe that pstops(1) could do this for you. Good luck figuring out how > to use it, though. ;-) > > Re-writing the a postscript file via fixps(1) (which is just a shell-script > wrapper around gs) in my experience usually has the effect of trimming the > blank spaces from the margins. The smarter way would be to call gs directly > using your own custom shell script, but I just use fixps because the > interface of gs is unfamiliar to me. > > Besides psnup, another utility for tiling multiple logical pages per sheet > is mpage(1). > > I hope this helps! > > -- > Henry House > +1 530 753 3361 ext. 13 > Please don't send me HTML mail! My mail system frequently rejects it. > The unintelligible text that may follow is a digital signature. > See <http://hajhouse.org/pgp> to find out how to use it. > My OpenPGP key: <http://hajhouse.org/hajhouse.asc>. > > -- Mark K. Kim AIM: markus kimius Homepage: http://www.cbreak.org/ Xanga: http://www.xanga.com/vindaci Cyworld: http://www.cyworld.com/markuskimius <-- NEW! Friendster: http://www.friendster.com/user.php?uid=13046 PGP key fingerprint: 7324 BACA 53AD E504 A76E 5167 6822 94F0 F298 5DCE PGP key available on the homepage _______________________________________________ vox-tech mailing list [email protected] http://lists.lugod.org/mailman/listinfo/vox-tech
