public class ITextRenderer extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DOTS_PER_PIXEL |
static float |
DEFAULT_DOTS_PER_POINT |
| Constructor and Description |
|---|
ITextRenderer() |
ITextRenderer(float dotsPerPoint,
int dotsPerPixel) |
ITextRenderer(float dotsPerPoint,
int dotsPerPixel,
ITextOutputDevice outputDevice) |
ITextRenderer(float dotsPerPoint,
int dotsPerPixel,
ITextOutputDevice outputDevice,
ITextUserAgent userAgent) |
| Modifier and Type | Method and Description |
|---|---|
void |
createPDF(OutputStream os) |
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) |
List |
findPagePositionsByID(Pattern pattern) |
void |
finishPDF() |
Document |
getDocument() |
float |
getDotsPerPoint() |
ITextFontResolver |
getFontResolver() |
PDFCreationListener |
getListener() |
ITextOutputDevice |
getOutputDevice() |
PDFEncryption |
getPDFEncryption() |
char |
getPDFVersion() |
int |
getPDFXConformance() |
org.xhtmlrenderer.render.BlockBox |
getRootBox() |
org.xhtmlrenderer.layout.SharedContext |
getSharedContext() |
com.lowagie.text.pdf.PdfWriter |
getWriter() |
boolean |
isTimeouted() |
void |
layout() |
void |
setDocument(Document doc,
String url) |
void |
setDocument(Document doc,
String url,
org.xhtmlrenderer.extend.NamespaceHandler nsh) |
void |
setDocument(File file) |
void |
setDocument(String uri) |
void |
setDocumentFromString(String content) |
void |
setDocumentFromString(String content,
String baseUrl) |
void |
setListener(PDFCreationListener listener) |
void |
setPDFEncryption(PDFEncryption pdfEncryption) |
void |
setPDFVersion(char _v) |
void |
setPDFXConformance(int pdfXConformance) |
void |
setTimeouted(boolean timeouted) |
void |
writeNextDocument() |
void |
writeNextDocument(int initialPageNo) |
public static final float DEFAULT_DOTS_PER_POINT
public static final int DEFAULT_DOTS_PER_PIXEL
public ITextRenderer()
public ITextRenderer(float dotsPerPoint,
int dotsPerPixel)
public ITextRenderer(float dotsPerPoint,
int dotsPerPixel,
ITextOutputDevice outputDevice)
public ITextRenderer(float dotsPerPoint,
int dotsPerPixel,
ITextOutputDevice outputDevice,
ITextUserAgent userAgent)
public Document getDocument()
public ITextFontResolver getFontResolver()
public void setDocument(String uri)
public void setDocument(File file) throws IOException
IOExceptionpublic void setDocumentFromString(String content)
public void setDocument(Document doc, String url, org.xhtmlrenderer.extend.NamespaceHandler nsh)
public PDFEncryption getPDFEncryption()
public void setPDFEncryption(PDFEncryption pdfEncryption)
public void setPDFVersion(char _v)
public char getPDFVersion()
public void setPDFXConformance(int pdfXConformance)
public int getPDFXConformance()
public void layout()
public void createPDF(OutputStream os) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentExceptionpublic void writeNextDocument()
throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentExceptionpublic void writeNextDocument(int initialPageNo)
throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentExceptionpublic void finishPDF()
public void createPDF(OutputStream os, boolean finish) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentExceptionpublic void createPDF(OutputStream os, boolean finish, int initialPageNo) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentExceptionpublic ITextOutputDevice getOutputDevice()
public org.xhtmlrenderer.layout.SharedContext getSharedContext()
public void exportText(Writer writer) throws IOException
IOExceptionpublic org.xhtmlrenderer.render.BlockBox getRootBox()
public float getDotsPerPoint()
public PDFCreationListener getListener()
public void setListener(PDFCreationListener listener)
public com.lowagie.text.pdf.PdfWriter getWriter()
public void setTimeouted(boolean timeouted)
public boolean isTimeouted()
Copyright © 2023. All rights reserved.