- Convert pdf to image. I use pdftoppm of xpdf. Such as: pdftoppm -r 180 -f 245 -l 245 -gray -aa yes a.pdf a
- Analyze the generated images. Break page into lines.
- Divide each line long enough to two segments.
- Rearrange the segments into a new page, with half of the width.
Friday, July 18, 2008
An algorithm to render PDF on small devices
I am interested in ebook reader for quite a while. But after trying with a 6-inch e-ink reader (Hanlin V3), I found it is almost useless to read normal PDF files (A4 size) on these devices. The font size is too small, while the page size is too wide. So, a method to render PDF for these small devices is thought about and prototyped. The details are as follow: