Print Page | Close Window

Scale factor for text extraction

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=3971
Printed Date: 03 May 24 at 7:25AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Scale factor for text extraction
Posted By: nshsk
Subject: Scale factor for text extraction
Date Posted: 07 Feb 22 at 11:29AM
I have an .NET application for pdf text extraction which returns an empty text from 'GetPageText(7)' function after changing the default window scaling setting to 125%.

Can we use a function like 'SetTextExtractionScaling' or 'SetTextScaling' to control the scaling setting before text extraction?

Can someone help me on this?
Thank you.



Replies:
Posted By: Ingo
Date Posted: 07 Feb 22 at 8:54PM
Hi Nirmani,

QP.NormalizePage(0) is always good before calling the text extraction functions.
Then you can deal with the next two functions (they can only be applied to the selected document you're working with)...
QP.SetTextExtractionScaling(0, 2, 8);
QP.SetTextExtractionWordGap(0.2);
and then the GetPageText(7).


-------------
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