View Single Post
Old 05-14-2023, 05:07 PM   #13
Kromaa
Junior Member
Kromaa makes transoceanic flights without the assistance of an airplaneKromaa makes transoceanic flights without the assistance of an airplaneKromaa makes transoceanic flights without the assistance of an airplaneKromaa makes transoceanic flights without the assistance of an airplaneKromaa makes transoceanic flights without the assistance of an airplaneKromaa makes transoceanic flights without the assistance of an airplaneKromaa makes transoceanic flights without the assistance of an airplaneKromaa makes transoceanic flights without the assistance of an airplaneKromaa makes transoceanic flights without the assistance of an airplaneKromaa makes transoceanic flights without the assistance of an airplaneKromaa makes transoceanic flights without the assistance of an airplane
 
Kromaa's Avatar
 
Posts: 7
Karma: 55624
Join Date: May 2023
Location: France
Device: Kobo by Fnac Nia 6" 8 Go
Quote:
Originally Posted by Shohreh View Post
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.
I'm not sure I understand. Are you looking to cut out pieces of text from the pdf, or just select a new dimension?
Kromaa is offline   Reply With Quote