![]() |
#1 |
Enthusiast
![]() Posts: 42
Karma: 12
Join Date: Feb 2008
Device: CyBook, Sony PRS 600
|
A brute force method to read PDF files on Cybook
The idea is simple. We all know the pdf support on Cybook sucks. But at least it can display the jpg quite OK. Then just convert the pdf to jpg, that's it. So here comes the dirty script.
Usage: prepare_pdf file.pdf, then follow the questions. The script will convert every page into several jpg files to fit the Cybook screen. Usually you can have 2-3 images per page if the page is set to 'landscape' mode in the script. All the images should be viewed on cybook in landscape and fit page mode, since the script will do all the slicing and rotation on the computer. On Cybook you simply press left to turn pages. You can also crop the page if you don't like any margin. At last you can compress all the images into one pdf file. This pdf can be opened on Cybook. What you need: python imagemagick pdftoppm (from ghostscript) pdfimage (from pdflib) changed in V3: Add the two columns mode. The page can be sliced into two regions and viewed separately. Now the program can continue with the viewer window kept open. Use multiple threads for imagemagick. The converting process should be faster. Last edited by Hanselda; 08-11-2008 at 03:15 AM. |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() Posts: 42
Karma: 12
Join Date: Feb 2008
Device: CyBook, Sony PRS 600
|
I made a small modification. The pages are saved in png file, not jpg. The png file has much smaller size in this case. Also the final size of the converted pdf is smaller.
[some minor changes again. Now it should work more reliable.] PS: I forgot to mention that the script will call a viewer to display the page. Please change the varable VIEWER = 'kview' to whatever program which you can call from console. Last edited by Hanselda; 08-08-2008 at 04:23 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 23
Karma: 10
Join Date: Feb 2008
Location: Belgium
Device: cybook gen3
|
Wouldn't it be MUCH, MUCH easier to simply convert the pdf file to mobipocket format instead of ending up with hundreds of image files without bookmark possibilities?
|
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 42
Karma: 12
Join Date: Feb 2008
Device: CyBook, Sony PRS 600
|
If you convert it simply to mobipocket, there is a great chance that it messes up the formating. If the pdf contains special characters, lots of figures and especially mathematical formula and vector plot the result is really unreadable. And it is especially this kind of PDF that the Cybook cannot open.
For fiction or pure English words it's no problem to convert to mobi, but not for non-fictions like mathematics, physics and technical documents. And especially if such documents are scanned PDF. |
![]() |
![]() |
![]() |
#5 |
computer scientist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 108
Karma: 1587
Join Date: Aug 2008
Location: Gothenburg
Device: Gen 3
|
So, how DO you do to read a PDF without an electron microscope?
I've been trying to read my lecture notes, but gave up right after Landscape -> Fit page width /Gf |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
computer scientist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 108
Karma: 1587
Join Date: Aug 2008
Location: Gothenburg
Device: Gen 3
|
Ps. I am trying out your Script Hanselda
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 42
Karma: 12
Join Date: Feb 2008
Device: CyBook, Sony PRS 600
|
Please provide more infomation. Else I cannot help.
If you like please post you pdf file here. |
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 42
Karma: 11
Join Date: Jun 2008
Location: Turin, Italy
Device: iLiad, Opus, cybook gen10, Palm LifeDrive, NetBookVaio, Kindle, Tolino
|
good work
|
![]() |
![]() |
![]() |
#9 |
computer scientist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 108
Karma: 1587
Join Date: Aug 2008
Location: Gothenburg
Device: Gen 3
|
Hanselda; I fixed it with Adobe Acrobat Pro.
But thanks anyway, I'll try using imagemagick in ubuntu (sitting on Windows right now). Removing white margins made it really readable with Landscape -> Fit to width. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Not able to read .pdf files | neadams99 | Amazon Kindle | 6 | 04-05-2011 09:28 PM |
Can I convert Adobe digital .epub files to read on my Cybook? | Maggie | ePub | 3 | 11-08-2008 03:15 PM |
Cybook shuts down when I try to read a pdf | FlorenceArt | Bookeen | 7 | 08-24-2008 10:49 AM |
A brute force method to read djvu files on Cybook | Hanselda | Bookeen | 5 | 08-04-2008 02:26 PM |
How does PDF read in Cybook | wizard327 | Bookeen | 10 | 06-11-2008 10:51 AM |