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 while calling "FindImages" i
  FAQ FAQ  Forum Search   Register Register  Login Login

"Out of Memory" error while calling "FindImages" i

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


Joined: 07 Oct 08
Location: India
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shailesh Quote  Post ReplyReply Direct Link To This Post Topic: "Out of Memory" error while calling "FindImages" i
    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.
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: 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


Edited by Ingo - 22 Sep 09 at 2:33PM
Back to Top
Shailesh View Drop Down
Beginner
Beginner


Joined: 07 Oct 08
Location: India
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shailesh Quote  Post ReplyReply Direct Link To This Post 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.
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