Author Topic: Scanning books  (Read 1440 times)

0 Members and 1 Guest are viewing this topic.

Offline Alex EisenhutTopic starter

  • Super Contributor
  • ***
  • Posts: 3549
  • Country: ca
  • Place text here.
Scanning books
« on: November 14, 2020, 07:07:05 pm »
When scanning books on top of a flatbed all-in-one printer/scanner, you have to flip the book around every other page.

Why don't scanners have a "flip every other page" option when creating a PDF?

Or are there some that do?

The idea that I have to edit the PDF after annoys me.

And are there any scanning apps that are good enough to scan technical stuff with? Like they'll get the grayscale stuff and graphs right?
« Last Edit: November 14, 2020, 07:16:38 pm by Alex Eisenhut »
Hoarder of 8-bit Commodore relics and 1960s Tektronix 500-series stuff. Unconventional interior decorator.
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6420
  • Country: de
Re: Scanning books
« Reply #1 on: November 14, 2020, 07:22:43 pm »
Just change your scanning behaviour :)

Scan the left page, then shift the book so you scan the right page. A general cutting of the format afterwards is easy.
 

Offline Alex EisenhutTopic starter

  • Super Contributor
  • ***
  • Posts: 3549
  • Country: ca
  • Place text here.
Re: Scanning books
« Reply #2 on: November 14, 2020, 07:36:27 pm »
I can't, unless the top comes off. It doesn't. It moves up by about an inch, that's it.

Hoarder of 8-bit Commodore relics and 1960s Tektronix 500-series stuff. Unconventional interior decorator.
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 17427
  • Country: us
  • DavidH
Re: Scanning books
« Reply #3 on: November 14, 2020, 08:09:01 pm »
I have always scanned to image files and then edited the files before assembling into a PDF.  Typically this means editing a couple files to make a set of macros to perform the same steps on all of them, which could include rotating every other file if necessary.
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 10172
  • Country: gb
Re: Scanning books
« Reply #4 on: November 14, 2020, 09:54:01 pm »
PDFsam Basic has a tool for rotating even or odd pages. In fact it's a great tool for splitting, joining, extracting pages, merging alternate etc.

Best of all, it's open source and free. I've been using it for a while ....

https://pdfsam.org/

Best Regards, Chris
 
The following users thanked this post: ebclr, Alex Eisenhut

Offline edy

  • Super Contributor
  • ***
  • Posts: 2387
  • Country: ca
    • DevHackMod Channel
Re: Scanning books
« Reply #5 on: November 17, 2020, 02:44:32 pm »
PDFsam Basic has a tool for rotating even or odd pages. In fact it's a great tool for splitting, joining, extracting pages, merging alternate etc.

Best of all, it's open source and free. I've been using it for a while ....

https://pdfsam.org/


I agree, I usually just scan all pages and then reshuffle the pages using an automated PDF tool in Linux (of which there are a number). PDFSam is good, but there are plenty more and scripts you can use.

For example, my Automatic Document Feeder is good at feeding in pages initially but sometimes gets jammed when it tries to reverse it for double-sided scans. So to avoid jams, I just scan in all EVEN pages first (pretend it is a 1-side scan), then flip the whole pile over and rescan in all the ODD pages (which are now in reverse order). Once everything is scanned I use software to shuffle everything back to the proper order.

There are a huge number of command-line Linux PDF programs (some of these are just wrappers for the toolkit):

pdftk
pdfjam
pdfseparate
pdfjoin
pdftops
ps2pdf
poppler-utils
pdfunite

There is this command to collate pages:  pdftk A=odd.pdf B=even.pdf shuffle A B output collated.pdf

And if you happen to scan one in reverse order (flipping the pile over like I do) then you do this:

pdftk A=recto.pdf B=verso.pdf shuffle A Bend-1 output collated.pdf

Another option:

Just a bash quick shot using pdfjam:

Build an array of input arguments:

for k in $(seq 1 ${N_PAGES}); do
    PAGES+=(odd.pdf);
    PAGES+=($k);
    PAGES+=(even.pdf);
    PAGES+=($k);
done
This should allow you to use it as input list for pdfjoin:

 pdfjoin ${PAGES
  • } --outfile shuffled.pdf


I won't copy more examples here but basically you can find a bunch of ways to do it on this excellent page:

https://unix.stackexchange.com/questions/53295/how-to-merge-2-pdf-files-with-interleaving-pages-order


« Last Edit: November 17, 2020, 03:15:02 pm by edy »
YouTube: www.devhackmod.com LBRY: https://lbry.tv/@winegaming:b Bandcamp Music Link
"Ye cannae change the laws of physics, captain" - Scotty
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 4004
  • Country: nl
Re: Scanning books
« Reply #6 on: November 22, 2020, 06:28:33 pm »
Some 10 to 15 years ago, when computers became powerful enough book scanners were a hot topic, and in those days also a lot of diy projects got started.

https://duckduckgo.com/?q=book+scanner&t=h_&iax=images&ia=images

If I wanted to scan more then a few books myself, I would make a "tent" like structure from two glass plates, and then drape the book over the "tent", and then use two photo camera's to make pictures of the odd and even pages.
This halves the amount of manual flippin / rotation, and taking a picture is a lot quicker then waiting for a page to be scanned by a line scanner. Decent camera's these days also have enough resolution.
 
The following users thanked this post: cdev

Offline tooki

  • Super Contributor
  • ***
  • Posts: 13156
  • Country: ch
Re: Scanning books
« Reply #7 on: November 22, 2020, 07:03:50 pm »
When scanning books on top of a flatbed all-in-one printer/scanner, you have to flip the book around every other page.

Why don't scanners have a "flip every other page" option when creating a PDF?

Or are there some that do?

The idea that I have to edit the PDF after annoys me.

And are there any scanning apps that are good enough to scan technical stuff with? Like they'll get the grayscale stuff and graphs right?
If the original book is in any way dispensable, go to a print shop and have them use their large guillotine to slice off the spine, leaving you with a stack of loose pages you can dump in the ADF and scan all at once. It'll produce better output with far less effort.
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5170
  • Country: ro
  • .
Re: Scanning books
« Reply #8 on: November 22, 2020, 07:06:22 pm »
With my standalone scanner, I used  Irfanview to scan individual pages and automatically save them as PNG (or whatever) files, with specific file names that can contain a counter :



So basically, open the scanner, press Alt+S  (or the shortcut that scans the page), Irfanview receives the page and automatically saves it as png as ScanImage00001, then flip the page manually and press Alt+S again to get ScanImage00002 and so on.

I'm scanning just odd pages, and then scan the even pages in another folder.

Irfanview also has a batch conversion/rename feature, so I can load a whole set of even or odd pages and crop the borders and if I want to Auto Adjust Colors or reduce to Grayscale or increase contrast, whatever.
Basically, rather then messing with the scanner's options to select a specific part of the page to scan, I just scan the whole surface and then do a batch crop on the whole image set. 

Total Commander has a Multi-Rename Tool where you can select the whole folder with ScanImage0001 , ScanImage0002  and you can specify to have the file names changed .... basically  you can say Rename to  "Page[C].png"  and define C as counter, start from 1, jump by 2, 3 digits every time... so now your odd pages become: 

ScanImage00001.png -> Page001.png
ScanImage00002.png -> Page003.png
 
Repeat with the "even" image set , but configure the counter to start from 2 instead of 1. 

At the end, you can merge the two folders and you have the whole book as consecutive png images.  You can feed the images into an ocr software like Abby Fineprint or something else, or you could just use Adobe Acrobat Pro to create a big PDF out of it.


With a multifunctional I'd imagine it's the same thing.... basically I'd hit scan to scan the whole set of pages on one side, the scan the other side, then use rename tool to set counters in the file names to put the files in the right order.
 
Quote
If the original book is in any way dispensable, go to a print shop and have them use their large guillotine to slice off the spine, leaving you with a stack of loose pages you can dump in the ADF and scan all at once. It'll produce better output with far less effort.

Yeah. When i don't care about the spine, I just use a ruler or one of those sharp blades to cut the pages at the spine, then simply align the pages, put the side that wasn't manually cut to the edge ... i can always batch crop the pictures to remove the "noise" on the edge.
« Last Edit: November 22, 2020, 07:11:45 pm by mariush »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf