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!
Out of memory error - Converting PDF into images |
Post Reply |
Author | |
sebC
Beginner Joined: 27 Dec 16 Status: Offline Points: 9 |
Post Options
Thanks(0)
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. |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
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