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!
Check if image exists in a PDF |
Post Reply |
Author | |
ricardoprg
Beginner Joined: 06 Dec 23 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 06 Dec 23 at 10:39PM |
I'm using the "FindImages" command to check, but in a PDF, it's returning the 'out of memory' error. Has anyone ever encountered this problem? Could I use the "HasFontResources" function to check?
|
|
tfrost
Senior Member Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(0)
|
We may need a bit more information to help you here. First, which version of QuickPDF and which programming language are you using? FindImages returns a zero or an image count, so if it returns, what is the return value? And if it does not return, what is actually showing the 'out of memory' error? Does the problem occur with just a specific PDF, even one with no images, or does it always happen? You could also try the Extraction/ExtractAllImages sample in DebenuQuickPDFLibraryDemo and see if you get the same result there with your PDF. I hope some of this helps!
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Ricardo :)
If you only wanna check if a pdf is a real pdf or only a converted image you can use HasFontResources. The function returns with the number of fonts (embedded or only linked). If it returns with 0 then it's pretty sure that the pdf is only a converted image. Welcome here :) |
|
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