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 - Out of memory error - Converting PDF into images
  FAQ FAQ  Forum Search   Register Register  Login Login

Out of memory error - Converting PDF into images

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


Joined: 27 Dec 16
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote sebC Quote  Post ReplyReply Direct Link To This Post Topic: Out of memory error - Converting PDF into images
    Posted: 27 Dec 16 at 3:18PM
Hello,

I am trying to convert multiple PDF files into images.

After a certain number of convertions, i constantly got "Out of memory" errors.

I convert my PDF like this  : 

UnicodeString cible = repDiapo + "Diapositive.jpg";
PDFLibrary->LoadFromFile(filename.c_str(), L"");
int nbPages = PDFLibrary->PageCount();
PDFLibrary->RenderDocumentToFile(300, 1, nbPages, 1, cible.c_str());

Do you have any idea how I could avoid this kind of errors ? 

Thanks.
Bye.

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: 28 Dec 16 at 11:19AM
Hi Seb,

it depends on what's behind the original pdf.
How many pages... what dimensions?
Regarding this 300 dpi can be too much?
What you can see looking into the task manager while running the function (how much ram needed)?
Perhaps it's better to split this job into parts (keep the actual pagenumber in mind... then a Free... then a new instance)?
I would prefer another idea: Using the DA-functions!

Completely a different way:
What you really wanna do?
Rendering any pdf-pages with text, small pictures and so on?
Or do you want to render images which were inserted into pdf as single pages?
If this is what you want then you can export these images with the original dimensions from pdf page by page without much ram needed.
If this is what you want you should read here:
http://www.debenu.com/docs/pdf_library_reference/ImageHandling.php

Cheers and welcome here,
Ingo

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