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 - Page title
  FAQ FAQ  Forum Search   Register Register  Login Login

Page title

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


Joined: 06 Mar 12
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcorral Quote  Post ReplyReply Direct Link To This Post Topic: Page title
    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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 07 Mar 12 at 3:32AM

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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 07 Mar 12 at 7:37AM
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
 
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 07 Mar 12 at 8:59AM
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.
Back to Top
jcorral View Drop Down
Beginner
Beginner


Joined: 06 Mar 12
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcorral Quote  Post ReplyReply Direct Link To This Post Posted: 07 Mar 12 at 4:01PM
Ok, I will try

thanks 
Back to Top
jcorral View Drop Down
Beginner
Beginner


Joined: 06 Mar 12
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcorral Quote  Post ReplyReply Direct Link To This Post Posted: 07 Mar 12 at 7:25PM
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


Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 07 Mar 12 at 11:18PM

Hi!

I've already thought that this is what you really want...
Have a look in the online-reference at "outlines" or "bookmarks":
http://www.quickpdflibrary.com/help/quickpdf/Outlines.php
Here are samples:
http://help.quickpdflibrary.com/questions/tagged/outline-text.html

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