If you want to do custom graphics processing rather than Graphics2D rendering, then you should
subclass PDFGraphicsStreamEngine instead. Subclassing PageDrawer is only suitable for
cases where the goal is to render onto a Graphics2D surface.
| Modifier and Type | Class and Description |
|---|---|
| private static class | CustomPageDrawer.
Example PageDrawer subclass with custom rendering. |
| private static class | CustomPageDrawer.
Example PDFRenderer subclass, uses MyPageDrawer for custom rendering. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void |
| CustomPageDrawer | back to summary |
|---|---|
| public CustomPageDrawer() | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws IOException | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | fillPath(int
The winding rule this path will use. windingRule)Overrides org. Filled path bounding boxes. |
| protected Paint | getPaint(PDColor
The color to get a paint for. This can be an actual color or a pattern. color)Overrides org. Color replacement. |
| public void | showAnnotation(PDAnnotation
An annotation on the current page. annotation)Overrides org. Custom annotation rendering. |
| 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. Glyph bounding boxes. |
| MyPageDrawer | back to summary |
|---|---|
| pack-priv MyPageDrawer(PageDrawerParameters parameters) throws IOException | |
| fillPath | back to summary |
|---|---|
| public void fillPath(int windingRule) throws IOException Overrides org. Filled path bounding boxes.
| |
| getPaint | back to summary |
|---|---|
| protected Paint getPaint(PDColor color) throws IOException Overrides org. Color replacement.
| |
| showAnnotation | back to summary |
|---|---|
| public void showAnnotation(PDAnnotation annotation) throws IOException Overrides org. Custom annotation rendering.
| |
| showGlyph | back to summary |
|---|---|
| protected void showGlyph(Matrix textRenderingMatrix, PDFont font, int code, Vector displacement) throws IOException Overrides org. Glyph bounding boxes.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected PageDrawer | createPageDrawer(PageDrawerParameters
parameters to be used when creating the PageDrawer instance parameters)Overrides org. Returns a new PageDrawer instance, using the given parameters. |
| MyPDFRenderer | back to summary |
|---|---|
| pack-priv MyPDFRenderer(PDDocument document) | |
| createPageDrawer | back to summary |
|---|---|
| protected PageDrawer createPageDrawer(PageDrawerParameters parameters) throws IOException Overrides org. Doc from org. Returns a new PageDrawer instance, using the given parameters. May be overridden.
| |