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 > General Discussion
  New Posts New Posts RSS Feed - Search text in pages in Delphi
  FAQ FAQ  Forum Search   Register Register  Login Login

Search text in pages in Delphi

 Post Reply Post Reply
Author
Message
Amelie View Drop Down
Beginner
Beginner


Joined: 10 Nov 17
Location: France
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Amelie Quote  Post ReplyReply Direct Link To This Post Topic: Search text in pages in Delphi
    Posted: 10 Nov 17 at 4:17PM
Hello!

I would like to know how to search for a word in all pages of the PDF file in Delphi please?

thank's

Amelie
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: 10 Nov 17 at 6:34PM
Hi Amelie,

// This is a partly way in Delphi . . .

   QP := TDebenuPDFLibrary1312.Create;
   try
//     Here the activation with your user-/testkey is needed...
       okay  := QP.LoadFromFile(FName, '');
       lerrc := QP.LastErrorCode;

       If ( QP.EncryptionStatus > 0 ) Then
          QP.Decrypt;

       sl := TStringList.Create;
       pagetext := '';

       for i := 1 to QP.PageCount Do
       begin
          QP.SelectPage(i);
          QP.CombineContentStreams;
          sl.Text := QP.GetPageText(3);  // you can get it into a stringlist or ...
          pagetext := QP.GetPageText(3); // you can get it into a string ...

//        . . .
//        now you're able to search inside your searchstrings (in Delphi with pos-syntax) ...

Here you can find all other functionalities using QuickPDF:
http://www.debenu.com/docs/pdf_library_reference/FunctionGroups.php

Here you can find the developer guide:
http://www.debenu.com/products/development/debenu-pdf-library/help/developer-guide/


Cheers and welcome here,
Ingo

Cheers,
Ingo

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