@@ -116,19 +116,22 @@ public List<TextElement> getText(Rectangle area) {
116116 return this .spatial_index .contains (area );
117117 }
118118
119- public List <TextElement > getText (float top , float left , float bottom , float right ) {
119+ /** @deprecated use {@linkplain #getText(Rectangle)} instead */
120+ @ Deprecated public List <TextElement > getText (float top , float left , float bottom , float right ) {
120121 return this .getText (new Rectangle (top , left , right - left , bottom - top ));
121122 }
122123
123- public Integer getRotation () {
124+ /** @deprecated with no replacement */
125+ @ Deprecated public Integer getRotation () {
124126 return rotation ;
125127 }
126128
127129 public int getPageNumber () {
128130 return pageNumber ;
129131 }
130132
131- public List <TextElement > getTexts () {
133+ /** @deprecated use {@linkplain #getText()} instead */
134+ @ Deprecated public List <TextElement > getTexts () {
132135 return texts ;
133136 }
134137
@@ -213,23 +216,27 @@ public List<Ruling> getUnprocessedRulings() {
213216 return this .rulings ;
214217 }
215218
216- public float getMinCharWidth () {
219+ /** @deprecated with no replacement */
220+ @ Deprecated public float getMinCharWidth () {
217221 return minCharWidth ;
218222 }
219223
220- public float getMinCharHeight () {
224+ /** @deprecated with no replacement */
225+ @ Deprecated public float getMinCharHeight () {
221226 return minCharHeight ;
222227 }
223228
224229 public PDPage getPDPage () {
225230 return pdPage ;
226231 }
227232
228- public RectangleSpatialIndex <TextElement > getSpatialIndex () {
233+ /** @deprecated with no replacement */
234+ @ Deprecated public RectangleSpatialIndex <TextElement > getSpatialIndex () {
229235 return this .spatial_index ;
230236 }
231237
232- public boolean hasText () {
238+ /** @deprecated with no replacement */
239+ @ Deprecated public boolean hasText () {
233240 return this .texts .size () > 0 ;
234241 }
235242
0 commit comments