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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Problems with SetTextExtractionArea
  FAQ FAQ  Forum Search   Register Register  Login Login

Problems with SetTextExtractionArea

 Post Reply Post Reply
Author
Message Reverse Sort Order
aantonio View Drop Down
Beginner
Beginner
Avatar

Joined: 13 Aug 16
Location: Madrid, Spain
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote aantonio Quote  Post ReplyReply Direct Link To This Post Topic: Problems with SetTextExtractionArea
    Posted: 13 Aug 16 at 10:12PM
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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 13 Aug 16 at 8:09PM
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

Back to Top
aantonio View Drop Down
Beginner
Beginner
Avatar

Joined: 13 Aug 16
Location: Madrid, Spain
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote aantonio Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store