"Out of Memory" error while calling "FindImages" i
Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1222
Printed Date: 22 Nov 24 at 1:51PM Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com
Topic: "Out of Memory" error while calling "FindImages" i
Posted By: Shailesh
Subject: "Out of Memory" error while calling "FindImages" i
Date Posted: 22 Sep 09 at 1:34PM
Hi,
I am having problem while Loading an image only pdf file and making a call to "FindImages". I bacically want to replace an embeded image in the pdf.
Can sombody help me. I can send you the problem pdf file if required.
Thanks.
Shailesh.
|
Replies:
Posted By: Ingo
Date Posted: 22 Sep 09 at 2:31PM
Hi!
If you produce an out-of-memory-error then you probably don't use the last version of QuickPDF? You can't grab the image out of the pdf - so that there's an empty document. You can write an image over the other one... What you can do is: Load the document, Select the page, AddImageFromFile, The draw-functions, SaveToFile.
Cheers, Ingo
|
Posted By: Shailesh
Date Posted: 22 Sep 09 at 3:38PM
Hi,
I am testing with the version 7.16 of the QuickPDF library. Following is the code which is causing the problem.
mlInstanceId = QuickPDFCreateLibrary() Call QuickPDFUnlockKey(mlInstanceId, {License key})
If QuickPDFLoadFromFile(mlInstanceId, FILE_NAME) = 1 Then miCurrentFileID = QuickPDFSelectedDocument(mlInstanceId) miPageCount = QuickPDFPageCount(mlInstanceId) miSelectedPage = QuickPDFSelectedPage(mlInstanceId) Call QuickPDFFindImages(mlInstanceId) ' This is where I get the 'out of memory' error .... {code to select and replace the embedded image}
End If
Call QuickPDFReleaseLibrary(mlInstanceId)
If required I can send you the file which is causing the problem.
Shailesh.
|
|