This repository was archived by the owner on Feb 16, 2023. It is now read-only.
Automatically crop borders? #1415
Unanswered
denilsonsa
asked this question in
Support
Replies: 2 comments
-
There are some suggestions at Super User and at Ask Ubuntu, but both suggestions ( |
Beta Was this translation helpful? Give feedback.
0 replies
-
I thought I could write a Pre-consumption script that would extract the images, crop them, and rebuild the PDF. Unfortunately, there is no |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to setup paperless/ocrmypdf/unpaper so that the empty borders around the actual document are trimmed?
Use-case: the (network-connected) scanner can easily scan an A4-sized sheet of paper. If I have smaller page,
I could theoretically fiddle with the settings in the scanner to set up the exact page dimensions, but that is difficult to do and very time-consuming.(EDIT: no, this scanner doesn't allow that; it only accepts a few preset sizes.) Instead, it is quicker to just scan everything in the default A4 size, and trim the excess later. My question is… how to trim this excess?I know I can manually get the PDF from the scanner, use
pdfimages -all
to extract the JPEG of each page, then usecropgtk
orjpegtran
to crop the borders manually (hoping to preserve the DPI), then useimg2pdf
to rebuild the PDF. Clearly, this is a lot of work. Can we get something better? Something a bit more automated?Beta Was this translation helpful? Give feedback.
All reactions