ebook pdf border remover

Nikolaus Gradwohl2009-06-16T03:04:00+00:00

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



Tweet This! submit to reddit Digg! Tags: | 4 comments | no trackbacks

See also:

Processing Ebook - beta 2
Processing EBook Beta - Door 24
rotated text in reportlabs
ReportLab Test
PDF for N770



Leave a response

  1. fake 2009-06-16T09:08:47+00:00

    very cool!

  2. Hammer_NN 2009-08-05T06:55:47+00:00

    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.

  3. Heather 2011-09-21T16:00:53+00:00

    Wow! I could not even guess about it)) Not bad.

  4. Cornel C 2012-02-16T04:43:33+00:00

    very nice and useful tool. One thing is not right, after process , the output is rotated 90 degrees to the left. I have to do "pdftk input.pdf cat 1-endR output.pdf" - this way i rotate it back :)

Leave a comment