Package | Description |
---|---|
com.itextpdf.html2pdf | |
com.itextpdf.html2pdf.attach | |
com.itextpdf.html2pdf.attach.impl |
Modifier and Type | Method and Description |
---|---|
ConverterProperties |
ConverterProperties.setBaseUri(String baseUri)
Sets the base URI.
|
ConverterProperties |
ConverterProperties.setCharset(String charset)
Sets the encoding charset.
|
ConverterProperties |
ConverterProperties.setCreateAcroForm(boolean createAcroForm)
Sets the createAcroForm value.
|
ConverterProperties |
ConverterProperties.setCssApplierFactory(ICssApplierFactory cssApplierFactory)
Sets the CSS applier factory.
|
ConverterProperties |
ConverterProperties.setEventCountingMetaInfo(com.itextpdf.kernel.counter.event.IMetaInfo metaInfo)
Sets html meta info.
|
ConverterProperties |
ConverterProperties.setFontProvider(com.itextpdf.layout.font.FontProvider fontProvider)
Sets the font provider.
|
ConverterProperties |
ConverterProperties.setImmediateFlush(boolean immediateFlush)
Set the immediate flush property of the layout document.
|
ConverterProperties |
ConverterProperties.setLimitOfLayouts(int limitOfLayouts)
Sets maximum number of layouts.
|
ConverterProperties |
ConverterProperties.setMediaDeviceDescription(com.itextpdf.styledxmlparser.css.media.MediaDeviceDescription mediaDeviceDescription)
Sets the media device description.
|
ConverterProperties |
ConverterProperties.setOutlineHandler(OutlineHandler outlineHandler)
Sets the outline handler.
|
ConverterProperties |
ConverterProperties.setResourceRetriever(com.itextpdf.styledxmlparser.resolver.resource.IResourceRetriever resourceRetriever)
Sets the resource retriever.
|
ConverterProperties |
ConverterProperties.setTagWorkerFactory(ITagWorkerFactory tagWorkerFactory)
Sets the TagWorkerFactory.
|
Modifier and Type | Method and Description |
---|---|
static com.itextpdf.layout.Document |
HtmlConverter.convertToDocument(InputStream htmlStream, com.itextpdf.kernel.pdf.PdfDocument pdfDocument, ConverterProperties converterProperties)
Converts HTML obtained from an InputStream to objects that will be added to a PdfDocument , using specific ConverterProperties , returning a Document instance.
|
static com.itextpdf.layout.Document |
HtmlConverter.convertToDocument(InputStream htmlStream, com.itextpdf.kernel.pdf.PdfWriter pdfWriter, ConverterProperties converterProperties)
Converts HTML obtained from an InputStream to content that will be written to a PdfWriter , using specific ConverterProperties , returning a Document instance.
|
static com.itextpdf.layout.Document |
HtmlConverter.convertToDocument(String html, com.itextpdf.kernel.pdf.PdfDocument pdfDocument, ConverterProperties converterProperties)
Converts HTML obtained from an InputStream to objects that will be added to a PdfDocument , using specific ConverterProperties , returning a Document instance.
|
static com.itextpdf.layout.Document |
HtmlConverter.convertToDocument(String html, com.itextpdf.kernel.pdf.PdfWriter pdfWriter, ConverterProperties converterProperties)
Converts HTML obtained from an InputStream to content that will be written to a PdfWriter , using specific ConverterProperties , returning a Document instance.
|
static List |
HtmlConverter.convertToElements(InputStream htmlStream, ConverterProperties converterProperties)
Converts HTML obtained from an InputStream to a List of iText objects (IElement instances), using specific ConverterProperties .
|
static List |
HtmlConverter.convertToElements(String html, ConverterProperties converterProperties)
Converts a String containing HTML to a List of iText objects (IElement instances), using specific ConverterProperties .
|
static void |
HtmlConverter.convertToPdf(File htmlFile, File pdfFile, ConverterProperties converterProperties)
|
static void |
HtmlConverter.convertToPdf(InputStream htmlStream, OutputStream pdfStream, ConverterProperties converterProperties)
Converts HTML obtained from an InputStream to a PDF written to an OutputStream .
|
static void |
HtmlConverter.convertToPdf(InputStream htmlStream, com.itextpdf.kernel.pdf.PdfDocument pdfDocument, ConverterProperties converterProperties)
Converts HTML obtained from an InputStream to objects that will be added to a PdfDocument , using specific ConverterProperties .
|
static void |
HtmlConverter.convertToPdf(InputStream htmlStream, com.itextpdf.kernel.pdf.PdfWriter pdfWriter, ConverterProperties converterProperties)
Converts HTML obtained from an InputStream to content that will be written to a PdfWriter , using specific ConverterProperties .
|
static void |
HtmlConverter.convertToPdf(String html, OutputStream pdfStream, ConverterProperties converterProperties)
Converts a String containing HTML to an OutputStream containing PDF, using specific ConverterProperties .
|
static void |
HtmlConverter.convertToPdf(String html, com.itextpdf.kernel.pdf.PdfDocument pdfDocument, ConverterProperties converterProperties)
Converts HTML obtained from an InputStream to objects that will be added to a PdfDocument , using specific ConverterProperties .
|
static void |
HtmlConverter.convertToPdf(String html, com.itextpdf.kernel.pdf.PdfWriter pdfWriter, ConverterProperties converterProperties)
Converts a String containing HTML to PDF by writing PDF content to a PdfWriter instance, using specific ConverterProperties .
|
Constructor and Description |
---|
ConverterProperties(ConverterProperties other)
Instantiates a new ConverterProperties instance based on another ConverterProperties instance (copy constructor).
|
Modifier and Type | Method and Description |
---|---|
static List |
Attacher.attach(com.itextpdf.styledxmlparser.node.IDocumentNode documentNode, ConverterProperties converterProperties)
Attaches the HTML content stored in a document node to a list of IElement objects.
|
static com.itextpdf.layout.Document |
Attacher.attach(com.itextpdf.styledxmlparser.node.IDocumentNode documentNode, com.itextpdf.kernel.pdf.PdfDocument pdfDocument, ConverterProperties converterProperties)
Attaches the HTML content stored in a document node to an existing PDF document, using specific converter properties, and returning an iText Document object.
|
Constructor and Description |
---|
ProcessorContext(ConverterProperties converterProperties)
Instantiates a new ProcessorContext instance.
|
Constructor and Description |
---|
DefaultHtmlProcessor(ConverterProperties converterProperties)
Instantiates a new default html processor.
|
Copyright © 1998–2021 iText Group NV. All rights reserved.