| Modifier and Type | Class and Description |
|---|---|
| public static enum | PDPageContentStream.
This is to choose what to do with the stream: overwrite, append or prepend. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Log | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | PDPageContentStream(PDDocument
The document the page is part of. document, PDPage The page to write the contents to. sourcePage)Create a new PDPage content stream. |
| public | PDPageContentStream(PDDocument
The document the page is part of. document, PDPage The page to write the contents to. sourcePage, PDPageContentStream.Indicates whether content will be overwritten, appended or prepended. appendContent,Tell if the content stream should compress the page contents. compress)Create a new PDPage content stream. |
| public | PDPageContentStream(PDDocument
The document the page is part of. document, PDPage The page to write the contents to. sourcePage, PDPageContentStream.Indicates whether content will be overwritten, appended or prepended. appendContent,Tell if the content stream should compress the page contents. compress, boolean Tell if the graphic context should be reset. This is only relevant when
the appendContent parameter is set to resetContext)AppendMode#APPEND. You should use this when
appending to an existing stream, because the existing stream may have changed graphic
properties (e.g. scaling, rotation).Create a new PDPage content stream. |
| private | PDPageContentStream(PDDocument document, PDPage sourcePage, PDPageContentStream.
|
| public | PDPageContentStream(PDDocument
The document the page is part of. doc, PDAppearanceStream The appearance stream to write to. appearance)Create a new appearance stream. |
| public | PDPageContentStream(PDDocument
The document the appearance is part of. doc, 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 | appendRawCommands(String
The commands to append to the stream. commands)
Deprecated
Usage of this method is discouraged.
This will append raw commands to the content stream. |
| public void | appendRawCommands(byte[]
The commands to append to the stream. commands)
Deprecated
Usage of this method is discouraged.
This will append raw commands to the content stream. |
| public void | appendRawCommands(int
Append a raw byte to the stream. data)
Deprecated
Usage of this method is discouraged.
This will append raw commands to the content stream. |
| public void | appendRawCommands(double
Append a formatted double value to the stream. data)
Deprecated
Usage of this method is discouraged.
This will append raw commands to the content stream. |
| public void | appendRawCommands(float
Append a formatted float value to the stream. data)
Deprecated
Usage of this method is discouraged.
This will append raw commands to the content stream. |
| LOG | back to summary |
|---|---|
| private static final Log LOG Hides org. | |
| sourcePageHadContents | back to summary |
|---|---|
| private boolean sourcePageHadContents | |
| PDPageContentStream | back to summary |
|---|---|
| public PDPageContentStream(PDDocument document, PDPage sourcePage) throws IOException Create a new PDPage content stream. This constructor overwrites all existing content streams of this page.
| |
| PDPageContentStream | back to summary |
|---|---|
| public PDPageContentStream(PDDocument document, PDPage sourcePage, PDPageContentStream. Create a new PDPage content stream. If the appendContent parameter is set to
| |
| PDPageContentStream | back to summary |
|---|---|
| public PDPageContentStream(PDDocument document, PDPage sourcePage, PDPageContentStream. Create a new PDPage content stream.
| |
| PDPageContentStream | back to summary |
|---|---|
| private PDPageContentStream(PDDocument document, PDPage sourcePage, PDPageContentStream. | |
| PDPageContentStream | back to summary |
|---|---|
| public PDPageContentStream(PDDocument doc, PDAppearanceStream appearance) throws IOException Create a new appearance stream. Note that this is not actually a "page" content stream.
| |
| PDPageContentStream | back to summary |
|---|---|
| public PDPageContentStream(PDDocument doc, PDAppearanceStream appearance, OutputStream outputStream) Create a new appearance stream. Note that this is not actually a "page" content stream.
| |
| appendRawCommands | back to summary |
|---|---|
| public void appendRawCommands(String commands) throws IOException
Deprecated Usage of this method is discouraged. This will append raw commands to the content stream.
| |
| appendRawCommands | back to summary |
|---|---|
| public void appendRawCommands(byte[] commands) throws IOException
Deprecated Usage of this method is discouraged. This will append raw commands to the content stream.
| |
| appendRawCommands | back to summary |
|---|---|
| public void appendRawCommands(int data) throws IOException
Deprecated Usage of this method is discouraged. This will append raw commands to the content stream.
| |
| appendRawCommands | back to summary |
|---|---|
| public void appendRawCommands(double data) throws IOException
Deprecated Usage of this method is discouraged. This will append raw commands to the content stream.
| |
| appendRawCommands | back to summary |
|---|---|
| public void appendRawCommands(float data) throws IOException
Deprecated Usage of this method is discouraged. This will append raw commands to the content stream.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final PDPageContentStream. | APPEND
Append the content stream after all existing page content streams. |
| public static final PDPageContentStream. | OVERWRITE
Overwrite the existing page content streams. |
| public static final PDPageContentStream. | PREPEND
Insert before all other page content streams. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public static PDPageContentStream. | |
| public static PDPageContentStream. |
| APPEND | back to summary |
|---|---|
| public static final PDPageContentStream. Append the content stream after all existing page content streams. | |
| OVERWRITE | back to summary |
|---|---|
| public static final PDPageContentStream. Overwrite the existing page content streams. | |
| PREPEND | back to summary |
|---|---|
| public static final PDPageContentStream. Insert before all other page content streams. | |
| AppendMode | back to summary |
|---|---|
| private AppendMode() | |
| isOverwrite | back to summary |
|---|---|
| public boolean isOverwrite() | |
| isPrepend | back to summary |
|---|---|
| public boolean isPrepend() | |
| valueOf | back to summary |
|---|---|
| public static PDPageContentStream. | |
| values | back to summary |
|---|---|
| public static PDPageContentStream. | |