Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, January 24, 2014 7:29:07 AM(UTC)
la_morte1977

Groups: Registered
Posts: 30


Hello

im using v.18 of leadtools on .net4 with vb.net.

if i try to open an pdf file with 44 pages (1.7MB) it takes 25 seconds. Opening with Acrobat is instantly.

here my code:
Dim codecs As New RasterCodecs()
RasterImageViewer1.Image = codecs.Load("201401221223160001.pdf")


Is there faster way to open pdf files? Maybe to load the first page and the rest on progressive mode.


 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, January 27, 2014 4:49:25 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


The reason that Adobe Acrobat loads it faster than LEADTOOLS is that our Toolkit is actually rasterizing all of the PDF pages you load. This consists of creating a new image for each page, and rendering all the contents of that page on the new image. This happens even if some of the pages contain only images.

On the other hand, the Reader program only displays one page at the beginning and does not rasterize it. If you scroll to other pages, it will load them dynamically at runtime.

If you want to speed the process, do not load all pages at once. Instead, load and display the first page, then load the other pages after your program shows the first page.
It will still be a little slower than the Reader because the first page will need to be rasterized, but it will be much faster than waiting for all the pages.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.035 seconds.