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!
GetPageText Funcion Consumes So Much Memory |
Post Reply |
Author | |
SalmaBegum
Team Player Joined: 30 Sep 17 Status: Offline Points: 28 |
Post Options
Thanks(0)
Posted: 17 Sep 20 at 2:37PM |
Greetings..
I have a pdf file of size 2.5mb (663 page).. I tried to get all the page text for my project purpose. On my pc my project/function runs fine but on user pc it failed (crashed), so i tried to debug and found the function GetPageText takes lot of memory. here is the following code that i used to debug only:
above code you see/ it's only save each page text directly to text file by the time it finish it takes more than 1.5GB memory while the pdf file is only 2.5mb and all saved text tile together is 700kb (around). any suggestion? what i am doing wrong here or is it a library bug? no one noticed yet? thanks in advance best regards |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Is there a renderer included in your project and on your pc?
Does this renderer exist on the user pc as well or not? |
|
Cheers,
Ingo |
|
SalmaBegum
Team Player Joined: 30 Sep 17 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
thanks a lot for your reply and sorry for my late reply.. btw.. sir, nope no renderer is used at all only the QPL.. thanks in advance.. best regards |
|
SalmaBegum
Team Player Joined: 30 Sep 17 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
any help please?
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
try the search here in the forum.
There should be some threads availabe regarding this issue. |
|
Cheers,
Ingo |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
You should check where are the differences between your pc-installation and the user-installation.
What about doing an additional test on a second user-installation? What about using other options instead of option 7 (for example option 0)? For us here it's like looking into a glass bowl ;-) |
|
Cheers,
Ingo |
|
Sopracenery
Team Player Joined: 31 Aug 20 Location: Germany Status: Offline Points: 29 |
Post Options
Thanks(0)
|
Hi,
I checked Lib 18.11 with a loop extracting 1025 pages from QuickPDFLibrary1811.pdf and could not find any issues using Option 0, 1 and 7 with GetPageText(). No memory leaks found. You can see only a difference in CPU consumption. Option 1 and 7 needs 30% CPU while Option 0 needs only 5% in a timer based loop. But I did not save all the files! Maybe there is a problem with a lot of unclosed file handles in saveText2File() which consumes more and more memory. So the issue is probably outside QuickPDF. Regards, Martin |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions 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 |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store