View Single Post
Old 06-21-2010, 09:52 AM   #7
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
Quote:
Originally Posted by Lady Fitzgerald View Post
I went to your link and have no clue what to download. The number of choices is overwhelming to me. Can you somehow simplify it for me?

Ok, I managed to figure out where and what to download. I also unzipped it to a folder on my desktop. Now what the heck do I do with it?

Keep in mind not all people are computer literate beyond "push that button." I'm one of them. Apparently this is one of those programs written by geeks for geeks and people like me are going to have to have it explained step by little step in great detail.
Here's the step-by-step (I'm assuming you're running Windows XP... if you have a different OS, let me know):

1) Download ImageMagick (IM)
For Windows XP, this would be: http://www.imagemagick.org/download/...indows-dll.exe
2) Install IM
Should be able to just double-click the downloaded .exe and follow the on-screen instructions to install.
3) Open a run command window in the directory of your pdf
In Windows XP there are two ways to do this:
a. The long way
Start -> Run -> type "cmd" and press enter -> A command window opens
Within the command window you type "cd [path to folder with pdf]" (for example: "cd C:\My_Pdfs\"
b. The easier way
Install this tool: Windows XP Cmd Here Powertoy
It will allow you to right-click a folder in Windows Explorer and click "open command window here". That way you don't have to manually navigate to the pdf folder using the "cd" command.
4) With the command window opened in the folder with your pdf, run the command:
convert -fuzz 15% -bordercolor white -trim input.pdf output.pdf
Where input.pdf is the name of the pdf you want trimmed, and output.pdf is the name of the trimmed pdf. You can also overwrite input.pdf (so that after trimming there is only one version of the pdf left... the trimmed one) by running:
mogrify -fuzz 15% -bordercolor white -trim input.pdf

Let me know if any of that wasn't clear.

-Edit-
For clarification, IM white margin trimming should work on pdfs that are composed of image scans (which is what I think you have based on the first post). For pdfs that contain fonts and formatting (i.e. processed by OCR) I'm not sure if this will work... you would probably have to convert the pdf pages to images before trimming. Let me know if you have a problem trimming your pdfs.

Last edited by lilman; 06-22-2010 at 08:31 AM.
lilman is offline   Reply With Quote