View Single Post
Old 05-12-2023, 02:22 PM   #1
Shohreh
Addict
Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.
 
Posts: 207
Karma: 304158
Join Date: Jan 2016
Location: France
Device: none
Question [SOLVED] Hard trimming PDFs?

Hello,

I need to hard-trim PDFs, ie. the stuff outside the mediabox should really be gone from the output file.

I tried the following, but they only perform visual trimming, ie. it's displayed as expected but the data's actually still in the file:

Code:
cpdf.exe -crop "0 0 400pt 600pt" input.pdf 1-50 -o output.pdf input.pdf

pdfcpu.exe box add -- "media:[0 0 400 600]" input.pdf output.pdf

mutool.exe trim -b mediabox -o output.pdf input.pdf
Is there a tool, preferably open-source, that supports hard-trimming?

Thank you.

Last edited by Shohreh; 05-14-2023 at 08:49 AM.
Shohreh is offline   Reply With Quote