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!
Search text in pages in Delphi |
Post Reply |
Author | |
Amelie
Beginner Joined: 10 Nov 17 Location: France Status: Offline Points: 13 |
Post Options
Thanks(0)
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
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
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