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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2007, 05:37 PM   #1
alanine
Connoisseur
alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.
 
Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
too slow to read pdfs with many pages?

I've a 267-page pdf file, pure text, 1.8M in size, which I don't consider a big size. But ipdf seems to take forever (around 12 seconds) to load a new page freshly. I wonder if anyone has experienced similar situation.

It also seems to do some caching for the next pages in the background, so speed is non-issue if I go to the next page after spending time to read current one. But unfortunately, my PDF is fully of cross-references, which allows non-linear jump.

A 500MHz CPU this slow sounds absurd. I mean, I use a PIII 500MHz 192M RAM laptop daily, which is never this bad. Also, pdf is a format designed for random access (if not perfect), so jumping pages shouldn't be that much of an issue. I wonder if anything could be done to ipdf to make this aspect faster.
alanine is offline   Reply With Quote
Old 10-11-2007, 06:59 PM   #2
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
It sounds like it's a complicated PDF. I don't typically have a problem with PDF's of that size. Would you be able to post it so that we can determine what the issue is. That's really not typical...
Adam B. is offline   Reply With Quote
Advert
Old 10-11-2007, 07:56 PM   #3
alanine
Connoisseur
alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.
 
Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
Quote:
Originally Posted by Adam B. View Post
It sounds like it's a complicated PDF. I don't typically have a problem with PDF's of that size. Would you be able to post it so that we can determine what the issue is. That's really not typical...
Indeed it's a PDF with embeded Chinese Type1 font created from Latex. Most likely you don't read Chinese, but I'm attaching it here anyway.

I just tried the same file on my PIII 500MHz laptop. Acrobat Reader 5 loads every page almost instantly, but xpdf takes like 5 to 9 seconds.

Then again, it takes forever to load Adobe's PDF reference document (over 30M in size) on iLiad, but once it's loaded, access to each page is anywhere between 1-3 seconds. This leads me to believe it's probably got something to do with the embed fonts that I use. xpdf/ipdf apparently don't handle them very well, but this is also something with room to improve as Adobe is already doing better.
Attached Files
File Type: pdf zaobao-2007-10-11.pdf (2.12 MB, 506 views)

Last edited by alanine; 10-11-2007 at 08:31 PM.
alanine is offline   Reply With Quote
Old 10-12-2007, 03:41 AM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Embedded fonts will dramatically slow down the page rendering speed. That's almost certainly your problem.
HarryT is offline   Reply With Quote
Old 10-12-2007, 06:41 PM   #5
alanine
Connoisseur
alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.
 
Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
Quote:
Originally Posted by HarryT View Post
Embedded fonts will dramatically slow down the page rendering speed. That's almost certainly your problem.
You are right, but only partially right. I spent a whole day digging this issue, and finally found a solution.

xpdf/ipdf don't have a problem rendering embeded fonts, but dealing pdf files with big number of embeded font sets. The file I provided above embeds many sets (90+) of Chinese Type1 font, though each is small in size. xpdf/ipdf are really slow at handling this, while Acrobat Reader and even GS/GV can do the job much better.

This becomes apparent to me when I notice some pdf files created by others that also embed Chinese fonts but xpdf/ipdf won't choke on them. The difference is that they embed Truetype fonts, which unlike Type1 with only 265 max glyphs, may contain thousands in one set. Thus it suffices to embed only 1 or 2 sets of bigger Truetype font in the pdf, v.s., the 90+ smaller Type1 font sets.

The solution to my problem is to create pdf using latex + dvipdfmx, which is able to embed Truetype without rasterizing them (just lilke Type1) in to the final PDFs. I'm attaching the result here. The file size is also smaller than the previous one but not by much, and the speed is blazing fast.

Of course the ultimate solution is to fix xpdf/ipf, but for the moment this little PDF creation trick plays well. I'll document this process in thorough detail on the Content forum, just to help other CJK users.
Attached Files
File Type: pdf zaobao-2007-10-11.pdf (1.61 MB, 8889 views)
alanine is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
View pages with no margins on PRS 505 for PDFs craj999 Sony Reader Dev Corner 0 02-09-2010 12:23 AM
New hack PRS-505: multi status line with %read, time&pages reading, pages per minute. Car105 Sony Reader Dev Corner 5 01-03-2010 10:03 AM
A New Way to Read Web Pages on Your Kindle jsingleton Amazon Kindle 11 12-18-2009 03:20 AM
Turning Scanned PDFs with facing pages into single pages jimteacher Workshop 5 11-09-2009 02:59 PM
Too slow to open PDFs? A solution! alanine iRex 8 09-26-2008 10:08 AM


All times are GMT -4. The time now is 02:08 PM.


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