Thanks. I forgot to say I need to call it through the CLI in a batch script to trim a bunch of pages.
Would you have an example?
Code:
C:\k2pdfopt>k2pdfopt.exe /?
k2pdfopt v2.51a (w/MuPDF,DjVuLibre,OCR) (c) 2019, GPLv3, http://willus.com
Compiled Jan 4 2019 with Gnu C (Mingw32) v7.3.0 for Win32 on i386.
a. Autostraighten (-as) n. Native PDF output (-n)
b. Bitmap type (-jpg,-png,-bpc) o. Output name (-o)
bp. Break pages (-bp,-f2p) oc. OCR (-ocr,-ocrvis,...)
c. Color/Negative output (-c, -neg) om. Output margins (-om)
co. Column detection (-col,-ch,...) p. Page range (-p)
cs. Contrast/Sharpen (-cmax,-g,-s,-wt) pd. Padding/Marking (-p[lrbt],-mc)
d. Device selection (-dev,-h,-w,-dpi) r. Right-to-left page scans (-r)
ds. Document scale factor (-ds) rt. Rotate source page (-sr)
f. Fit to single column (-fc) s. Special (-de,-evl,-gs)
gt. Gap thresholds (-gt...) sm. Show marked source (-sm)
j. Justification (-j) u. Usage (command line opts)
l. Landscape mode (-ls) v. Vertical spacing (-vb,-vs)
m. Margin to ignore (-m) w. Wrap/Reflow text (-wrap,-ws)
mo. Mode (-mode) x. Exit on completion (-x)
Selected options: /?