Package org.xhtmlrenderer.pdf
Class ITextRenderer
java.lang.Object
org.xhtmlrenderer.pdf.ITextRenderer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
createPDF
(OutputStream os, boolean finish) void
createPDF
(OutputStream os, boolean finish, int initialPageNo) NOTE: Caller is responsible for cleaning up the OutputStream if something goes wrong.void
exportText
(Writer writer) findPagePositionsByID
(Pattern pattern) void
float
char
com.lowagie.text.pdf.PdfWriter
void
layout()
void
setDocument
(File file) void
setDocument
(String uri) void
setDocument
(Document doc, String url) void
setDocument
(Document doc, String url, NamespaceHandler nsh) void
setDocumentFromString
(String content) void
setListener
(PDFCreationListener listener) void
setPDFEncryption
(PDFEncryption pdfEncryption) void
setPDFVersion
(char _v) void
void
writeNextDocument
(int initialPageNo)
-
Constructor Details
-
ITextRenderer
public ITextRenderer() -
ITextRenderer
public ITextRenderer(float dotsPerPoint, int dotsPerPixel)
-
-
Method Details
-
getFontResolver
-
setDocument
-
setDocument
-
setDocument
- Throws:
IOException
-
setDocumentFromString
-
setDocument
-
getPDFEncryption
-
setPDFEncryption
-
setPDFVersion
public void setPDFVersion(char _v) -
getPDFVersion
public char getPDFVersion() -
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) throws com.lowagie.text.DocumentException - Throws:
com.lowagie.text.DocumentException
-
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
-
getDotsPerPoint
public float getDotsPerPoint() -
findPagePositionsByID
-
getListener
-
setListener
-
getWriter
public com.lowagie.text.pdf.PdfWriter getWriter()
-