Package org.xhtmlrenderer.pdf
Class ITextRenderer
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(org.xhtmlrenderer.extend.FontResolver fontResolver) -
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.voidexportText(Writer writer) findPagePositionsByID(Pattern pattern) voidfloatcharintorg.xhtmlrenderer.render.BlockBoxorg.xhtmlrenderer.layout.SharedContextcom.lowagie.text.pdf.PdfWriterbooleanvoidlayout()voidsetDocument(File file) voidsetDocument(String uri) voidsetDocument(Document doc, String url) voidsetDocument(Document doc, String url, org.xhtmlrenderer.extend.NamespaceHandler nsh) voidsetDocumentFromString(String content) 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
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
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)
-
-
Method Details
-
getDocument
-
getFontResolver
-
setDocument
-
setDocument
-
setDocument
- Throws:
IOException
-
setDocumentFromString
-
setDocumentFromString
-
setDocument
-
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
-
writeNextDocument
public void writeNextDocument() throws com.lowagie.text.DocumentException- Throws:
com.lowagie.text.DocumentException
-
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()
-