1 |
On Thu, May 21, 2020 at 03:26:37PM +0100, Ashley Dixon wrote: |
2 |
> On Thu, May 21, 2020 at 02:21:26PM -0000, Grant Edwards wrote: |
3 |
> > I'm looking for a command-line tool to crop a multi-page PDF document. |
4 |
> > |
5 |
> > I want to specify the crop window on the command line. |
6 |
> > |
7 |
> > I don't want it to automagically remove all of the marginal |
8 |
> > whitespace. |
9 |
> > |
10 |
> > I don't want GUI where I have to draw a box. |
11 |
> |
12 |
> How about pdfcrop from app-text/texlive-core ? It allows you manually specify |
13 |
> many things, although it does, inevitably, increase the file size for documents |
14 |
> with many pages. |
15 |
|
16 |
There is also [1], which is a slightly improved version of Oberdiek's pdfcrop. |
17 |
It uses pure GhostScript and Perl to work around some of the caveats of pdfcrop, |
18 |
including preserving interactive content (such as hyperref links in TeX |
19 |
documents) and allowing you to avoid emerging the huge texlive-core package for |
20 |
one small utility. |
21 |
|
22 |
[1] https://tex.stackexchange.com/a/42259/ |
23 |
|
24 |
-- |
25 |
|
26 |
Ashley Dixon |
27 |
suugaku.co.uk |
28 |
|
29 |
2A9A 4117 |
30 |
DA96 D18A |
31 |
8A7B B0D2 |
32 |
A30E BF25 |
33 |
F290 A8AA |