View Single Post
Old 10-23-2009, 08:56 AM   #76
quarkonics
Junior Member
quarkonics began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2009
Device: eslick
Talking

Quote:
Originally Posted by zlds View Post
I used this software. I found it no good for CROP PDF files. Big problem is it made font to become so big. I could read it by my sony prs 600.
I'd like to share my script for papercrop that is supposed to resolve this issue.
It tries to resolve 4 issues in all:
1. sometime papercrop may crash, according to my experiment, it happens when calling postprocessimage when some small rects are processed. So I'd try to work around this issue by always do postprocessimage for whole page
2. this script will find max rect in the page, and scale that rect to match your device width, and scale other rects with similar ratio. (seems width is not exported for image, so I take a not-so-accurate way)
3. after the work done in 3. all rects will be concate vertically, and will be split to pages that match your device size.
4. ratio of height to width larger than 5 is dropped, since no reading blocks are in this shape. surely, you could remove this part, if you don't like it
quarkonics is offline   Reply With Quote