This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, January 24, 2014 7:29:07 AM(UTC)
Groups: Registered
Posts: 40
Thanks: 5 times
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.
#2
Posted
:
Monday, January 27, 2014 4:49:25 AM(UTC)
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.
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.