common problem with scanners

5 réponses [Dernière contribution]
muhammed
Hors ligne
A rejoint: 04/13/2013

I don't know how to limit scanners to particular page sizes. The scanner always seems to scan the full potential size (the full scan bed, or the automatic document feeder's full motor run time per page).

I have letter size pages to scan through the automatic document feeder. The scanner can potentially do legal size pages (longer than letter size).

So I get pdfs that are legal size. Each scanned page has a blank part at the bottom, where the scanner has done extra (unnecessary) scanning. I have tried a few different scanners with Simple Scan, and have had the same experience.

Can I correct it at the scanning stage? Or is there an easy way to change multi-page pdfs from legal size to letter size (without doing each page individually hopefully)? It's always the same bottom few inches that are blank.

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

"Letter size" is one of the size you can choose from Simple Scan's preferences (in the Document menu).

Otherwise, you can batch process all the PDFs with 'pdfjam --trim' (PDFJam is in Trisquel's repositories). If you kept the scans as images, you can use 'convert -crop' (from the ImageMagick suite, in Trisquel's repositories too) and specify a PDF output.

muhammed
Hors ligne
A rejoint: 04/13/2013

My scanner isn't listening to Simple Scan's preference settings. It's the same for the few other scanners that I have tried.

I'll try pdfjam. I found some instructions for pdfjam's trim command (Example 6 on the page below).

http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam/

ImageMagick can trim non-pdf images only right? Like png, jpg, etc?

Thanks MB

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

ImageMagick handles PDFs at input too.

muhammed
Hors ligne
A rejoint: 04/13/2013

Thanks again!

muhammed
Hors ligne
A rejoint: 04/13/2013

pdfjam worked! Well, I'm not surprised that it works. I am a little surprised that I got it to work.

I did a test run on a bunch of pdf files following the directions in Example 6. I ran into a hurdle; the newly letter-sized pages all output as a single pdf.

Then I remembered that you said to do it as a batch. Example 1 shows how to do batches. I added "--batch" right after the "pdfjam" instruction like this:

pdfjam --batch /home/muhammed/Desktop/testfolder/*.pdf --trim '0cm 7.62cm 0cm 0cm' --clip true --outfile /home/muhammed/Desktop/output/

And the files seem to output separately to the designated folder (my test files are all identical -- I'll have to try again with unique test files to be sure). What a great program.