| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private File | |
| private static final List | |
| private boolean | |
| private String | |
| private String | |
| private final Set | |
| private final PrintStream | |
| private final PrintStream | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Integer | call()
Implements java. Computes a result, or throws an exception if unable to do so. |
| public static void |
| imageCounter | back to summary |
|---|---|
| private int imageCounter | |
| infile | back to summary |
|---|---|
private File infile
| |
| JPEG | back to summary |
|---|---|
| private static final List<String> JPEG | |
| noColorConvert | back to summary |
|---|---|
private boolean noColorConvert
| |
| password | back to summary |
|---|---|
private String password
| |
| prefix | back to summary |
|---|---|
private String prefix
| |
| seen | back to summary |
|---|---|
| private final Set<COSStream> seen | |
| SYSERR | back to summary |
|---|---|
private final PrintStream SYSERR
| |
| SYSOUT | back to summary |
|---|---|
private final PrintStream SYSOUT
| |
| useDirectJPEG | back to summary |
|---|---|
private boolean useDirectJPEG
| |
| ExtractImages | back to summary |
|---|---|
| public ExtractImages() Constructor. | |
| call | back to summary |
|---|---|
| public Integer call() Implements java. Doc from java. Computes a result, or throws an exception if unable to do so.
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) Entry point for the application.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | appendRectangle(Point2D
starting coordinate of the rectangle p0, Point2D second coordinate of the rectangle p1, Point2D third coordinate of the rectangle p2, Point2D last coordinate of the rectangle p3)Implements abstract org. Append a rectangle to the current path. |
| public void | clip(int
The winding rule which will be used for clipping. windingRule)Implements abstract org. Modify the current clipping path by intersecting it with the current path. |
| public void | closePath()
Implements abstract org. Closes the current path. |
| public void | curveTo(float
the X coordinate of the first Bézier control point x1, float the Y coordinate of the first Bézier control point y1, float the X coordinate of the second Bézier control point x2, float the Y coordinate of the second Bézier control point y2, float the X coordinate of the final end point x3, float the Y coordinate of the final end point y3)Implements abstract org. Draws a curve from the current point to (x3,y3) using (x1,y1) and (x2,y2) as control points. |
| public void | drawImage(PDImage
The image to draw. pdImage)Implements abstract org. Draw the image. |
| public void | endPath()
Implements abstract org. Ends the current path without filling or stroking it. |
| public void | fillAndStrokePath(int
The winding rule this path will use. windingRule)Implements abstract org. Fills and then strokes the path. |
| public void | fillPath(int
The winding rule this path will use. windingRule)Implements abstract org. Fill the path. |
| public Point2D | getCurrentPoint()
Implements abstract org. Returns the current point of the current path. |
| private boolean | |
| public void | lineTo(float
the X-coordinate of the ending-point of the line to be drawn x, float the Y-coordinate of the ending-point of the line to be drawn y)Implements abstract org. Draws a line from the current point to (x,y). |
| public void | moveTo(float
the x-coordinate to move to x, float the y-coordinate to move to y)Implements abstract org. Starts a new path at (x,y). |
| private void | |
| public void | |
| public void | shadingFill(COSName
The name of the Shading Dictionary to use for this fill instruction. shadingName)Implements abstract org. Fill with Shading. |
| 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. |
| public void | strokePath()
Implements abstract org. Stroke the path. |
| private void | write2file(PDImage
the image. pdImage, String the filename prefix. prefix, boolean if true, force saving JPEG/JPX streams as they are in the PDF file. directJPEG, boolean if true, images are extracted with their original colorspace if
possible. noColorConvert)Writes the image to a file with the filename prefix + an appropriate suffix, like "Image.jpg". |
| ImageGraphicsEngine | back to summary |
|---|---|
| protected ImageGraphicsEngine(PDPage page) | |
| appendRectangle | back to summary |
|---|---|
| public void appendRectangle(Point2D p0, Point2D p1, Point2D p2, Point2D p3) throws IOException Implements abstract org. Doc from org. Append a rectangle to the current path. | |
| clip | back to summary |
|---|---|
| public void clip(int windingRule) throws IOException Implements abstract org. Doc from org. Modify the current clipping path by intersecting it with the current path. The clipping path will not be updated until the succeeding painting operator is called.
| |
| closePath | back to summary |
|---|---|
| public void closePath() throws IOException Implements abstract org. Doc from org. Closes the current path.
| |
| curveTo | back to summary |
|---|---|
| public void curveTo(float x1, float y1, float x2, float y2, float x3, float y3) throws IOException Implements abstract org. Doc from org. Draws a curve from the current point to (x3,y3) using (x1,y1) and (x2,y2) as control points.
| |
| drawImage | back to summary |
|---|---|
| public void drawImage(PDImage pdImage) throws IOException Implements abstract org. Doc from org. Draw the image.
| |
| endPath | back to summary |
|---|---|
| public void endPath() throws IOException Implements abstract org. Doc from org. Ends the current path without filling or stroking it. The clipping path is updated here.
| |
| fillAndStrokePath | back to summary |
|---|---|
| public void fillAndStrokePath(int windingRule) throws IOException Implements abstract org. Doc from org. Fills and then strokes the path.
| |
| fillPath | back to summary |
|---|---|
| public void fillPath(int windingRule) throws IOException Implements abstract org. Doc from org. Fill the path.
| |
| getCurrentPoint | back to summary |
|---|---|
| public Point2D getCurrentPoint() throws IOException Implements abstract org. Doc from org. Returns the current point of the current path.
| |
| hasMasks | back to summary |
|---|---|
| private boolean hasMasks(PDImage pdImage) throws IOException | |
| lineTo | back to summary |
|---|---|
| public void lineTo(float x, float y) throws IOException Implements abstract org. Doc from org. Draws a line from the current point to (x,y).
| |
| moveTo | back to summary |
|---|---|
| public void moveTo(float x, float y) throws IOException Implements abstract org. Doc from org. Starts a new path at (x,y).
| |
| processColor | back to summary |
|---|---|
| private void processColor(PDColor color) throws IOException | |
| run | back to summary |
|---|---|
| public void run() throws IOException | |
| shadingFill | back to summary |
|---|---|
| public void shadingFill(COSName shadingName) throws IOException Implements abstract org. Doc from org. Fill with Shading.
| |
| 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. This method is intended for overriding in subclasses, the default implementation does nothing.
| |
| strokePath | back to summary |
|---|---|
| public void strokePath() throws IOException Implements abstract org. Doc from org. Stroke the path.
| |
| write2file | back to summary |
|---|---|
| private void write2file(PDImage pdImage, String prefix, boolean directJPEG, boolean noColorConvert) throws IOException Writes the image to a file with the filename prefix + an appropriate suffix, like "Image.jpg". The suffix is automatically set depending on the image compression in the PDF.
| |