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 - Very large PDF file cannot be loaded
  FAQ FAQ  Forum Search   Register Register  Login Login

Very large PDF file cannot be loaded

 Post Reply Post Reply
Author
Message
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Topic: Very large PDF file cannot be loaded
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 07 Jan 09 at 6:06AM
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


Back to Top
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 09 at 5:56AM
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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 09 at 7:15AM
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
Back to Top
ixm7 View Drop Down
Senior Member
Senior Member


Joined: 13 Jan 06
Status: Offline
Points: 68
Post Options Post Options   Thanks (0) Thanks(0)   Quote ixm7 Quote  Post ReplyReply Direct Link To This Post Posted: 05 Feb 09 at 11:33AM
Hi JanN,

I believe Marian solved that issue for me several months ago. You may want to contact him.

Cheers,
- Ido
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