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

  • Home
  • SEARCH
  • 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 3316780
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:30:35+00:00 2026-05-17T22:30:35+00:00

On my website, I display uploaded PDF files in a flash player for my

  • 0

On my website, I display uploaded PDF files in a flash player for my users to read.

I already use various tools to extract the text and produce a serious of high quality images from the file and the system works well.

The last piece of the puzzle is to be able to highlight specific parts of the document to help users with accessibility issues.

However I cannot figure out how to calculate where the specific text is positioned on the page?

Notes:

  • The documents uploaded to the system are from 3rd parties, so fonts may be embedded. Meaning that I cannot be sure of the width of specific letters.
  • The text to be highlighted may not be unique, the same text may be repeated

How can I calculate the coordinates, height and width of a specific piece of text on a PDF, so that I can then draw a box around it?

  • 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-17T22:30:35+00:00Added an answer on May 17, 2026 at 10:30 pm

    I have used an SDK called QuickPDF from http://www.quickpdf.com for a recent project.

    They have a function called ExtractFilePageText() that can return the text, font, bounding box coordinates.

    The extraction options include :-

    0 = Extract text in human readable format
    2 = Return a CSV string including font, color, size and position of each piece of
    text on the page
    Using the more accurate text extraction algorithm:
    3 = Return a CSV string for each piece of text on the page with the following
    format:
    Font Name, Text Color, Text Size, X1, Y1, X2, Y2, X3, Y3, X4, Y4, Text
    The co-ordinates are the four points bounding the text, measured in points (1/72
    inch) with the bottom-left corner of the page as the origin
    4 = Similar to option 3, but individual words are returned, making searching for
    words easier.

    There is a Developer License required but no runtime royalties. It has many other useful features and works with many languages. The documentation is pretty good also.

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

Sidebar

Related Questions

I am using Scribd API (www.scribd.com) to display the PDF files in my website.
I need to display the users last activity in the website. Reviews posted, images/video
With LINQ to SQL in a ASP.NET MVC website I can display objects (records)
I want to display documents on my website. The server is hosted on a
I've been asked to display the 'correct' time on our website which I frankly
I want to display the TIME field from my mysql table on my website,
I'm creating a website for my church and I'm having problems making it display
For some strange, bizarre reason, my images in my website just will not display
Here are the requirements, the users needs to be able to view uploaded PDFs
I have read the following tutorial Uploading Files To the Server Using PHP and

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.