Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - page rendering is quite slow.
  FAQ FAQ  Forum Search   Register Register  Login Login

page rendering is quite slow.

 Post Reply Post Reply
Author
Message
giantjupiter View Drop Down
Beginner
Beginner


Joined: 13 Sep 10
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote giantjupiter Quote  Post ReplyReply Direct Link To This Post Topic: page rendering is quite slow.
    Posted: 13 Sep 10 at 4:47PM
Hi,
 
I am trying version 7.21, and I noticed that DARenderPageToDC(...) is quite slow. I call DARenderPageToDC(...) in OnDraw event, so that repainting has a delay, which is quite annoying.
 
I called these functions:
 
DAOpenFile(...),
DAFindPage(...)
DARenderPageToDC(...)
 
and no other function is called. The Quick Pdf Library Demo seems to be fast.
 
So I'd like to ask what is the best way to render a page?
 
Thx
michael
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 13 Sep 10 at 7:37PM
Hi Michael!

Is it slow with all pdf-documents or only few (very special)?
What about ...
LoadFromFile...
SelectPage...
RenderPageToDC...
Is it faster?

Cheers and welcome here,
Ingo



Edited by Ingo - 13 Sep 10 at 7:37PM
Back to Top
giantjupiter View Drop Down
Beginner
Beginner


Joined: 13 Sep 10
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote giantjupiter Quote  Post ReplyReply Direct Link To This Post Posted: 13 Sep 10 at 11:44PM
Hi, Ingo,
 
It is much obvious when there is an large image in the page, and it seems only RenderPageToDC() is slow and other functions are ok. The pause of rendering text is short but still noticable.
 
Should I render it to a bitmap first, then every time repaint the bitmap. I am also trying mupdf, but it don't have this problem.
 
By the way, I am trying them with wxWidgets, and I put RenderPageToDC() and mupdf's winblit() in the inherited function of wxWindow::OnDraw(), which is invoked to repaint the DC.
 
Thx,
Michael
 


Edited by giantjupiter - 13 Sep 10 at 11:52PM
Back to Top
pavsej View Drop Down
Beginner
Beginner


Joined: 22 Sep 10
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote pavsej Quote  Post ReplyReply Direct Link To This Post Posted: 22 Sep 10 at 8:59AM

I have the same Problem with one large image on a PDF page.

I kind of solved it by changing PrinterResolution. For preveiw I use lower Resolution, for real printing job I use higher Resolution.
In my case rendering of one PDF page with one image takes (RenderPageToDC):
2.3 sec - 300 DPI
6.5 sec - 600 DPI
 
Anyway, any performace improvement would be welcome.
 
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 22 Sep 10 at 2:27PM
Hi!

And 900 dpi perhaps 15 sec...
But 72 dpi (the standard) immediately.
It depends on what you wanna do ... like always ;-)
The dev-team has already done a lot in case of speed
but if you want a lot then ... ;-)

Cheers, Ingo
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store