10-11-2007, 05:37 PM | #1 |
Connoisseur
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. |
10-11-2007, 06:59 PM | #2 |
Addicted to Porting
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...
|
Advert | |
|
10-11-2007, 07:56 PM | #3 | |
Connoisseur
Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
|
Quote:
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. Last edited by alanine; 10-11-2007 at 08:31 PM. |
|
10-12-2007, 03:41 AM | #4 |
eBook Enthusiast
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.
|
10-12-2007, 06:41 PM | #5 | |
Connoisseur
Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
|
Quote:
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. |
|
Advert | |
|
|
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 |