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!
Very large PDF file cannot be loaded |
Post Reply |
Author | |
JanN
Senior Member Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
Post Options
Thanks(0)
Posted: 06 Jan 09 at 8:28AM |
Hi!
First of all a Happy New Year to you all! It's been a while since my last post here. But now it's time again. I came across problems with very large PDF files. The reason seems to be somewhere in memory allocation. LoadFromFile throws an OutOfMemory exception although there's plenty of memory available. The "magical border" seems to be 512 MB. I use the current version 6.0.4.6. I have created and uploaded a sample file with 40000 pages (73 MB): http://www.upload24.de/files/40000.zip -> only 2,5 MB! Has anyone encountered this problem before? Is the limit of 512 MB standard? Does one of the developers have an idea? Thanks in advance. Edited by JanN - 07 Jan 09 at 5:48AM |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi JanN!
Nothing read from you for a long time... ;-) Happy New Year to you! It's the function function TPDFDocument.LoadFromFile(const FileName: QPDFString): Boolean; The file is read into a stream at FS := TQPDFFileStream.Create(FileName, fmOpenRead or fmShareDenyWrite); Perhaps it's enough to allocate memory before with "GetMem" ... Anyway there should be a smooth behavior and it should be framed with a try-except-end ;-) Oh... what's that? Writing here i've load your testfile and with our last source version it could be loaded completely (160008 embedded objects!!!). Please contact me directly at ingo [dot] schmoekel [at] gmx [dot] de Cheers, Ingo |
|
JanN
Senior Member Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
Post Options
Thanks(0)
|
Hi!
We have found out that loading the pdf file only seems to work. QuickPdf returns with no error. But when calling PageCount the result is 0. SaveToFile also doesn't work. I really need a solution for this. Can anyone help? I already thought of splitting the pdf file using another tool and afterwards process the parts using QuickPdf. But that's not really a solution, isn't it. Edited by JanN - 09 Jan 09 at 5:57AM |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
You have the sources...
Why not setting a breakpoint on function PageCount? I fear that the object wasn't built correct and that there are no data for pages? Is it always the same creator/producer? Cheers, Ingo Edited by Ingo - 09 Jan 09 at 7:17AM |
|
ixm7
Senior Member Joined: 13 Jan 06 Status: Offline Points: 68 |
Post Options
Thanks(0)
|
Hi JanN,
I believe Marian solved that issue for me several months ago. You may want to contact him. Cheers, - Ido |
|
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