Portable Software Suite...?

Discussions, questions, comments, ideas, and your projects having to do with DIY Book Scanner software. This includes the Stereo Data Maker software for the cameras, post-processing software, utilities, OCR packages, and so on.

Portable Software Suite...?

Postby loyukfai » 27 Jun 2011, 14:17

Trying to scan some books. Did a first try but needs both hardware and software improvements. The hardware improvements should be relatively simple but not so sure about the software.

The problem is that, I need a portable suite which I can run on another's Windows-based PC which is (much) faster than mine. ScanTailor got one (http://portableapps.com/node/27566) but there seems to be no binding utilities meets my needs...?

Any suggestion and comments?

Thanks in advance!

Edit:

Here is my way of doing it with Ubuntu...

1. Setup your Ubuntu environment. For me, I wrote the ISO to a CD-RW disc and used it to install Ubuntu on an external drive.

2. Launch Ubuntu Software Center and install the followings...

a. GIMP (for measuring pixels)
b. ScanTailor
c. GPRename (for renaming files)
d. ruby (for PDFBeads)
e. rubygems (for PDFBeads)
f. imagemagick (for PDFBeads)
g. graphicsmagick (for PDFBeads)
h. libmagickcore-dev (for PDFBeads)
i. libmagickwand-dev (for PDFBeads)
j. Phatch PHoto bATCH Processor (for rotating images before handling over to ScanTailor)

3. Launch terminal, run the following commands...

Code: Select all
sudo gem install rmagick
sudo gem install pdfbeads
sudo gem install hpricot


4. Download jbig2 from http://code.google.com/p/pdfrecompressor/downloads/list
Note: This one doesn't run on 64-bit platform. Had to compile my own.

5. Create a "bin" directory under the home directory, then run...
Code: Select all
cp /var/lib/gems/1.8/bin/pdfbeads ./bin
cp ./Downloads/jbig2 ./bin
cd ./bin
chmod ugo+x *


6. Done.
Last edited by loyukfai on 17 Jul 2011, 02:17, edited 2 times in total.
loyukfai
 
Posts: 43
Joined: 24 Jan 2011, 02:37

Re: Portable Software Suite...?

Postby strider1551 » 27 Jun 2011, 20:14

loyukfai wrote:I need a portable suite which I can run on another's Windows-based PC which is (much) faster than mine. ScanTailor got one (http://portableapps.com/node/27566) but there seems to be no binding utilities meets my needs...?


If you're making Djvu files, djvubind will probably work in Windows (it does in XP, and I expect it would in their more recent versions). Probably not the most intuitive thing to use unless you have a Linux background... been thinking about making a gui, but the muse of programming hasn't been with me lately.

For the PDF stuff I'll let the others chime in, since that's not my area.
User avatar
strider1551
 
Posts: 126
Joined: 01 Mar 2010, 11:39
Location: Ohio, USA

Re: Portable Software Suite...?

Postby loyukfai » 27 Jun 2011, 23:32

Thanks. I should have mentioned PDF is my target.

Commandline should be fine with me.

Cheers.
loyukfai
 
Posts: 43
Joined: 24 Jan 2011, 02:37

Re: Portable Software Suite...?

Postby loyukfai » 06 Jul 2011, 23:44

As suggeted by @snaguy over here (viewtopic.php?p=10594#p10594), I'm trying to build a Live USB drive to run ScanTailor and PDFBeads.

Installing ScanTailor is a piece of cake since it's available in the Ubuntu archive.

Also found GPRename which should handle the renaming task.

However, I have problems getting PDFBeads to work...

After installing Ruby and RubyGems through Software Center, I installed PDFBeads ("sudo gem install pdfbeads"), then proceeded to install the below through Software Center...

Code: Select all
imagemagick
graphicsmagick
libmagickcore-dev
libmagickwand-dev


Then run "sudo gem install rmagick" and ran into many of such errors...

Code: Select all
No definition for TextureFill_initialize
No definition for TextureFill_fill
No definition for ImageMagickError_initialize
No definition for Enum_initialize
No definition for Enum_to_s
No definition for Enum_to_i
No definition for Enum_spaceship
No definition for Enum_case_eq


And running PDFBeads just give me a 0-byte output...

Code: Select all
ubuntu@ubuntu:/var/lib/gems/1.8/gems/pdfbeads-1.0.3/lib$ ruby -rubygems ./pdfbeads.rb /home/ubuntu/Desktop/PDFBeads/out/* > /home/ubuntu/Desktop/123.pdf


Any idea...?

P.S. Besides, how to add pdfbeads to path so that no need to run a long commandline everytime?

Thanks in advance!
loyukfai
 
Posts: 43
Joined: 24 Jan 2011, 02:37

Re: Portable Software Suite...?

Postby snaguy » 07 Jul 2011, 00:09

I have no experience with ruby or PDFBeads, I did not know they existed before reading your thread!

You may want to look into djvubind since moving to ubuntu live usb.
snaguy
 
Posts: 54
Joined: 14 Mar 2011, 04:28

Re: Portable Software Suite...?

Postby loyukfai » 07 Jul 2011, 01:38

Haha...

I'm wanting PDF outputs because of my reader setup.

Thanks for the reply still!

Cheers.
loyukfai
 
Posts: 43
Joined: 24 Jan 2011, 02:37

Re: Portable Software Suite...?

Postby snaguy » 07 Jul 2011, 01:41

you can convert djvu to pdf
snaguy
 
Posts: 54
Joined: 14 Mar 2011, 04:28

Re: Portable Software Suite...?

Postby loyukfai » 07 Jul 2011, 02:06

I'm feeling that I've messed up the forums by asking questions all over the place...

Anyway, installed djvubind but when it's run, it says...

Code: Select all
Traceback (most recent call last):
  File "/usr/bin/djvubind", line 35, in <module>
    import djvubind.encode
ImportError: No module named djvubind.encode


Any idea...?

And what do you recommend for converting djvu to PDF?
loyukfai
 
Posts: 43
Joined: 24 Jan 2011, 02:37

Re: Portable Software Suite...?

Postby loyukfai » 07 Jul 2011, 05:50

Hoorah! Managed to get PDFBeads working at last...

Instead of the convoluted command mentioned above, just run...

Code: Select all
/var/lib/gems/1.8/bin/pdfbeads


But how to find and install a jbig2 binary which PDFBeads can use...?

P.S. Thanks to you all! And also Google Translate, BTW.

http://translate.google.com/translate?j ... beads.html
loyukfai
 
Posts: 43
Joined: 24 Jan 2011, 02:37

Re: Portable Software Suite...?

Postby strider1551 » 07 Jul 2011, 06:48

loyukfai wrote:Anyway, installed djvubind but when it's run, it says...
...
Any idea...?


Oh my... If you could please issue a bug on my issue tracker (https://code.google.com/p/djvubind/issues/list), that will make it easier to converse back and forth so I can figure out what happened, without mucking up the forums here. Definitely start with what distro you're on, how you installed it, and how you are running it.

loyukfai wrote:And what do you recommend for converting djvu to PDF?


The djvulibre toolset includes ddjvu. A simple usage example would be "ddjvu -format=pdf book.djvu book.pdf".
User avatar
strider1551
 
Posts: 126
Joined: 01 Mar 2010, 11:39
Location: Ohio, USA

Next

Return to Software

Who is online

Users browsing this forum: Google [Bot] and 3 guests