pdfHTML 2.1.6 API
|
The HtmlConverter is the class you will use most when converting HTML to PDF. More...
Static Public Member Functions |
|
static void | ConvertToPdf (String html, Stream pdfStream) |
Converts a System.String containing HTML to an System.IO.Stream containing PDF. More... |
|
static void | ConvertToPdf (String html, Stream pdfStream, ConverterProperties converterProperties) |
Converts a System.String containing HTML to an System.IO.Stream containing PDF, using specific ConverterProperties More... |
|
static void | ConvertToPdf (String html, PdfWriter pdfWriter) |
Converts a System.String containing HTML to PDF by writing PDF content to a iText.Kernel.Pdf.PdfWriter instance. More... |
|
static void | ConvertToPdf (String html, PdfWriter pdfWriter, ConverterProperties converterProperties) |
Converts a System.String containing HTML to PDF by writing PDF content to a iText.Kernel.Pdf.PdfWriter instance, using specific ConverterProperties More... |
|
static void | ConvertToPdf (String html, PdfDocument pdfDocument, ConverterProperties converterProperties) |
Converts HTML obtained from an System.IO.Stream to objects that will be added to a iText.Kernel.Pdf.PdfDocument , using specific ConverterProperties More... |
|
static void | ConvertToPdf (FileInfo htmlFile, FileInfo pdfFile) |
Converts HTML stored in a System.IO.FileInfo to a PDF System.IO.FileInfo More... |
|
static void | ConvertToPdf (FileInfo htmlFile, FileInfo pdfFile, ConverterProperties converterProperties) |
Converts HTML stored in a System.IO.FileInfo to a PDF System.IO.FileInfo , using specific ConverterProperties More... |
|
static void | ConvertToPdf (Stream htmlStream, Stream pdfStream) |
Converts HTML obtained from an System.IO.Stream to a PDF written to an System.IO.Stream More... |
|
static void | ConvertToPdf (Stream htmlStream, Stream pdfStream, ConverterProperties converterProperties) |
Converts HTML obtained from an System.IO.Stream to a PDF written to an System.IO.Stream More... |
|
static void | ConvertToPdf (Stream htmlStream, PdfDocument pdfDocument) |
Converts HTML obtained from an System.IO.Stream to objects that will be added to a iText.Kernel.Pdf.PdfDocument More... |
|
static void | ConvertToPdf (Stream htmlStream, PdfWriter pdfWriter) |
Converts HTML obtained from an System.IO.Stream to content that will be written to a iText.Kernel.Pdf.PdfWriter More... |
|
static void | ConvertToPdf (Stream htmlStream, PdfWriter pdfWriter, ConverterProperties converterProperties) |
Converts HTML obtained from an System.IO.Stream to content that will be written to a iText.Kernel.Pdf.PdfWriter , using specific ConverterProperties More... |
|
static void | ConvertToPdf (Stream htmlStream, PdfDocument pdfDocument, ConverterProperties converterProperties) |
Converts HTML obtained from an System.IO.Stream to objects that will be added to a iText.Kernel.Pdf.PdfDocument , using specific ConverterProperties More... |
|
static Document | ConvertToDocument (String html, PdfWriter pdfWriter) |
Converts HTML obtained from an System.IO.Stream to content that will be written to a iText.Kernel.Pdf.PdfWriter , returning a iText.Layout.Document instance. More... |
|
static Document | ConvertToDocument (Stream htmlStream, PdfWriter pdfWriter) |
Converts HTML obtained from an System.IO.Stream to content that will be written to a iText.Kernel.Pdf.PdfWriter , returning a iText.Layout.Document instance. More... |
|
static Document | ConvertToDocument (String html, PdfWriter pdfWriter, ConverterProperties converterProperties) |
Converts HTML obtained from an System.IO.Stream to content that will be written to a iText.Kernel.Pdf.PdfWriter , using specific ConverterProperties , returning a iText.Layout.Document instance. More... |
|
static Document | ConvertToDocument (Stream htmlStream, PdfWriter pdfWriter, ConverterProperties converterProperties) |
Converts HTML obtained from an System.IO.Stream to content that will be written to a iText.Kernel.Pdf.PdfWriter , using specific ConverterProperties , returning a iText.Layout.Document instance. More... |
|
static Document | ConvertToDocument (String html, PdfDocument pdfDocument, ConverterProperties converterProperties) |
Converts HTML obtained from an System.IO.Stream to objects that will be added to a iText.Kernel.Pdf.PdfDocument , using specific ConverterProperties , returning a iText.Layout.Document instance. More... |
|
static Document | ConvertToDocument (Stream htmlStream, PdfDocument pdfDocument, ConverterProperties converterProperties) |
Converts HTML obtained from an System.IO.Stream to objects that will be added to a iText.Kernel.Pdf.PdfDocument , using specific ConverterProperties , returning a iText.Layout.Document instance. More... |
|
static IList< IElement > | ConvertToElements (String html) |
Converts a System.String containing HTML to a System.Collections.IList |
|
static IList< IElement > | ConvertToElements (Stream htmlStream) |
Converts HTML obtained from an System.IO.Stream to a System.Collections.IList |
|
static IList< IElement > | ConvertToElements (String html, ConverterProperties converterProperties) |
Converts a System.String containing HTML to a System.Collections.IList |
|
static IList< IElement > | ConvertToElements (Stream htmlStream, ConverterProperties converterProperties) |
Converts HTML obtained from an System.IO.Stream to a System.Collections.IList |
|
The HtmlConverter is the class you will use most when converting HTML to PDF.
The HtmlConverter is the class you will use most when converting HTML to PDF. It contains a series of static methods that accept HTML as a System.String , System.IO.FileInfo , or System.IO.Stream , and convert it to PDF in the form of an System.IO.Stream , System.IO.FileInfo , or a series of iText elements. It's also possible to write to a iText.Kernel.Pdf.PdfWriter or iText.Kernel.Pdf.PdfDocument instance.
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to objects that will be added to a iText.Kernel.Pdf.PdfDocument , using specific ConverterProperties , returning a iText.Layout.Document instance.
htmlStream | the System.IO.Stream with the source HTML |
pdfDocument | the iText.Kernel.Pdf.PdfDocument instance |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to content that will be written to a iText.Kernel.Pdf.PdfWriter , returning a iText.Layout.Document instance.
htmlStream | the System.IO.Stream with the source HTML |
pdfWriter | the iText.Kernel.Pdf.PdfWriter containing the resulting PDF |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to content that will be written to a iText.Kernel.Pdf.PdfWriter , using specific ConverterProperties , returning a iText.Layout.Document instance.
htmlStream | the html stream |
pdfWriter | the pdf writer |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to objects that will be added to a iText.Kernel.Pdf.PdfDocument , using specific ConverterProperties , returning a iText.Layout.Document instance.
html | the html in the form of a System.String |
pdfDocument | the iText.Kernel.Pdf.PdfDocument instance |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to content that will be written to a iText.Kernel.Pdf.PdfWriter , returning a iText.Layout.Document instance.
html | the html in the form of a System.String |
pdfWriter | the iText.Kernel.Pdf.PdfWriter containing the resulting PDF |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to content that will be written to a iText.Kernel.Pdf.PdfWriter , using specific ConverterProperties , returning a iText.Layout.Document instance.
html | the html in the form of a System.String |
pdfWriter | the pdf writer |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to a System.Collections.IList
htmlStream | the System.IO.Stream with the source HTML |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to a System.Collections.IList
htmlStream | the System.IO.Stream with the source HTML |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts a System.String containing HTML to a System.Collections.IList
html | the html in the form of a System.String |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts a System.String containing HTML to a System.Collections.IList
html | the html in the form of a System.String |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML stored in a System.IO.FileInfo to a PDF System.IO.FileInfo
htmlFile | the System.IO.FileInfo containing the source HTML |
pdfFile | the System.IO.FileInfo containing the resulting PDF |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML stored in a System.IO.FileInfo to a PDF System.IO.FileInfo , using specific ConverterProperties
htmlFile | the System.IO.FileInfo containing the source HTML |
pdfFile | the System.IO.FileInfo containing the resulting PDF |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to objects that will be added to a iText.Kernel.Pdf.PdfDocument
htmlStream | the System.IO.Stream with the source HTML |
pdfDocument | the iText.Kernel.Pdf.PdfDocument instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to objects that will be added to a iText.Kernel.Pdf.PdfDocument , using specific ConverterProperties
htmlStream | the System.IO.Stream with the source HTML |
pdfDocument | the iText.Kernel.Pdf.PdfDocument instance |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to content that will be written to a iText.Kernel.Pdf.PdfWriter
htmlStream | the System.IO.Stream with the source HTML |
pdfWriter | the iText.Kernel.Pdf.PdfWriter containing the resulting PDF |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to content that will be written to a iText.Kernel.Pdf.PdfWriter , using specific ConverterProperties
htmlStream | the System.IO.Stream with the source HTML |
pdfWriter | the iText.Kernel.Pdf.PdfWriter containing the resulting PDF |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to a PDF written to an System.IO.Stream
htmlStream | the System.IO.Stream with the source HTML |
pdfStream | the System.IO.Stream for the resulting PDF |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to a PDF written to an System.IO.Stream
htmlStream | the System.IO.Stream with the source HTML |
pdfStream | the System.IO.Stream for the resulting PDF |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts HTML obtained from an System.IO.Stream to objects that will be added to a iText.Kernel.Pdf.PdfDocument , using specific ConverterProperties
html | the html in the form of a System.String |
pdfDocument | the iText.Kernel.Pdf.PdfDocument instance |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts a System.String containing HTML to PDF by writing PDF content to a iText.Kernel.Pdf.PdfWriter instance.
html | the html in the form of a System.String |
pdfWriter | the iText.Kernel.Pdf.PdfWriter instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts a System.String containing HTML to PDF by writing PDF content to a iText.Kernel.Pdf.PdfWriter instance, using specific ConverterProperties
html | the html in the form of a System.String |
pdfWriter | the iText.Kernel.Pdf.PdfWriter instance |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts a System.String containing HTML to an System.IO.Stream containing PDF.
html | the html in the form of a System.String |
pdfStream | the PDF as an System.IO.Stream |
System.IO.IOException | Signals that an I/O exception has occurred. |
|
inlinestatic |
Converts a System.String containing HTML to an System.IO.Stream containing PDF, using specific ConverterProperties
html | the html in the form of a System.String |
pdfStream | the PDF as an System.IO.Stream |
converterProperties | a ConverterProperties instance |
System.IO.IOException | Signals that an I/O exception has occurred. |