ebook pdf border remover

Posted by Nikolaus Gradwohl Tue, 16 Jun 2009 01:04:00 GMT

cropborder is a little java-tool i wrote to remove the white border of a pdf file, to make it more readable on an ebook-reader.

cropborder example

the white margin around the content is very usefull when printed on paper, but is really anoying on an ebook-reader because it only makes the text smaller.

to use the tool call it with

java -jar cropborder.jar [-in <input.pdf>] [-out <output.pdf>] [-f <scaling factor>] [-l <dots to move the left border>] [-d <dots to move the lower border>]

the default values for the parameter are

in.pdf for intput out.pdf for output 1.4 for the scaling factor and shift by -100, and -130 points (a point is a 1/72 inch)

the tool uses the iText library and is published under the "do whatever you like, but don't blame me if it goes boom"-Licence

i also made a project page for it

Download

cropborder-0.1.zip

Tags ,  | 2 comments | no trackbacks

Tweet This! submit to reddit Digg!

Comments

  1. fake said about 6 hours later:

    very cool!

  2. Hammer_NN said about 1 month later:

    Fantastic !!!! You're code work just fine on ubuntu. Before i try many progs (perl,cli,gui), but this is BEST!!! Try post link on site with umpc or mobile reader and pda reader.

Trackbacks

Use the following link to trackback from your own site:
http://www.local-guru.net/blog/trackbacks?article_id=ebook-pdf-border-remover&day=16&month=06&year=2009

(leave url/email »)

   Comment Markup Help Preview comment