public class ITextRenderer
extends java.lang.Object
Constructor and Description |
---|
ITextRenderer() |
ITextRenderer(float dotsPerPoint,
int dotsPerPixel) |
Modifier and Type | Method and Description |
---|---|
void |
createPDF(java.io.OutputStream os) |
void |
createPDF(java.io.OutputStream os,
boolean finish) |
void |
createPDF(java.io.OutputStream os,
boolean finish,
int initialPageNo)
NOTE: Caller is responsible for cleaning up the OutputStream if something
goes wrong.
|
void |
exportText(java.io.Writer writer) |
java.util.List |
findPagePositionsByID(java.util.regex.Pattern pattern) |
void |
finishPDF() |
float |
getDotsPerPoint() |
ITextFontResolver |
getFontResolver() |
PDFCreationListener |
getListener() |
ITextOutputDevice |
getOutputDevice() |
PDFEncryption |
getPDFEncryption() |
char |
getPDFVersion() |
BlockBox |
getRootBox() |
SharedContext |
getSharedContext() |
com.lowagie.text.pdf.PdfWriter |
getWriter() |
void |
layout() |
void |
setDocument(org.w3c.dom.Document doc,
java.lang.String url) |
void |
setDocument(org.w3c.dom.Document doc,
java.lang.String url,
NamespaceHandler nsh) |
void |
setDocument(java.io.File file) |
void |
setDocument(java.lang.String uri) |
void |
setDocumentFromString(java.lang.String content) |
void |
setListener(PDFCreationListener listener) |
void |
setPDFEncryption(PDFEncryption pdfEncryption) |
void |
setPDFVersion(char _v) |
void |
writeNextDocument() |
void |
writeNextDocument(int initialPageNo) |
public ITextRenderer()
public ITextRenderer(float dotsPerPoint, int dotsPerPixel)
public ITextFontResolver getFontResolver()
public void setDocument(java.lang.String uri)
public void setDocument(org.w3c.dom.Document doc, java.lang.String url)
public void setDocument(java.io.File file) throws java.io.IOException
java.io.IOException
public void setDocumentFromString(java.lang.String content)
public void setDocument(org.w3c.dom.Document doc, java.lang.String url, NamespaceHandler nsh)
public PDFEncryption getPDFEncryption()
public void setPDFEncryption(PDFEncryption pdfEncryption)
public void setPDFVersion(char _v)
public char getPDFVersion()
public void layout()
public void createPDF(java.io.OutputStream os) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
public void writeNextDocument() throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
public void writeNextDocument(int initialPageNo) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
public void finishPDF()
public void createPDF(java.io.OutputStream os, boolean finish) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
public void createPDF(java.io.OutputStream os, boolean finish, int initialPageNo) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
public ITextOutputDevice getOutputDevice()
public SharedContext getSharedContext()
public void exportText(java.io.Writer writer) throws java.io.IOException
java.io.IOException
public BlockBox getRootBox()
public float getDotsPerPoint()
public java.util.List findPagePositionsByID(java.util.regex.Pattern pattern)
public PDFCreationListener getListener()
public void setListener(PDFCreationListener listener)
public com.lowagie.text.pdf.PdfWriter getWriter()