| Modifier and Type | Method and Description |
|---|---|
| public void | addMetadata(String
the name of the metadata element to add. name, String value)Appends a name/content metadata pair to this output device. |
| public void | |
| public void | |
| public void | |
| public void | drawBorderLine(Shape bounds, int side, int lineWidth, boolean solid)
Redeclares com.
|
| public void | drawImage(FSImage fsImage, int x, int y, boolean interpolate)
Redeclares com.
|
| public void | drawOval(int x, int y, int width, int height)
Redeclares com.
|
| public void | drawPdfAsImage(PDFormXObject _src, Rectangle contentBounds, float intrinsicWidth, float intrinsicHeight)
|
| public void | drawRect(int x, int y, int width, int height)
Redeclares com.
|
| public void | drawSelection(RenderingContext c, InlineText inlineText)
Redeclares com.
|
| public void | |
| public void | drawStringFast(String s, float x, float y, JustificationInfo info, PdfBoxFontResolver.
|
| public void | drawWithGraphics(float x, float y, float width, float height, OutputDeviceGraphicsDrawer renderer)
Redeclares com. Draw something using a Graphics2D at the given rectangle. |
| public void | |
| public void | fillOval(int x, int y, int width, int height)
Redeclares com.
|
| public void | fillRect(int x, int y, int width, int height)
Redeclares com.
|
| public List | |
| public void | |
| public void | |
| public float | |
| public float | |
| public Shape | |
| public PdfContentStreamAdapter | |
| public float | |
| public float | |
| public List | |
| public String | Returns: the content value of the first found metadata element; otherwise null.the metadata element name to locate. name)Searches the metadata name/content pairs of the current document and returns the content value from the first pair with a matching name. |
| public List | Returns: an ArrayList with matching content values; otherwise an empty list.the metadata element name to locate. name)Searches the metadata name/content pairs of the current document and returns any content values with a matching name in an ArrayList. |
| public PDPage | |
| public int | |
| public Object | |
| public SharedContext | |
| public int | |
| public Stroke | |
| public PDDocument | |
| public void | |
| public boolean | isFastRenderer()
Redeclares com. The new (2018) fast renderer is in use. |
| public boolean | |
| public boolean | |
| public boolean | |
| public float | normalizeY(float y, float pageHeight)
Converts a top down unit to a bottom up PDF unit for the specified page height. |
| public void | paintBackground(RenderingContext c, Box box)
Redeclares com. We use paintBackground to do extra stuff such as processing links, forms and form controls. |
| public void | |
| public void | popClip()
Redeclares com. Reverts the last clip on the stack. |
| public void | popTransformLayer()
Redeclares com. Reverts the transform on the stack. |
| public void | popTransforms(List<AffineTransform> inverse)
Redeclares com.
|
| public void | pushClip(Shape s)
Redeclares com. Applies a clip on the output device. |
| public void | pushTransformLayer(AffineTransform transform)
Redeclares com. Applies a transform on the output device. |
| public List | pushTransforms(List<AffineTransform> transforms)
Redeclares com. Apply the given transform on top of the current one in the PDF graphics stream. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setMetadata(String
the metadata element name to locate. name, String value)Replaces all copies of the named metadata with a single value. |
| public void | |
| public void | |
| public void | setRenderingHint(RenderingHints.
Redeclares com.
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| addMetadata | back to summary |
|---|---|
| public void addMetadata(String name, String value) Appends a name/content metadata pair to this output device. A name or content value of null will be ignored.
| |
| clip | back to summary |
|---|---|
| public void clip(Shape s) Redeclares com. | |
| close | back to summary |
|---|---|
| public void close() Perform any internal cleanup needed | |
| draw | back to summary |
|---|---|
| public void draw(Shape s) Redeclares com. | |
| drawBorderLine | back to summary |
|---|---|
| public void drawBorderLine(Shape bounds, int side, int lineWidth, boolean solid) Redeclares com. | |
| drawImage | back to summary |
|---|---|
| public void drawImage(FSImage fsImage, int x, int y, boolean interpolate) Redeclares com. | |
| drawOval | back to summary |
|---|---|
| public void drawOval(int x, int y, int width, int height) Redeclares com. | |
| drawPdfAsImage | back to summary |
|---|---|
| public void drawPdfAsImage(PDFormXObject _src, Rectangle contentBounds, float intrinsicWidth, float intrinsicHeight) | |
| drawRect | back to summary |
|---|---|
| public void drawRect(int x, int y, int width, int height) Redeclares com. | |
| drawSelection | back to summary |
|---|---|
| public void drawSelection(RenderingContext c, InlineText inlineText) Redeclares com. | |
| drawString | back to summary |
|---|---|
| public void drawString(String s, float x, float y, JustificationInfo info) | |
| drawStringFast | back to summary |
|---|---|
| public void drawStringFast(String s, float x, float y, JustificationInfo info, PdfBoxFontResolver. | |
| drawWithGraphics | back to summary |
|---|---|
| public void drawWithGraphics(float x, float y, float width, float height, OutputDeviceGraphicsDrawer renderer) Redeclares com. Doc from com. Draw something using a Graphics2D at the given rectangle. | |
| fill | back to summary |
|---|---|
| public void fill(Shape s) Redeclares com. | |
| fillOval | back to summary |
|---|---|
| public void fillOval(int x, int y, int width, int height) Redeclares com. | |
| fillRect | back to summary |
|---|---|
| public void fillRect(int x, int y, int width, int height) Redeclares com. | |
| findPagePositionsByID | back to summary |
|---|---|
| public List | |
| finish | back to summary |
|---|---|
| public void finish(RenderingContext c, Box root) | |
| finishPage | back to summary |
|---|---|
| public void finishPage() | |
| getAbsoluteTransformOriginX | back to summary |
|---|---|
| public float getAbsoluteTransformOriginX() Redeclares com. | |
| getAbsoluteTransformOriginY | back to summary |
|---|---|
| public float getAbsoluteTransformOriginY() Redeclares com. | |
| getClip | back to summary |
|---|---|
| public Shape getClip() Redeclares com. | |
| getCurrentPage | back to summary |
|---|---|
| public PdfContentStreamAdapter getCurrentPage() | |
| getDeviceLength | back to summary |
|---|---|
| public float getDeviceLength(float length) Given a value in dots units, converts to PDF points. | |
| getDotsPerPoint | back to summary |
|---|---|
| public float getDotsPerPoint() | |
| getMetadata | back to summary |
|---|---|
| public List | |
| getMetadataByName | back to summary |
|---|---|
| public String getMetadataByName(String name) Searches the metadata name/content pairs of the current document and returns the content value from the first pair with a matching name. The search is case insensitive. | |
| getMetadataListByName | back to summary |
|---|---|
| public List Searches the metadata name/content pairs of the current document and returns any content values with a matching name in an ArrayList. The search is case insensitive. | |
| getPage | back to summary |
|---|---|
| public PDPage getPage() | |
| getPageRefY | back to summary |
|---|---|
| public int getPageRefY(Box box) | |
| getRenderingHint | back to summary |
|---|---|
| public Object getRenderingHint(RenderingHints. Redeclares com. | |
| getSharedContext | back to summary |
|---|---|
| public SharedContext getSharedContext() | |
| getStartPageNo | back to summary |
|---|---|
| public int getStartPageNo() | |
| getStroke | back to summary |
|---|---|
| public Stroke getStroke() Redeclares com. | |
| getWriter | back to summary |
|---|---|
| public PDDocument getWriter() | |
| initializePage | back to summary |
|---|---|
| public void initializePage(PDPageContentStream currentPage, PDPage page, float height) Start a page. A new PDF page starts a new content stream so all graphics state has to be set back to default. | |
| isFastRenderer | back to summary |
|---|---|
| public boolean isFastRenderer() Redeclares com. Doc from com. The new (2018) fast renderer is in use. | |
| isPDF | back to summary |
|---|---|
| public boolean isPDF() Redeclares com. | |
| isSupportsCMYKColors | back to summary |
|---|---|
| public boolean isSupportsCMYKColors() Redeclares com. | |
| isSupportsSelection | back to summary |
|---|---|
| public boolean isSupportsSelection() Redeclares com. | |
| normalizeY | back to summary |
|---|---|
| public float normalizeY(float y, float pageHeight) Converts a top down unit to a bottom up PDF unit for the specified page height. | |
| paintBackground | back to summary |
|---|---|
| public void paintBackground(RenderingContext c, Box box) Redeclares com. We use paintBackground to do extra stuff such as processing links, forms and form controls. | |
| paintReplacedElement | back to summary |
|---|---|
| public void paintReplacedElement(RenderingContext c, BlockBox box) Redeclares com. | |
| popClip | back to summary |
|---|---|
| public void popClip() Redeclares com. Doc from com. Reverts the last clip on the stack.
The fast renderer MUST use Note The current implementation shares a stack
between transforms and clips, so calls to | |
| popTransformLayer | back to summary |
|---|---|
| public void popTransformLayer() Redeclares com. Doc from com. Reverts the transform on the stack. Note The current implementation shares a stack
between transforms and clips, so calls to | |
| popTransforms | back to summary |
|---|---|
| public void popTransforms(List<AffineTransform> inverse) Redeclares com. | |
| pushClip | back to summary |
|---|---|
| public void pushClip(Shape s) Redeclares com. Doc from com. Applies a clip on the output device. This is a cumulative operation.
The fast renderer MUST use Note The current implementation shares a stack
between transforms and clips, so calls to | |
| pushTransformLayer | back to summary |
|---|---|
| public void pushTransformLayer(AffineTransform transform) Redeclares com. Doc from com. Applies a transform on the output device. This is a cumulativew operation. Note The current implementation shares a stack
between transforms and clips, so calls to | |
| pushTransforms | back to summary |
|---|---|
| public List Redeclares com. Doc from com. Apply the given transform on top of the current one in the PDF graphics stream. This is a cumulative operation. You should popTransform after the box and children are painted.
| |
| realizeImage | back to summary |
|---|---|
| public void realizeImage(PdfBoxImage img) | |
| setBidiReorderer | back to summary |
|---|---|
| public void setBidiReorderer(BidiReorderer reorderer) | |
| setClip | back to summary |
|---|---|
| public void setClip(Shape s) Redeclares com. | |
| setColor | back to summary |
|---|---|
| public void setColor(FSColor color) Redeclares com. | |
| setFont | back to summary |
|---|---|
| public void setFont(FSFont font) Redeclares com. | |
| setMetadata | back to summary |
|---|---|
| public void setMetadata(String name, String value) Replaces all copies of the named metadata with a single value. A a new
value of null will result in the removal of all copies of the named
metadata. Use
| |
| setPaint | back to summary |
|---|---|
| public void setPaint(Paint paint) Redeclares com. | |
| setRenderingContext | back to summary |
|---|---|
| public void setRenderingContext(RenderingContext result) | |
| setRenderingHint | back to summary |
|---|---|
| public void setRenderingHint(RenderingHints. Redeclares com. | |
| setRoot | back to summary |
|---|---|
| public void setRoot(Box root) | |
| setSharedContext | back to summary |
|---|---|
| public void setSharedContext(SharedContext sharedContext) | |
| setStartPageNo | back to summary |
|---|---|
| public void setStartPageNo(int startPageNo) | |
| setStroke | back to summary |
|---|---|
| public void setStroke(Stroke s) Redeclares com. | |
| setWriter | back to summary |
|---|---|
| public void setWriter(PDDocument writer) | |
| start | back to summary |
|---|---|
| public void start(Document doc) | |
| translate | back to summary |
|---|---|
| public void translate(double tx, double ty) Redeclares com. | |