pdfcrop --margins '5 10 5 20' input.pdf output.pdf
pdfcrop --margin '5 10 5 20' 0.pdf 0_croped.pdf
Invalid margin size. Margin size must be an integer
pdfcrop -m 5 0.pdf 0_croped.pdf
ps2pdf had returncode 1Converted page 2 **** Warning: Generation number out of 0..65535 range, assuming 0. **** Warning: File has an invalid xref entry: 2. Rebuilding xref table. **** This file had errors that were repaired or ignored. **** The file was produced by: **** >>>> itext-paulo-155 (itextpdf.sf.net-lowagie.com) <<<< **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.Traceback (most recent call last): File "/usr/local/bin/pdfcrop", line 153, in <module> out, err = ps2pdf.communicate(out) File "/usr/lib/python2.5/subprocess.py", line 668, in communicate return self._communicate(input) File "/usr/lib/python2.5/subprocess.py", line 1156, in _communicate bytes_written = os.write(self.stdin.fileno(), buffer(input, input_offset, 512))OSError: [Errno 32] Broken pipe
[yurchor@mycomp Books]$ pdfcrop --margins '5 10 5 20' LineJaqe.pdf cropped.pdfPDFCROP 1.5, 2004/06/24 - Copyright (c) 2002, 2004 by Heiko Oberdiek.==> 98 pages written on `cropped.pdf'.
Дайте, будь-ласка, посилання на rpm або deb pdfcrop 1.5, бо не знаходжу чомусь. На Sourceforge тільки 1.0 (теж глючить) та 2.0(не робе).