| Access | Constructor and Description |
|---|---|
| public | PDAppearanceContentStream(PDAppearanceStream
The appearance stream to write to. appearance)Create a new appearance stream. |
| public | PDAppearanceContentStream(PDAppearanceStream
The appearance stream to write to. appearance, boolean whether the content stream is to be compressed. Set this to true when
creating long content streams. compress)Create a new appearance stream. |
| public | PDAppearanceContentStream(PDAppearanceStream
The appearance stream to add to. appearance, OutputStream The appearances output stream to write to. outputStream)Create a new appearance stream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | drawShape(float
the line width of the path. lineWidth, boolean shall there be a stroking color. hasStroke, boolean shall there be a fill color. hasFill)Draw a shape. |
| public void | setBorderLine(float
The line width. lineWidth, PDBorderStyleDictionary The border style, may be null. bs, COSArray The border array, must have at least three entries. This is
only used if the border style is null. border)Convenience method for annotations: sets the line with and dash style. |
| public void | |
| public void | setNonStrokingColor(float[]
the color components dependent on the color space being used. components)Set the non stroking color. |
| public boolean | Returns: true if the non stroking color was set successfullyThe colorspace to write. color)Set the non stroking color. |
| public void | setStrokingColor(float[]
the color components dependent on the color space being used. components)Set the stroking color. |
| public boolean | Returns: true if the stroking color was set successfullyThe colorspace to write. color)Set the stroking color. |
| PDAppearanceContentStream | back to summary |
|---|---|
| public PDAppearanceContentStream(PDAppearanceStream appearance) throws IOException Create a new appearance stream.
| |
| PDAppearanceContentStream | back to summary |
|---|---|
| public PDAppearanceContentStream(PDAppearanceStream appearance, boolean compress) throws IOException Create a new appearance stream.
| |
| PDAppearanceContentStream | back to summary |
|---|---|
| public PDAppearanceContentStream(PDAppearanceStream appearance, OutputStream outputStream) Create a new appearance stream.
| |
| drawShape | back to summary |
|---|---|
| public void drawShape(float lineWidth, boolean hasStroke, boolean hasFill) throws IOException Draw a shape. Dependent on the lineWidth and whether or not there is a background to be generated there are different commands to be used for draw a shape.
| |
| setBorderLine | back to summary |
|---|---|
| public void setBorderLine(float lineWidth, PDBorderStyleDictionary bs, COSArray border) throws IOException Convenience method for annotations: sets the line with and dash style.
| |
| setLineWidthOnDemand | back to summary |
|---|---|
| public void setLineWidthOnDemand(float lineWidth) throws IOException Sets the line width. The command is only emitted if the lineWidth is different to 1.
| |
| setNonStrokingColor | back to summary |
|---|---|
| public void setNonStrokingColor(float[] components) throws IOException Set the non stroking color.
| |
| setNonStrokingColorOnDemand | back to summary |
|---|---|
| public boolean setNonStrokingColorOnDemand(PDColor color) throws IOException Set the non stroking color. The command is only emitted if the color is not null and the number of components is > 0.
| |
| setStrokingColor | back to summary |
|---|---|
| public void setStrokingColor(float[] components) throws IOException Set the stroking color.
| |
| setStrokingColorOnDemand | back to summary |
|---|---|
| public boolean setStrokingColorOnDemand(PDColor color) throws IOException Set the stroking color. The command is only emitted if the color is not null and the number of components is > 0.
| |