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!
![]() |
Page title |
Post Reply ![]() |
Author | |
jcorral ![]() Beginner ![]() Joined: 06 Mar 12 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() Posted: 06 Mar 12 at 6:20PM |
Hello,
I have a pdf file with 100 pages, I need to get the page title for each page, it´s possible? Thanks
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
You will need to use GetPageText() and SetTextExtractionArea() funtions. Here is some untested code that will get you started string s; QP.LoadFromFile("100pages.pdf", ""); for (int i=1;i<=QP.PageCount();i++) { QP.SelectPage(i); QP.SetOrigin(1); QP.SetTextExtractionArea(0,0, 600, 100); sting s = s.ToString() + ':' + QP.GetPageText(8); } Andrew.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi!
The properties at SetTextExtractionArea depends on
where the title strings will be.
So it will be try and error (from document to document).
If you want to check always few types of standard documents
this could be a way but not for common use.
Cheers and welcome here,
Ingo
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Ingo's comments are very true. There is no general solution that would work for any document but it sounds like you have a specific document you need to process.
My sample code will get you started. You will need to adjust the Extraction area as required. Andrew.
|
|
![]() |
|
jcorral ![]() Beginner ![]() Joined: 06 Mar 12 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
Ok, I will try
thanks
|
|
![]() |
|
jcorral ![]() Beginner ![]() Joined: 06 Mar 12 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
I do not know if possible, maybe I have not explained well, I need to get the title pages in the markers left window(index)
Thanks
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi! I've already thought that this is what you really want... 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