Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > Bookeen

Notices

Reply
 
Thread Tools Search this Thread
Old 07-21-2008, 05:29 PM   #1
Hanselda
Enthusiast
Hanselda began at the beginning.
 
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.
Attached Files
File Type: zip prepare_pdf.zip (3.9 KB, 292 views)
File Type: zip prepare_pdf_v2.zip (4.0 KB, 267 views)
File Type: zip prepare_pdf_v3.zip (4.3 KB, 309 views)

Last edited by Hanselda; 08-11-2008 at 03:15 AM.
Hanselda is offline   Reply With Quote
Advert
Old 07-22-2008, 05:14 AM   #2
Hanselda
Enthusiast
Hanselda began at the beginning.
 
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.
Hanselda is offline   Reply With Quote
Old 07-24-2008, 04:06 PM   #3
Boeboe
Member
Boeboe began at the beginning.
 
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?
Boeboe is offline   Reply With Quote
Old 07-25-2008, 04:08 AM   #4
Hanselda
Enthusiast
Hanselda began at the beginning.
 
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.
Hanselda is offline   Reply With Quote
Old 08-07-2008, 05:35 PM   #5
Gianfranco
computer scientist
Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.
 
Gianfranco's Avatar
 
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
Gianfranco is offline   Reply With Quote
Advert
Old 08-07-2008, 06:26 PM   #6
Gianfranco
computer scientist
Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.
 
Gianfranco's Avatar
 
Posts: 108
Karma: 1587
Join Date: Aug 2008
Location: Gothenburg
Device: Gen 3
Ps. I am trying out your Script Hanselda
Gianfranco is offline   Reply With Quote
Old 08-08-2008, 02:20 AM   #7
Hanselda
Enthusiast
Hanselda began at the beginning.
 
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.
Hanselda is offline   Reply With Quote
Old 08-08-2008, 03:00 AM   #8
lordmax
Enthusiast
lordmax began at the beginning.
 
Posts: 37
Karma: 11
Join Date: Jun 2008
Location: Turin, Italy
Device: iLiad, Opus, Palm LifeDrive, NetBook Vaio
good work

HI

Quote:
Originally Posted by Hanselda View Post
Please provide more infomation. Else I cannot help.
If you like please post you pdf file here.
Good work.
I have signaled it to the italian ebook forum. ^___^
lordmax is offline   Reply With Quote
Old 08-08-2008, 06:57 AM   #9
Gianfranco
computer scientist
Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.Gianfranco once ate a cherry pie in a record 7 seconds.
 
Gianfranco's Avatar
 
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.
Gianfranco is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:19 PM.


MobileRead.com is a privately owned, operated and funded community.