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 8242915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:19:53+00:00 2026-06-07T21:19:53+00:00

In what dimensions and direction is the Rectangle in the PDFTextStripperByArea ‘s function addRegion(String

  • 0

In what dimensions and direction is the Rectangle in the

PDFTextStripperByArea‘s function addRegion(String regionName, Rectangle2D rect).

In other words, where does the rectangle R start and how big is it (dimensions of the origin values, dimensions of the rectangle) and in what direction does it go (direction of the blue arrows in illustration), if new Rectangle(10,10,100,100) is given as a second parameter?

PdfBox rectangle

  • 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-06-07T21:19:56+00:00Added an answer on June 7, 2026 at 9:19 pm
    new Rectangle(10,10,100,100)
    

    means that the rectangle will have its upper-left corner at position (10, 10), so 10 units far from the left and the top of the PDF document. Here a “unit” is 1 pt = 1/72 inch.

    The first 100 represents the width of the rectangle and the second one its height.
    To sum up, the right picture is the first one.

    I wrote this code to extract some areas of a page given as arguments to the function:

    Rectangle2D region = new Rectangle2D.Double(x, y, width, height);
    String regionName = "region";
    PDFTextStripperByArea stripper;
    
    stripper = new PDFTextStripperByArea();
    stripper.addRegion(regionName, region);
    stripper.extractRegions(page);
    

    So, x and y are the absolute coordinates of the upper-left corner of the Rectangle and then you specify its width and height. page is a PDPage variable given as argument to this function.

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

Sidebar

Related Questions

I was wanting to create a 2 dimensional string array that had dimensions string[5][*]
I have a start point in 3D coordinates, e.g. (0,0,0). I have the direction
Anyone can help me with a function or point me into the direction on
Are all canvas tag dimensions in pixels? I am asking because I understood them
Assume that the dimensions are very large (up to 1 billion elements in a
I would like to get the dimensions (coordinates) for all the HTML elements of
The idea is to walk over multiple dimensions, each one defined as a range
I've loaded a JPG with dimensions 3264x2448 into a Sprite. How can I resize
I’m working on a multi dimensions array but i have a problem Imagine I
I try to change the dimensions of the view in interface builder from the

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.