Package org.xhtmlrenderer.pdf
Class ITextRenderer
java.lang.Object
org.xhtmlrenderer.pdf.ITextRenderer
-
Constructor Summary
Constructors -
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) voidfloatcharcom.itextpdf.text.pdf.PdfWriterbooleanvoidlayout()voidsetDocument(byte[] bytes) voidsetDocument(File file) voidsetDocument(String uri) voidsetDocument(Document doc, String url) voidsetDocument(Document doc, String url, NamespaceHandler nsh) voidsetDocumentFromString(String content) voidsetDocumentFromString(String content, String baseUrl) voidsetListener(PDFCreationListener listener) voidsetPDFEncryption(PDFEncryption pdfEncryption) voidsetPDFVersion(char _v) booleansetScaleToFit(boolean scaleToFit) voidvoidwriteNextDocument(int initialPageNo)
-
Constructor Details
-
ITextRenderer
public ITextRenderer() -
ITextRenderer
public ITextRenderer(float dotsPerPoint, int dotsPerPixel)
-
-
Method Details
-
getDocument
-
getFontResolver
-
setDocument
-
setDocument
-
setDocument
- Throws:
IOException
-
setDocument
public void setDocument(byte[] bytes) -
setDocumentFromString
-
setDocumentFromString
-
setDocument
-
getPDFEncryption
-
setPDFEncryption
-
setPDFVersion
public void setPDFVersion(char _v) -
getPDFVersion
public char getPDFVersion() -
layout
public void layout() -
createPDF
- Throws:
com.itextpdf.text.DocumentExceptionIOException
-
writeNextDocument
- Throws:
com.itextpdf.text.DocumentExceptionIOException
-
writeNextDocument
- Throws:
IOException
-
finishPDF
public void finishPDF() -
createPDF
public void createPDF(OutputStream os, boolean finish) throws com.itextpdf.text.DocumentException, IOException - Throws:
com.itextpdf.text.DocumentExceptionIOException
-
createPDF
public void createPDF(OutputStream os, boolean finish, int initialPageNo) throws com.itextpdf.text.DocumentException, IOException NOTE: Caller is responsible for cleaning up the OutputStream if something goes wrong.- Throws:
com.itextpdf.text.DocumentExceptionIOException
-
getOutputDevice
-
exportText
- Throws:
IOException
-
getRootBox
-
getDotsPerPoint
public float getDotsPerPoint() -
findPagePositionsByID
-
getListener
-
setListener
-
getWriter
public com.itextpdf.text.pdf.PdfWriter getWriter() -
isScaleToFit
public boolean isScaleToFit() -
setScaleToFit
public boolean setScaleToFit(boolean scaleToFit)
-