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!
Problems with SetTextExtractionArea |
Post Reply |
Author | |
aantonio
Beginner Joined: 13 Aug 16 Location: Madrid, Spain Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 13 Aug 16 at 6:56PM |
I have installed the library with a test license, using Visual Studio for C++ and linking with static library. If I try DPLGetPageTextA, DPLExtractFilePageTextA or DPLDAExtractPageTextA every thing works fine. If I try to use DPLSetTextExtractionArea( 0, 0, DPLPageWidth(InstanceID), DPLPageHeight(InstanceID) before of DPLGetPageTextA I get a blank string. If I try to use DPLDASetTextExtractionArea before DPLExtractFilePageTextA or DPLDAExtractPageTextA I get blank strings too. Is it possible to be a problem with the test license or something similar? Code Sample: DPLLoadFromFileA(InstanceID, (char *)(const char *)FileName, NULL); DPLSetMeasurementUnits(InstanceID, 1); DPLSelectPage(InstanceID, 1); DPLSetOrigin(InstanceID, 0); // This line is the problem... if I remove it, the text is extracted DPLSetTextExtractionArea(InstanceID, 0, 0, DPLPageWidth(InstanceID), DPLPageHeight(InstanceID) ); CString txt = DPLGetPageTextA(InstanceID, 8); Thank you
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Antonio,
here's a sample from the official support pages: http://www.debenu.com/kb/extract-text-from-a-defined-rectangular-area-on-a-page/ Your prob has nothing to do with the test license ;-) Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
aantonio
Beginner Joined: 13 Aug 16 Location: Madrid, Spain Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hello Ingo
You are right... I have rewritten my code and now it works fine, as described in documentation. Is was my fault. Thanks a lot
|
|
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