|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.itextpdf.text.pdf.parser.LocationAwareTextExtractingPdfContentRenderListener.LocationOnPage
private static class LocationAwareTextExtractingPdfContentRenderListener.LocationOnPage
Represents a chunk of text, it's orientation, and location relative to the orientation vector
| Field Summary | |
|---|---|
(package private) int |
distParallel
parallel distance to the orientation unit vector (i.e. |
(package private) int |
distPerpendicular
perpendicular distance to the orientation unit vector (i.e. |
(package private) Vector |
endLocation
the ending location of the chunk |
(package private) int |
orientationMagnitude
the magnitude of the orientation - this consists of just the Y component of the orientation vector this seems to work for now, but we may need to move to a different mechanism once we run into PDFs with different text orientation (This is just not an area that's been tested yet) |
(package private) Vector |
orientationVector
unit vector in the orientation of the chunk |
(package private) Vector |
startLocation
the starting location of the chunk |
(package private) String |
text
the text of the chunk |
| Constructor Summary | |
|---|---|
LocationAwareTextExtractingPdfContentRenderListener.LocationOnPage(String string,
Vector startLocation,
Vector endLocation)
|
|
| Method Summary | |
|---|---|
private static int |
compareInts(int int1,
int int2)
|
int |
compareTo(LocationAwareTextExtractingPdfContentRenderListener.LocationOnPage rhs)
Compares based on orientation, perpendicular distance, then parallel distance |
private void |
printDiagnostics()
|
boolean |
sameLine(LocationAwareTextExtractingPdfContentRenderListener.LocationOnPage as)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final String text
final Vector startLocation
final Vector endLocation
final Vector orientationVector
final int orientationMagnitude
final int distPerpendicular
final int distParallel
| Constructor Detail |
|---|
public LocationAwareTextExtractingPdfContentRenderListener.LocationOnPage(String string,
Vector startLocation,
Vector endLocation)
| Method Detail |
|---|
private void printDiagnostics()
public boolean sameLine(LocationAwareTextExtractingPdfContentRenderListener.LocationOnPage as)
as - the location to compare to
public int compareTo(LocationAwareTextExtractingPdfContentRenderListener.LocationOnPage rhs)
compareTo in interface Comparable<LocationAwareTextExtractingPdfContentRenderListener.LocationOnPage>Comparable.compareTo(java.lang.Object)
private static int compareInts(int int1,
int int2)
int1 - int2 -
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||