Print Page | Close Window

Checking if a pdf contains text

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=2701
Printed Date: 22 Nov 24 at 1:00PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Checking if a pdf contains text
Posted By: raphaelverdier
Subject: Checking if a pdf contains text
Date Posted: 05 Aug 13 at 11:31AM
In our application we need to check if a pdf contains text (vector).
We use the DAOpenFile and we use the function DAExtractText.

If the file is on a network folder, the function DAOpenFile could take 200ms.

Is there another faster way for checking if a pdf is vector or not ?



Replies:
Posted By: Ingo
Date Posted: 05 Aug 13 at 6:41PM
Hi Raphael!

Try...
// ... if (QP.HasFontResources < 1) Then ...

If the result < 1 then there is no text content.
So give it a try and forget your DA-function ;-)

Cheers, Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk