Print Page | Close Window

Numbers of Char Vs Blank Pages

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=2203
Printed Date: 26 Jun 25 at 6:29PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Numbers of Char Vs Blank Pages
Posted By: Cuspide
Subject: Numbers of Char Vs Blank Pages
Date Posted: 29 Mar 12 at 12:24PM
Hi all,
Is there a function that returns the number of characters?

In this way, I could see if there are characters.
If there are I delete the blank page.

Thanks.
Daniele




Replies:
Posted By: edvoigt
Date Posted: 29 Mar 12 at 7:36PM
Hi,

a look in the reference-guide shows you textextraction-functions. They give an empty string back, if there is no text on page. Beware: a page with vector-drawings or images is not empty, but may be without text.

Werner


Posted By: AndrewC
Date Posted: 04 Apr 12 at 3:55AM
Cupside,

As Ed suggests you can call GetPageText(8) and check the length of the resulting string.  If it is >0 then there is text on the page.

Andrew.


Posted By: Cuspide
Date Posted: 05 Apr 12 at 2:26PM
Very well.
Many Thanks.



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