Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6967699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:21:19+00:00 2026-05-27T16:21:19+00:00

Is it possible to get page title via iText ? The PdfTextExtractor returns all

  • 0

Is it possible to get page title via iText?

  • The PdfTextExtractor returns all text from the page but I don’t know what line is title. Also, title may contain more than one line
  • I don’t know coordinates of title thus I can’t use RegionTextRenderFilter
  • I can try to analyze the font size and take the line(s) with biggest font but TextRenderInfo doesn’t provide public access to gs (private final GraphicsState gs)
  • Any other ideas?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:21:20+00:00Added an answer on May 27, 2026 at 4:21 pm

    Pages within a PDF don’t have titles, they just have text that happens to be bold or in a large font and appears in an area you consider to be “more top” than other pieces of text. It sounds like you know this already, I just needed to be clear on this.

    See my post here which shows how to get font information by subclassing ITextExtractionStrategy. My sample targets iTextSharp which is the .Net port of iText but they match pretty much feature-to-feature. The biggest differences is that Java uses getXXX and setXXX whereas .Net just uses XXX for both. Otherwise everything should port just fine.

    The moral of the story is that you are going to have to write some arbitrary rules defining what you think of as a “title” and then parse based on those rules.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to get the value from the first page to the second
In .NET is it possible to get the HttpContext of the current page from
Is it possible for a web page using Javascript to get data from another
Possible Duplicate: Get all files from VSS for a given date? I need to
Is it possible to get a browser's home page using Javascript? I'd like to
Is it possible to get the mouse position with JavaScript after page loads without
How can I get the title of a web page for a given URL
Possible Duplicate: Uploadify: show error message from HTTP response I am trying to get
The title sounds confusing.. but im sure this is possible! I have one button,
Possible Duplicate: Mysql single query join 3 table and get all the results Hi

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.