| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private AffineTransform | |
| private Graphics2D | |
| private AffineTransform | |
| pack-priv static final int | |
| private AffineTransform |
| Access | Constructor and Description |
|---|---|
| public | DrawPrintTextLocations(PDDocument document, String filename)
Instantiate a new PDFTextStripper object. |
| Modifier and Type | Method and Description |
|---|---|
| private Shape | |
| public static void | |
| protected void | showGlyph(Matrix
the current text rendering matrix, Trm textRenderingMatrix, PDFont the current font font, int internal PDF character code for the glyph code, Vector the displacement (i.e. advance) of the glyph in text space displacement)Overrides org. Called when a glyph is to be processed. |
| private void | |
| private static void | |
| protected void | writeString(String
The text to write to the stream. string, List<TextPosition> The TextPositions belonging to the text. textPositions)Overrides org. Override the default functionality of PDFTextStripper. |
| filename | back to summary |
|---|---|
| private final String filename | |
| flipAT | back to summary |
|---|---|
| private AffineTransform flipAT | |
| g2d | back to summary |
|---|---|
| private Graphics2D g2d | |
| rotateAT | back to summary |
|---|---|
| private AffineTransform rotateAT | |
| SCALE | back to summary |
|---|---|
| pack-priv static final int SCALE | |
| transAT | back to summary |
|---|---|
| private AffineTransform transAT | |
| DrawPrintTextLocations | back to summary |
|---|---|
| public DrawPrintTextLocations(PDDocument document, String filename) throws IOException Instantiate a new PDFTextStripper object.
| |
| calculateGlyphBounds | back to summary |
|---|---|
| private Shape calculateGlyphBounds(Matrix textRenderingMatrix, PDFont font, int code) throws IOException | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws IOException This will print the documents data.
| |
| showGlyph | back to summary |
|---|---|
| protected void showGlyph(Matrix textRenderingMatrix, PDFont font, int code, Vector displacement) throws IOException Overrides org. Doc from org. Called when a glyph is to be processed. The heuristic calculations here were originally written by Ben Litchfield for PDFStreamEngine.
| |
| stripPage | back to summary |
|---|---|
| private void stripPage(int page) throws IOException | |
| usage | back to summary |
|---|---|
| private static void usage() This will print the usage for this document. | |
| writeString | back to summary |
|---|---|
| protected void writeString(String string, List<TextPosition> textPositions) throws IOException Overrides org. Override the default functionality of PDFTextStripper.
| |