Daniel Reetz, the founder of the DIY Book Scanner community, has recently started making videos of prototyping and shop tips. If you are tinkering with a book scanner (or any other project) in your home shop, these tips will come in handy. https://www.youtube.com/channel/UCn0gq8 ... g_8K1nfInQ

General discussion about software packages and releases, new software you've found, and threads by programmers and script writers.
Misty
Posts: 481
Joined: 06 Nov 2009, 12:20
Number of books owned: 0
Location: Frozen Wasteland

Hi, everyone! I've made an updated Windows version of PDFBeads, using the latest version 1.0.9, which you can download right here. Testers needed! I haven't had the chance to try this out on a computer that doesn't have Ruby installed.

Requirements:
Don't worry about installing the gem - I took care of that for you. But you must install ImageMagick itself using the .exe file from that installer, and choose the "update executable search path" option.

jbig2enc from here: http://soft.rubypdf.com/software/window ... -jbig2-exe
This is optional, but you won't gain access to the superior JBIG2 compression without using this. You should place this somewhere that's accessible from your PATH environment variable. If you don't know what that means, then put jbig2.exe in c:\windows

pdfbeads is a commandline program, so you should run it from cmd.exe. Basic usage is something like this:

Code: Select all

pdfbeads *.tif > mybook.pdf
Your PDF will be output to the standard out, so remember the arrow when you choose the output name! Otherwise you'll get a lot of garbage in your terminal.
The opinions expressed in this post are my own and do not necessarily represent those of the Canadian Museum for Human Rights.

Misty
Posts: 481
Joined: 06 Nov 2009, 12:20
Number of books owned: 0
Location: Frozen Wasteland

### Re: PDFBeads 1.0.9 for Windows

By the way, here's how I did it:

* I installed Ruby using the Rubyinstaller.org binaries.
* I gem installed PDFBeads and its dependencies: rmagick and hpricot.
* I also gem installed ocra, the tool that packages up the .exe files.
* I navigated to the directory that contains PDFBeads - within your Ruby directory, that would be in lib\ruby\gems\(1.8 or 1.9)\gems\pdfbeads-1.0.9\bin

Code: Select all

require 'rubygems'
- without this, the final file won't work on Ruby 1.8.
* Finally, I ran this command:

Code: Select all

ocra pdfbeads --gem-full
That produces a pdfbeads.exe file in the same directory, which should work.
The opinions expressed in this post are my own and do not necessarily represent those of the Canadian Museum for Human Rights.

victoriaaustralia
Posts: 55
Joined: 07 Nov 2011, 16:22
Number of books owned: 2
Country: Australia
Location: Castlemaine, Victoria, Australia

### Re: PDFBeads 1.0.9 for Windows

Thank for you work on this Misty. I downloaded and followed instruction as best as possible. My skill level is low with computers with nil programming experience.

On opening your program I get a command window that does not allow me to type anything.

This stays open for twelve seconds then closes with the message:

Any ideas what I am doing wrong (Windows Vista Home Premium, Service Pack 1)
Freeware Windows workflow in 2020
viewtopic.php?f=19&t=3620

Heelgrasper
Posts: 70
Joined: 19 Feb 2012, 21:04
Number of books owned: 500
Location: Randers, Denmark

### Re: PDFBeads 1.0.9 for Windows

victoriaaustralia wrote: Any ideas what I am doing wrong (Windows Vista Home Premium, Service Pack 1)
You're not telling PDFBeads which files you want it to proceed. It's a command prompt type of program so you can just run it like that. Sorry to say that I can't help you out more than that but I run it indirectly so I have no clue to running it "pure".
---
Jakob Øhlenschlæger
Randers, Denmark

The past is a foreign country: they do things differently there
L. P. Hartley

victoriaaustralia
Posts: 55
Joined: 07 Nov 2011, 16:22
Number of books owned: 2
Country: Australia
Location: Castlemaine, Victoria, Australia

### Re: PDFBeads 1.0.9 for Windows

But the problem is that the command line does not allow me to type anything. I can bash away on the keyboard for all I am worth but nothing appears on the command line. Then after the twelve seconds delay the command window closes, seemingly no matter what I try and type or press.

As compared to your program Heelgrasper (HOmer) where my typing does appear on the command line screen.
Freeware Windows workflow in 2020
viewtopic.php?f=19&t=3620

b0bcat
Posts: 46
Joined: 30 Nov 2012, 21:37
Number of books owned: 0
Country: UK

### Re: PDFBeads 1.0.9 for Windows

I'm going to try installing pdfbeads to Windows XP SP3 but the lateness of the hour means I'm somewhat befuddled so I will need to study the install steps later, however as it conceivably may assist with your install / run problem please see this if not yet watched, I found it when searching for some complete and detailed steps on how to instal pdfbeads under Windows. I'm guessing the path isn't correct (video explains) but I should have thought you could tweak the path manually anyway in My Computer / System Properties / Advanced / Environmental Variables / System variables):

How to Install PDFBeads on Windows
May be other videos exploring same.
NB its date and that it says near start you must use Ruby 1.8.6 (if I heard him right - check) not earlier or later. That and/or other versions/steps conceivably may have changed. Also as it looks like pdfbeads is command line I'm assuming as per usual that to run it you need first to open a "DOS" (sort of) box by Start / Run... / typing cmd [enter] and as necessary navigating to where the pdfbeads executable is so you can execute it with the required arguments, operands or whatever you need to feed it like input file names and redirect to write a file as explained in posts above.

I'm sorely tempted to look into getting pdfbeads working as even the older Adobe Acrobat Professional versions produce quite fat PDFs of text under image using input 300dpi A4 monchrome tiffs. I have Advanced PDF Tools v2.0 which reduces file size a bit but not much and was thinking of trying Pstill (shareware) for attempting more aggressive reduction of pdfs (anyone using it?) but reviewing its manual I can't find any shortcut explaining how to do same so starting afresh may make more sense. Then add text layer (with tesseract a la Homer?) or do OCR in Adobe or in PDF-XChange PDF Viewer from http://www.tracker-software.com/ although the latter doesn't seem to rotate landscape pages to try OCRing them and offers no means of reviewing cases of marginal recognition accuracy.

b0bcat
Posts: 46
Joined: 30 Nov 2012, 21:37
Number of books owned: 0
Country: UK

### Re: PDFBeads 1.0.9 for Windows

A question of my own I forgot to ask last night - has anyone experience of the ability (or otherwise) of Kindle, Nook, Sony Reader etc etc portable e-ink / other readers to display properly or at all PDFs created using pdfbeads? My question arises in connection with the point I noted in DRAFT MUG's GUIDE: Converting old books to PDF http://www.diybookscanner.org/forum/vie ... =19&t=2759 -- highlighted at #6. Creating very small pdf files is tempting, but for me, not so much if they cannot be read on these devices.

abmartin
Posts: 79
Joined: 15 Sep 2010, 15:33
Number of books owned: 2000
Country: USA
Location: Ohio

### Re: PDFBeads 1.0.9 for Windows

VictoriaAustralia,

When you are launching the program, are you double-clicking on the pdfbeads file? It looks to me like you might be. As I have neither used this program nor have windows on which to test, I'm going to take a stab in the dark that this is what you were doing. What you should do instead is to open the command-line manually. (run prompt, cmd) It is here where you will launch the program. CD to the directory containing the binary, type the name of the file and the options needed (like the location of the images), then press enter. You might also be able to CD to the directory of the images and launch the exe file from there by typing the \path\to the program.

Command-line tools like this rarely are interactive, meaning you have to type the options in before launching. It may seem a bit inconvenient, but it's much easier for other folks to build tools on top of in the future. Djvubind, for example, was built this way enabling another programmer to develop a GUI interface. (I don't actually remember how far that project went)

If you were doing it correctly before, I apologize! But from the scrot, that's how it appeared.

JonEP
Posts: 81
Joined: 19 Apr 2010, 15:09

### Re: PDFBeads 1.0.9 for Windows

Hi all,

I've seen that JBIG2 does not work on an x64 platform. Previously someone had compiled a version for x64 but the links are now dead. I am not a programmer and don't know how to do things like "compile"... Could someone help?