mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-25 10:35:25 +02:00
pdfcrop: add page (#10859)
* pdfcrop: add page --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
ad91608331
commit
e217a74172
1 changed files with 28 additions and 0 deletions
28
pages/linux/pdfcrop.md
Normal file
28
pages/linux/pdfcrop.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# pdfcrop
|
||||
|
||||
> Detect and remove margins in each page in a PDF file.
|
||||
> More information: <https://github.com/ho-tex/pdfcrop>.
|
||||
|
||||
- Automatically detect and remove the margin for each page in a PDF file:
|
||||
|
||||
`pdfcrop {{path/to/input_file.pdf}} {{path/to/output_file.pdf}}`
|
||||
|
||||
- Set the margins of each page to a specific value:
|
||||
|
||||
`pdfcrop {{path/to/input_file.pdf}} --margins '{{left}} {{top}} {{right}} {{bottom}}' {{path/to/output_file.pdf}}`
|
||||
|
||||
- Set the margins of each page to a specific value, using the same value for left, top, right and bottom:
|
||||
|
||||
`pdfcrop {{path/to/input_file.pdf}} --margins {{300}} {{path/to/output_file.pdf}}`
|
||||
|
||||
- Use a user-defined bounding box for cropping instead of automatically detecting it:
|
||||
|
||||
`pdfcrop {{path/to/input_file.pdf}} --bbox '{{left}} {{top}} {{right}} {{bottom}}' {{path/to/output_file.pdf}}`
|
||||
|
||||
- Use different user-defined bounding boxes for odd and even pages:
|
||||
|
||||
`pdfcrop {{path/to/input_file.pdf}} --bbox-odd '{{left}} {{top}} {{right}} {{bottom}}' --bbox-even '{{left}} {{top}} {{right}} {{bottom}}' {{path/to/output_file.pdf}}`
|
||||
|
||||
- Automatically detect margins using a lower resolution for improved performance:
|
||||
|
||||
`pdfcrop {{path/to/input_file.pdf}} --resolution {{72}} {{path/to/output_file.pdf}}`
|
Loading…
Add table
Reference in a new issue