krop(1)
π krop β the manual page, but make it slay π
okay bestie, welcome to krop(1) from the General Commands Manual β¨ this is your girl explaining how to crop PDFs like a main character. let's go π«Ά
πΈ NAME πΈ
krop β a tool to crop PDF files π
β¨ SYNOPSIS β¨
krop [options] [file]
that's it. that's the whole vibe. options optional, file optional, chaos optional π
π¦ DESCRIPTION π¦
so like, this manual page is a brief little doc for the krop command, okay? not the whole novel, just the highlights π
krop is a simple graphical tool that crops the pages of PDF files. she's written in Python and she relies on PyQt plus PyMuPDF for her functionality β or, if that's not available, a suitable subset of pypdf / pikepdf / python-poppler-qt. so she's flexible, she's adaptable, she's giving resilient queen energy π
now here's the thing that makes her β¨uniqueβ¨: krop can automatically split pages into subpages so they fit on tiny screens, like the screens on devices such as eReaders ππ and ngl this is particularly useful if your eReader does not support convenient scrolling, because scrolling on an eReader is lowkey a crime against humanity π so yeah, krop ate with that one.
π OPTIONS π
here's a summary of the options bestie, and fr fr if you want the complete description you should use the --help option. that's the full menu, this is the sampler platter π
π Arguments:
fileβ the PDF file to open ποΈ
β Options:
-h,--helpβ show help, and this includes all the options, then exit π«Ά-v,--versionβ show the program's version number and exit π-o OUTPUT,--output OUTPUTβ where to save the cropped PDF πΎ--whichpages WHICHPAGESβ which pages to include in the cropped PDF, like"1-5"or"1,3-"(default: all) ποΈ--rotate {0,90,180,270}β how much to rotate the cropped PDF clockwise (default:0) π--optimize {gs,no}β whether to optimize the final PDF using ghostscript (default: previous choice) π»--grid GRIDβ if you set it to2x3, for instance, it creates a2x3grid of selections on the initial page; and if only one number is specified, the number of columns/rows is determined according to whether the page is landscape or portrait π--initialpage INITIALPAGEβ which page to open initially (default:1) πͺ--selections {all,evenodd,individual}β to which pages the selections should apply π―--exceptions EXCEPTIONSβ pages (e.g."1-5"or"1,3-") which require individual selections π--trimβ if specified, will auto trim initial selections βοΈ--trim-use {initial,all}β whether to inspect only the initial page or all pages when auto trimming (default: previous value) β heads up, inspecting all pages is slow! π--trim-padding TRIM_PADDINGβ how much padding to include when auto trimming (default: previous value) ποΈ--goβ output the PDF without opening the krop GUI (it uses the choices you supplied on the command line); and if you use it in a script without X server access, you can run krop usingxvfb-runπβοΈπ¨
ngl the --go flag is the "don't talk to me, just do the thing" option and honestly? iconic. no cap.
aaaand that's the whole page bestie!! π this was krop(1) from the General Commands Manual β go forth, crop those PDFs, split those pages, and be the main character of your own eReader experience πβ¨ππ¦πΈπ«Ά
π¦ where this page comes from
- ubuntu resolute: krop 0.7.0-0.1 Β· GPL-3.0-or-later
- ubuntu stonking: krop 0.7.0-0.2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms