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!
![]() |
split pages out to new file - memory issue |
Post Reply
|
| Author | |
hobnob
Beginner
Joined: 24 Jan 12 Location: United Kingdom Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Topic: split pages out to new file - memory issuePosted: 23 Jul 12 at 9:58AM |
|
I'm trying to load a large PDF file and split every page out to a new filename... but memory usage goes up and up and up for every new file until the machine crashes. It appears it's the new output file created that causes this, how do you release that new file from memory after save? Here's a test to show the problem:- int MainDocID = QP2->SelectedDocument(); for(int a=0;a<1000;a++) { QP2->NewDocument(); fileBW = QP2->SelectedDocument(); QP2->SelectDocument(fileBW); QP2->CopyPageRanges(MainDocID, _L("1-1")); QP2->DeletePages(1,1); // remove new file 1st blank page QP2->SaveToFile(tempBW); } |
|
![]() |
|
hobnob
Beginner
Joined: 24 Jan 12 Location: United Kingdom Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 Jul 12 at 10:15AM |
|
found the problem, needed: RemoveDocument
|
|
![]() |
|
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