java.lang.Object
org.xhtmlrenderer.pdf.ITextRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final float -
Constructor Summary
ConstructorsConstructorDescriptionITextRenderer(float dotsPerPoint, int dotsPerPixel) ITextRenderer(float dotsPerPoint, int dotsPerPixel, org.xhtmlrenderer.extend.FontResolver fontResolver) ITextRenderer(float dotsPerPoint, int dotsPerPixel, ITextOutputDevice outputDevice) ITextRenderer(float dotsPerPoint, int dotsPerPixel, ITextOutputDevice outputDevice, org.xhtmlrenderer.extend.FontResolver fontResolver) ITextRenderer(float dotsPerPoint, int dotsPerPixel, ITextOutputDevice outputDevice, ITextUserAgent userAgent) ITextRenderer(float dotsPerPoint, int dotsPerPixel, ITextOutputDevice outputDevice, ITextUserAgent userAgent, org.xhtmlrenderer.extend.FontResolver fontResolver) ITextRenderer(float dotsPerPoint, int dotsPerPixel, ITextOutputDevice outputDevice, ITextUserAgent userAgent, org.xhtmlrenderer.extend.FontResolver fontResolver, org.xhtmlrenderer.extend.ReplacedElementFactory replacedElementFactory, org.xhtmlrenderer.extend.TextRenderer textRenderer) ITextRenderer(File file) ITextRenderer(org.xhtmlrenderer.extend.FontResolver fontResolver) ITextRenderer(ITextOutputDevice outputDevice, ITextUserAgent userAgent) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreatePDF(OutputStream os, boolean finish) voidcreatePDF(OutputStream os, boolean finish, int initialPageNo) NOTE: Caller is responsible for cleaning up the OutputStream if something goes wrong.byte[]voidcreatePDF(Document source, OutputStream os) voidexportText(Writer writer) findPagePositionsByID(Pattern pattern) voidstatic ITextRendererfromString(String content) static ITextRendererfromString(String content, String baseUrl) static ITextRendererfloatcharintorg.xhtmlrenderer.render.BlockBoxorg.xhtmlrenderer.layout.SharedContextcom.lowagie.text.pdf.PdfWriterbooleanvoidlayout()voidsetDocument(Document doc) voidsetDocument(Document doc, String url) final voidsetDocumentFromString(String content) final voidsetDocumentFromString(String content, String baseUrl) voidsetListener(PDFCreationListener listener) voidsetPDFEncryption(PDFEncryption pdfEncryption) voidsetPDFVersion(char _v) voidsetPDFXConformance(int pdfXConformance) voidsetTimeouted(boolean timeouted) voidvoidwriteNextDocument(int initialPageNo)
-
Field Details
-
DEFAULT_DOTS_PER_POINT
public static final float DEFAULT_DOTS_PER_POINT- See Also:
-
DEFAULT_DOTS_PER_PIXEL
public static final int DEFAULT_DOTS_PER_PIXEL- See Also:
-
-
Constructor Details
-
ITextRenderer
- Throws:
IOException
-
ITextRenderer
public ITextRenderer() -
ITextRenderer
public ITextRenderer(org.xhtmlrenderer.extend.FontResolver fontResolver) -
ITextRenderer
public ITextRenderer(float dotsPerPoint, int dotsPerPixel) -
ITextRenderer
public ITextRenderer(float dotsPerPoint, int dotsPerPixel, org.xhtmlrenderer.extend.FontResolver fontResolver) -
ITextRenderer
-
ITextRenderer
-
ITextRenderer
public ITextRenderer(float dotsPerPoint, int dotsPerPixel, ITextOutputDevice outputDevice, org.xhtmlrenderer.extend.FontResolver fontResolver) -
ITextRenderer
public ITextRenderer(float dotsPerPoint, int dotsPerPixel, ITextOutputDevice outputDevice, ITextUserAgent userAgent) -
ITextRenderer
public ITextRenderer(float dotsPerPoint, int dotsPerPixel, ITextOutputDevice outputDevice, ITextUserAgent userAgent, org.xhtmlrenderer.extend.FontResolver fontResolver) -
ITextRenderer
public ITextRenderer(float dotsPerPoint, int dotsPerPixel, ITextOutputDevice outputDevice, ITextUserAgent userAgent, org.xhtmlrenderer.extend.FontResolver fontResolver, org.xhtmlrenderer.extend.ReplacedElementFactory replacedElementFactory, org.xhtmlrenderer.extend.TextRenderer textRenderer)
-
-
Method Details
-
getDocument
-
getFontResolver
-
fromUrl
-
setDocument
-
setDocument
-
fromString
-
fromString
-
setDocumentFromString
-
setDocumentFromString
-
getPDFEncryption
-
setPDFEncryption
-
setPDFVersion
public void setPDFVersion(char _v) -
getPDFVersion
public char getPDFVersion() -
setPDFXConformance
public void setPDFXConformance(int pdfXConformance) -
getPDFXConformance
public int getPDFXConformance() -
layout
public void layout() -
createPDF
- Throws:
com.lowagie.text.DocumentException
-
createPDF
- Throws:
com.lowagie.text.DocumentException
-
createPDF
- Throws:
com.lowagie.text.DocumentException
-
writeNextDocument
public void writeNextDocument() -
writeNextDocument
public void writeNextDocument(int initialPageNo) -
finishPDF
public void finishPDF() -
createPDF
- Throws:
com.lowagie.text.DocumentException
-
createPDF
public void createPDF(OutputStream os, boolean finish, int initialPageNo) throws com.lowagie.text.DocumentException NOTE: Caller is responsible for cleaning up the OutputStream if something goes wrong.- Throws:
com.lowagie.text.DocumentException
-
getOutputDevice
-
exportText
- Throws:
IOException
-
getRootBox
public org.xhtmlrenderer.render.BlockBox getRootBox() -
getDotsPerPoint
public float getDotsPerPoint() -
findPagePositionsByID
-
getListener
-
setListener
-
getWriter
public com.lowagie.text.pdf.PdfWriter getWriter() -
setTimeouted
public void setTimeouted(boolean timeouted) -
isTimeouted
public boolean isTimeouted()
-