LumberJocks

Stitching Scanned Articles into a PDF

  • Advertise with us

« back to Designing Woodworking Projects forum

Forum topic by Hoakie posted 1326 days ago 770 views 5 times favorited 10 replies Add to Favorites Watch
View Hoakie's profile

Hoakie

306 posts in 2667 days


1326 days ago

I recently obtained a lot of old WW mags from a friend that he was getting rid of. Since I didn’t want to keep them myself, I scanned only the articles of interest. I kept them in separate directories by the title of the article but didn’t rename them from image1.jpg, image2.jpg, etc. The problem I ran into is that each time i want to look at the article I have to open all the pages as separate images. This was especially cumbersome since i didn’t give each one a unique name.

Being a software developer, I decided to write a little utility that will go through a directory and pull its contents into a PDF file so all of the pictures are contained in one file.

If you are interested in trying it out feel free. You can get a copy of the application here.

To use:
  1. Unzip the files to a directory of your choice and run the executable.
  2. Select a source directory where your images reside.
  3. Select an output directory where to put the PDFs.
  4. Press the Create button.

This application needs Microsoft’s .NET Framework 4.0 to run, so if you run into problems, you may need to install it as well. It can be found here

A few other notes:

  • The PDF file will contain all the images in the directory or sub directory
  • The application should ignore all files in the directories that it does not recognize as an image file
  • The PDF file will be named the directory name and any spaces get converted to underscores.

Please let me know if you find this useful or have any questions.

Thanks for looking

-- John H. [To invent, you need a good imagination and a pile of junk. ~Edison]


10 replies so far

View Peter Oxley's profile

Peter Oxley

1426 posts in 2506 days


#1 posted 1326 days ago

This looks really useful – I’m going to give it a try. Thanks for sharing!

-- http://www.peteroxley.com -- http://north40studios.etsy.com --

View Hoakie's profile

Hoakie

306 posts in 2667 days


#2 posted 1326 days ago

Your welcome

Let me know how it works for you. I also like to use it to package pictures of the kids up for the parents so they only need to have one file

-- John H. [To invent, you need a good imagination and a pile of junk. ~Edison]

View lew's profile

lew

10002 posts in 2387 days


#3 posted 1326 days ago

Thanks, John!

This works great!

Lew

-- Lew- Time traveler. Purveyor of the Universe's finest custom rolling pins.

View KayBee's profile

KayBee

1002 posts in 1878 days


#4 posted 1326 days ago

Looks great, but I use a mac : (

-- Karen - a little bit of stupid goes a long way

View Hoakie's profile

Hoakie

306 posts in 2667 days


#5 posted 1325 days ago

Yeah thats a problem…I guess you could install and Run windows using BootCamp

-- John H. [To invent, you need a good imagination and a pile of junk. ~Edison]

View FredG's profile

FredG

140 posts in 2329 days


#6 posted 1325 days ago

On Linux (Ubuntu) a program called imagemagick is already installed.
It’s a command line tool. Just enter <name>.jpg <name>.pdf
For Mac users this might be interesting.

http://www.imagemagick.org/script/binary-releases.php

Everybody happy !!

-- Fred

View Hoakie's profile

Hoakie

306 posts in 2667 days


#7 posted 1325 days ago

Fred,

That looks like a cool utility and I can probably us it in the future. Thanks for sharing

However, what my program does is to condense all the images in a directory structure into one PDF file. For instance if I scan a four page article (4 image files) into a directory, it will create one PDF file with 4 pages. It also lets you recursively walk through a set of directories and sub directories and create multiple PDF documents (one per directory). This is useful if you spend have a bunch of articles already scanned. With Image Magick, it looks like it only does a 1:1 file conversion so it is a bit different. I didn’t look too closely but maybe you can stitch multiple image files together with it.

-- John H. [To invent, you need a good imagination and a pile of junk. ~Edison]

View FredG's profile

FredG

140 posts in 2329 days


#8 posted 1325 days ago

Hi John,
In Ubuntu I just type: convert <name1>.jpg <name>.pdf <name2>.jpg <name>.pdf
So the same name for the pdf.

-- Fred

View Hoakie's profile

Hoakie

306 posts in 2667 days


#9 posted 1325 days ago

So does that appends each image to the PDF then? That’s pretty slick.

However it would still require a lot of typing for what I created my app for. I needed to convert 64 directories which had and average of about 4-6 images/directory. It only takes about 40 seconds to process the images and the 64 PDFs.

I assume you could couple this with a scripting language to recurse through a directory structure to accomplish something similar to what I created. I’ll have to poke around some more…but I tend to live in the .NET world ;)

-- John H. [To invent, you need a good imagination and a pile of junk. ~Edison]

View FredG's profile

FredG

140 posts in 2329 days


#10 posted 1325 days ago

Never had so many images. There are other options in the program.
One is montage. But I don’t know if you can paste and copy into the command line.
I’ll check that tomorrow (Well this afternoon, it’s 6:30 AM, haven’t seen my bed yet.

-- Fred

Have your say...

You must be signed in to reply.

DISCLAIMER: Any posts on LJ are posted by individuals acting in their own right and do not necessarily reflect the views of LJ. LJ will not be held liable for the actions of any user.

Latest Projects | Latest Blog Entries | Latest Forum Topics

HomeRefurbers.com

Latest Projects | Latest Blog Entries | Latest Forum Topics

GardenTenders.com :: gardening showcase