LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-18-2011, 01:10 AM   #1
archnemesis
Member
 
Registered: Dec 2009
Posts: 31

Rep: Reputation: 0
tediously slow performance of large pdf files


I have downloaded a large pdf file, about 85M, which initially takes a while to load, which is fine, but whenever i go to a new page the cpu shoots up to 100% and the page takes a few seconds to load. This makes viewing the file a chore since i need to skip around a lot.

I have tried a few different viewers, but they all act the same. Why do they take so long to load each page, and is there anything i can do to speed it up?

cheers
 
Old 09-18-2011, 05:45 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
If a pdf is that large, it either has an absolutely humongous amount of text in it, or it's composed of images of pages rather than text. I'm going to guess the latter, as each image has to be rendered before it can be displayed.
 
Old 09-18-2011, 08:41 AM   #3
archnemesis
Member
 
Registered: Dec 2009
Posts: 31

Original Poster
Rep: Reputation: 0
Yeah they are images, but surely they shouldn't take up to ten seconds to load should they? I mean the books is about 700 pages, which means each page must be only be about 1000kb.
 
Old 09-18-2011, 08:51 PM   #4
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,258

Rep: Reputation: 1570Reputation: 1570Reputation: 1570Reputation: 1570Reputation: 1570Reputation: 1570Reputation: 1570Reputation: 1570Reputation: 1570Reputation: 1570Reputation: 1570
The processor, its speed, and the amount of RAM could hugely affect something like this.

You might run top or htop in a terminal and observe what they report about memory usage as you manipulate the document.
 
Old 09-19-2011, 08:35 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
The program also has to extract the images from the pdf container before it can render them, likely adding to the overhead. I've never really seen pdf as being a very efficient storage format in any case.
 
Old 09-19-2011, 12:35 PM   #6
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,231

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
PDFs do vary enormously in quality, depending on how the text was scanned and what creation tool was used. I've had a document with less than a dozen pages that was incredibly slow. If you look at the scanned books in archive.org, you can also see cases where there are two versions of the same text, one 50% larger than the other.
 
Old 09-19-2011, 02:39 PM   #7
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
Try :

pdf2djvu or pdftops or pdf2ps and see how well the converted document performs in okular
 
Old 09-20-2011, 02:03 AM   #8
archnemesis
Member
 
Registered: Dec 2009
Posts: 31

Original Poster
Rep: Reputation: 0
wow, djvu is way better! Page changing is instant. cheers
 
  


Reply

Tags
pdf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ext3 performance -- very large number of files, large filesystems, etc. td3201 Linux - Server 5 11-25-2008 10:28 AM
slow bluetooth with large files ThinkTank Linux - Newbie 0 01-07-2008 04:39 PM
How to create smaller PDF files? OpenOffice or Abiword generated a large one. Mr_Shameless Linux - Software 2 09-11-2007 03:52 PM
Performance of ext3 file system with large files staham Red Hat 2 03-26-2007 08:06 AM
why ggv cannot open large pdf files? xyfan Linux - Software 1 11-26-2003 08:11 AM


All times are GMT -5. The time now is 01:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration