Class PdfRegionRectangle


  • public class PdfRegionRectangle
    extends java.lang.Object
    Author:
    Frank Münster
    • Constructor Summary

      Constructors 
      Constructor Description
      PdfRegionRectangle​(int regionX, int regionY, int regionW, int regionH)
      Creates a new PdfRegionRectangle with the given x,y position, width and height.
    • Constructor Detail

      • PdfRegionRectangle

        public PdfRegionRectangle​(int regionX,
                                  int regionY,
                                  int regionW,
                                  int regionH)
        Creates a new PdfRegionRectangle with the given x,y position, width and height.
        Parameters:
        regionX -
        regionY -
        regionW -
        regionH -
    • Method Detail

      • getAreaX

        public int getAreaX()
        Returns:
        the areaX
      • setAreaX

        public void setAreaX​(int areaX)
        Parameters:
        areaX - the areaX to set
      • getAreaY

        public int getAreaY()
        Returns:
        the areaY
      • setAreaY

        public void setAreaY​(int areaY)
        Parameters:
        areaY - the areaY to set
      • getAreaW

        public int getAreaW()
        Returns:
        the areaW
      • setAreaW

        public void setAreaW​(int areaW)
        Parameters:
        areaW - the areaW to set
      • getAreaH

        public int getAreaH()
        Returns:
        the areaH
      • setAreaH

        public void setAreaH​(int areaH)
        Parameters:
        areaH - the areaH to set
      • getRectangle

        public java.awt.Rectangle getRectangle()
        Return the region as Rectangle
        Returns:
        a Rectangle for this region
      • addToPDFTextStripperByArea

        public void addToPDFTextStripperByArea​(org.apache.pdfbox.text.PDFTextStripperByArea pdfTextStripper,
                                               java.lang.String regionName)
        Add this region to the given PDFTextStripper
        Parameters:
        pdfTextStripper - the PDFTextStripper
        regionName - the name of the region.