public class ITextOutputDevice
extends org.xhtmlrenderer.render.AbstractOutputDevice
implements org.xhtmlrenderer.extend.OutputDevice
PdfGraphics2D.
See http://sourceforge.net/
projects/itext/ for license information.| Constructor and Description |
|---|
ITextOutputDevice(float dotsPerPoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMetadata(String name,
String value)
Appends a name/content metadata pair to this output device.
|
void |
clip(Shape s) |
com.lowagie.text.Rectangle |
createLocalTargetArea(org.xhtmlrenderer.render.RenderingContext c,
org.xhtmlrenderer.render.Box box) |
com.lowagie.text.Rectangle |
createTargetArea(org.xhtmlrenderer.render.RenderingContext c,
org.xhtmlrenderer.render.Box box) |
void |
draw(Shape s) |
void |
drawBorderLine(Shape bounds,
int side,
int lineWidth,
boolean solid) |
void |
drawImage(org.xhtmlrenderer.extend.FSImage fsImage,
int x,
int y) |
protected void |
drawLine(int x1,
int y1,
int x2,
int y2) |
void |
drawOval(int x,
int y,
int width,
int height) |
void |
drawRect(int x,
int y,
int width,
int height) |
void |
drawSelection(org.xhtmlrenderer.render.RenderingContext c,
org.xhtmlrenderer.render.InlineText inlineText) |
void |
drawString(String s,
float x,
float y,
org.xhtmlrenderer.render.JustificationInfo info) |
void |
fill(Shape s) |
void |
fillOval(int x,
int y,
int width,
int height) |
void |
fillRect(int x,
int y,
int width,
int height) |
List |
findPagePositionsByID(org.xhtmlrenderer.css.style.CssContext c,
Pattern pattern) |
void |
finish(org.xhtmlrenderer.render.RenderingContext c,
org.xhtmlrenderer.render.Box root) |
void |
finishPage() |
Shape |
getClip() |
com.lowagie.text.pdf.PdfContentByte |
getCurrentPage() |
float |
getDeviceLength(float length) |
float |
getDotsPerPoint() |
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.
|
ArrayList |
getMetadataListByName(String name)
Searches the metadata name/content pairs of the current document and
returns any content values with a matching name in an ArrayList.
|
int |
getNextFormFieldIndex() |
com.lowagie.text.pdf.PdfReader |
getReader(URI uri) |
Object |
getRenderingHint(RenderingHints.Key key) |
org.xhtmlrenderer.layout.SharedContext |
getSharedContext() |
int |
getStartPageNo() |
Stroke |
getStroke() |
AffineTransform |
getTransform() |
com.lowagie.text.pdf.PdfWriter |
getWriter() |
void |
initializePage(com.lowagie.text.pdf.PdfContentByte currentPage,
float height) |
boolean |
isSupportsCMYKColors() |
boolean |
isSupportsSelection() |
void |
paintBackground(org.xhtmlrenderer.render.RenderingContext c,
org.xhtmlrenderer.render.Box box) |
void |
paintReplacedElement(org.xhtmlrenderer.render.RenderingContext c,
org.xhtmlrenderer.render.BlockBox box) |
void |
setClip(Shape s) |
void |
setColor(org.xhtmlrenderer.css.parser.FSColor color) |
void |
setFont(org.xhtmlrenderer.render.FSFont font) |
void |
setMetadata(String name,
String value)
Replaces all copies of the named metadata with a single value.
|
void |
setRenderingHint(RenderingHints.Key key,
Object value) |
void |
setRoot(org.xhtmlrenderer.render.Box root) |
void |
setSharedContext(org.xhtmlrenderer.layout.SharedContext sharedContext) |
void |
setStartPageNo(int startPageNo) |
void |
setStroke(Stroke s) |
void |
setWriter(com.lowagie.text.pdf.PdfWriter writer) |
void |
start(Document doc) |
void |
translate(double tx,
double ty) |
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, getFontSpecification, paintBackground, paintBorder, paintBorder, paintCollapsedBorder, setFontSpecificationpublic void setWriter(com.lowagie.text.pdf.PdfWriter writer)
public com.lowagie.text.pdf.PdfWriter getWriter()
public int getNextFormFieldIndex()
public void initializePage(com.lowagie.text.pdf.PdfContentByte currentPage,
float height)
public void finishPage()
public void paintReplacedElement(org.xhtmlrenderer.render.RenderingContext c,
org.xhtmlrenderer.render.BlockBox box)
paintReplacedElement in interface org.xhtmlrenderer.extend.OutputDevicepublic void paintBackground(org.xhtmlrenderer.render.RenderingContext c,
org.xhtmlrenderer.render.Box box)
paintBackground in interface org.xhtmlrenderer.extend.OutputDevicepaintBackground in class org.xhtmlrenderer.render.AbstractOutputDevicepublic com.lowagie.text.Rectangle createLocalTargetArea(org.xhtmlrenderer.render.RenderingContext c,
org.xhtmlrenderer.render.Box box)
public com.lowagie.text.Rectangle createTargetArea(org.xhtmlrenderer.render.RenderingContext c,
org.xhtmlrenderer.render.Box box)
public float getDeviceLength(float length)
public void drawBorderLine(Shape bounds, int side, int lineWidth, boolean solid)
drawBorderLine in interface org.xhtmlrenderer.extend.OutputDevicepublic void setColor(org.xhtmlrenderer.css.parser.FSColor color)
setColor in interface org.xhtmlrenderer.extend.OutputDevicepublic void draw(Shape s)
draw in interface org.xhtmlrenderer.extend.OutputDeviceprotected void drawLine(int x1,
int y1,
int x2,
int y2)
drawLine in class org.xhtmlrenderer.render.AbstractOutputDevicepublic void drawRect(int x,
int y,
int width,
int height)
drawRect in interface org.xhtmlrenderer.extend.OutputDevicepublic void drawOval(int x,
int y,
int width,
int height)
drawOval in interface org.xhtmlrenderer.extend.OutputDevicepublic void fill(Shape s)
fill in interface org.xhtmlrenderer.extend.OutputDevicepublic void fillRect(int x,
int y,
int width,
int height)
fillRect in interface org.xhtmlrenderer.extend.OutputDevicepublic void fillOval(int x,
int y,
int width,
int height)
fillOval in interface org.xhtmlrenderer.extend.OutputDevicepublic void translate(double tx,
double ty)
translate in interface org.xhtmlrenderer.extend.OutputDevicepublic Object getRenderingHint(RenderingHints.Key key)
getRenderingHint in interface org.xhtmlrenderer.extend.OutputDevicepublic void setRenderingHint(RenderingHints.Key key, Object value)
setRenderingHint in interface org.xhtmlrenderer.extend.OutputDevicepublic void setFont(org.xhtmlrenderer.render.FSFont font)
setFont in interface org.xhtmlrenderer.extend.OutputDevicepublic void drawString(String s, float x, float y, org.xhtmlrenderer.render.JustificationInfo info)
public AffineTransform getTransform()
public com.lowagie.text.pdf.PdfContentByte getCurrentPage()
public void setStroke(Stroke s)
setStroke in interface org.xhtmlrenderer.extend.OutputDevicepublic void clip(Shape s)
clip in interface org.xhtmlrenderer.extend.OutputDevicepublic Shape getClip()
getClip in interface org.xhtmlrenderer.extend.OutputDevicepublic void setClip(Shape s)
setClip in interface org.xhtmlrenderer.extend.OutputDevicepublic Stroke getStroke()
getStroke in interface org.xhtmlrenderer.extend.OutputDevicepublic void drawImage(org.xhtmlrenderer.extend.FSImage fsImage,
int x,
int y)
drawImage in interface org.xhtmlrenderer.extend.OutputDevicepublic com.lowagie.text.pdf.PdfReader getReader(URI uri) throws IOException
IOExceptionpublic float getDotsPerPoint()
public void start(Document doc)
public void finish(org.xhtmlrenderer.render.RenderingContext c,
org.xhtmlrenderer.render.Box root)
public void addMetadata(String name, String value)
name - the name of the metadata element to add.public String getMetadataByName(String name)
name - the metadata element name to locate.public ArrayList getMetadataListByName(String name)
name - the metadata element name to locate.public void setMetadata(String name, String value)
addMetadata to append additional values with
the same name.name - the metadata element name to locate.public org.xhtmlrenderer.layout.SharedContext getSharedContext()
public void setSharedContext(org.xhtmlrenderer.layout.SharedContext sharedContext)
public void setRoot(org.xhtmlrenderer.render.Box root)
public int getStartPageNo()
public void setStartPageNo(int startPageNo)
public void drawSelection(org.xhtmlrenderer.render.RenderingContext c,
org.xhtmlrenderer.render.InlineText inlineText)
drawSelection in interface org.xhtmlrenderer.extend.OutputDevicepublic boolean isSupportsSelection()
isSupportsSelection in interface org.xhtmlrenderer.extend.OutputDevicepublic boolean isSupportsCMYKColors()
isSupportsCMYKColors in interface org.xhtmlrenderer.extend.OutputDeviceCopyright © 2021. All rights reserved.