PdfConverter Methods |
The PdfConverter type exposes the following members.
Name | Description | |
---|---|---|
GetPageCount(Stream) |
A fast method to obtain the page count of a specified PDF document.
| |
GetPageCount(String) |
A fast method to obtain the page count of a specified PDF document.
| |
GetPdfBytesFromHtmlFile(String) |
Converts the specified HTML file to PDF and returns the rendered PDF document as an array of bytes.
| |
GetPdfBytesFromHtmlFile(String, String) |
Converts the specified HTML file to PDF and returns the rendered PDF document as an array of bytes.
| |
GetPdfBytesFromHtmlStream(Stream, Encoding) |
Converts the HTML string read from the specified HTML stream to PDF and returns the rendered PDF document
as an array of bytes.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStream method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfBytesFromHtmlStream(Stream, Encoding, String) |
Converts the HTML string read from the specified HTML stream to PDF and returns the rendered PDF document
as an array of bytes.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and
CSS files appearing in the htmlStream parameter.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStream method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfBytesFromHtmlStream(Stream, Encoding, String, String) |
Converts the HTML string read from the specified HTML stream to PDF and returns the rendered PDF document
as an array of bytes.
| |
GetPdfBytesFromHtmlStreamWithTempFile(Stream, Encoding) |
Converts the HTML string read from the specified HTML stream to PDF and returns the rendered PDF document as an array of bytes.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStreamWithTempFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfBytesFromHtmlStreamWithTempFile(Stream, Encoding, String) |
Converts the HTML string read from the specified HTML stream to PDF and returns the rendered PDF document as an array of bytes.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and
CSS files appearing in the htmlStream parameter.
/// Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStream method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfBytesFromHtmlStreamWithTempFile(Stream, Encoding, String, String) |
Converts the HTML string read from the specified HTML stream to PDF and returns the rendered PDF document as an array of bytes.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
| |
GetPdfBytesFromHtmlString(String) |
Converts the specified HTML string to PDF and returns the rendered PDF document as an array of bytes.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the internal links,
the internal links might not be correctly converted.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlString method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfBytesFromHtmlString(String, String) |
Converts the specified HTML string to PDF and returns the rendered PDF document as an array of bytes.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images
and CSS files appearing in the HTML string.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlString method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfBytesFromHtmlString(String, String, String) |
Converts the specified HTML string to PDF and returns the rendered PDF document as an array of bytes.
| |
GetPdfBytesFromHtmlStringWithTempFile(String) |
Converts the specified HTML string to PDF and returns the rendered PDF document as an array of bytes.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStringWithTempFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfBytesFromHtmlStringWithTempFile(String, String) |
Converts the specified HTML string to PDF and returns the rendered PDF document as an array of bytes.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images
and CSS files appearing in the HTML string.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStringWithTempFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfBytesFromHtmlStringWithTempFile(String, String, String) |
Converts the specified HTML string to PDF and returns the rendered PDF document as an array of bytes.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
| |
GetPdfBytesFromUrl(String) |
Converts the specified URL into a PDF document and returns the rendered PDF document as an array of bytes.
This method can be used to perform HTML to PDF conversion in internal memory.
| |
GetPdfBytesFromUrl(String, String) |
Converts the specified URL into a PDF document and returns the rendered PDF document as an array of bytes.
This method can be used to perform HTML to PDF conversion in internal memory.
| |
GetPdfDocumentObjectFromHtmlFile(String) |
Gets a Document object representing the result of conversion of the specified HTML file to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
| |
GetPdfDocumentObjectFromHtmlFile(String, String) |
Gets a Document object representing the result of conversion of the specified HTML file to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
| |
GetPdfDocumentObjectFromHtmlStream(Stream, Encoding) |
Gets a Document object representing the result of conversion of the HTML string read from the specified HTML stream to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStream method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfDocumentObjectFromHtmlStream(Stream, Encoding, String) |
Gets a Document object representing the result of conversion of the HTML string read from the specified HTML stream to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and
CSS files appearing in the htmlStream parameter.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStream method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfDocumentObjectFromHtmlStream(Stream, Encoding, String, String) |
Gets a Document object representing the result of conversion of the HTML string read from the specified HTML stream to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
| |
GetPdfDocumentObjectFromHtmlStreamWithTempFile(Stream, Encoding) |
Gets a Document object representing the result of conversion of the HTML string read from the specified HTML stream to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStreamWithTempFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfDocumentObjectFromHtmlStreamWithTempFile(Stream, Encoding, String) |
Gets a Document object representing the result of conversion of the HTML string read from the specified HTML stream to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and
CSS files appearing in the htmlStream parameter.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStream method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfDocumentObjectFromHtmlStreamWithTempFile(Stream, Encoding, String, String) |
Gets a Document object representing the result of conversion of the HTML string read from the specified HTML stream to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
| |
GetPdfDocumentObjectFromHtmlString(String) |
Gets a Document object representing the result of conversion of the specified HTML string to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the internal links,
the internal links might not be correctly converted.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlString method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfDocumentObjectFromHtmlString(String, String) |
Gets a Document object representing the result of conversion of the specified HTML string to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images
and CSS files appearing in the HTML string.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlString method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfDocumentObjectFromHtmlString(String, String, String) |
Gets a Document object representing the result of conversion of the specified HTML string to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
| |
GetPdfDocumentObjectFromHtmlStringWithTempFile(String) |
Gets a Document object representing the result of conversion of the specified HTML string to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStringWithTempFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfDocumentObjectFromHtmlStringWithTempFile(String, String) |
Gets a Document object representing the result of conversion of the specified HTML string to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images
and CSS files appearing in the HTML string.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStringWithTempFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
GetPdfDocumentObjectFromHtmlStringWithTempFile(String, String, String) |
Gets a Document object representing the result of conversion of the specified HTML string to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
| |
GetPdfDocumentObjectFromUrl(String) |
Gets a Document object representing the result of conversion of the specified URL to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
| |
GetPdfDocumentObjectFromUrl(String, String) |
Gets a Document object representing the result of conversion of the specified URL to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
| |
GetPdfFromUrlBytes |
Converts the specified URL into a PDF document and returns the rendered PDF document as
an array of bytes. This method can be used to perform HTML to PDF conversion in internal memory.
This method is obsolete and it was preserved for backward compatibility. It offers the same functionality as the
GetPdfBytesFromUrl method which is the preferred method now.
| |
SavePdfFromHtmlFileToFile(String, String) |
Converts the specified HTML file into a PDF document and saves the rendered PDF document
into the specified disk file.
| |
SavePdfFromHtmlFileToFile(String, String, String) |
Converts the specified HTML file into a PDF document and saves the rendered PDF document
into the specified disk file.
| |
SavePdfFromHtmlFileToStream(String, Stream) |
Converts the specified HTML file to PDF and saves the rendered PDF document to the specified stream.
| |
SavePdfFromHtmlFileToStream(String, String, Stream) |
Converts the specified HTML file to PDF and saves the rendered PDF document to the specified stream.
| |
SavePdfFromHtmlStreamToFile(Stream, Encoding, String) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document
into the specified disk file.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStreamToFile method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStreamToFile(Stream, Encoding, String, String) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document
into the specified disk file.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and
CSS files appearing in the htmlStream parameter.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStreamToFile method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStreamToFile(Stream, Encoding, String, String, String) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document
into the specified disk file.
| |
SavePdfFromHtmlStreamToFileWithTempFile(Stream, Encoding, String) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document
into the specified disk file. The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStreamToFileWithTempFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStreamToFileWithTempFile(Stream, Encoding, String, String) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document
into the specified disk file. The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and
CSS files appearing in the htmlStream parameter.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStreamToFileWithTempFile method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStreamToFileWithTempFile(Stream, Encoding, String, String, String) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document
into the specified disk file. The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
| |
SavePdfFromHtmlStreamToStream(Stream, Encoding, Stream) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document to the specified stream.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStream method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStreamToStream(Stream, Encoding, String, Stream) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document to the specified stream.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and
CSS files appearing in the htmlStream parameter.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStream method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStreamToStream(Stream, Encoding, String, String, Stream) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document to the specified stream.
| |
SavePdfFromHtmlStreamWithTempFileToStream(Stream, Encoding, Stream) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document to the specified stream.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStreamWithTempFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStreamWithTempFileToStream(Stream, Encoding, String, Stream) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document to the specified stream.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and
CSS files appearing in the htmlStream parameter.
/// Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStream method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStreamWithTempFileToStream(Stream, Encoding, String, String, Stream) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document to the specified stream.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
| |
SavePdfFromHtmlStringToFile(String, String) |
Converts the specified HTML string to PDF and saves the rendered PDF document
into the specified disk file.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStringToFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStringToFile(String, String, String) |
Converts the specified HTML string to PDF and saves the rendered PDF document
into the specified disk file.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images
and CSS files appearing in the HTML string.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStringToFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStringToFile(String, String, String, String) |
Converts the specified HTML string to PDF and saves the rendered PDF document
into the specified disk file.
| |
SavePdfFromHtmlStringToFileWithTempFile(String, String) |
Converts the specified HTML string to PDF and saves the rendered PDF document into the specified disk file.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStringToFileWithTempFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStringToFileWithTempFile(String, String, String) |
Converts the specified HTML string to PDF and saves the rendered PDF document into the specified disk file.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images
and CSS files appearing in the HTML string.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStringToFileWithTempFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStringToFileWithTempFile(String, String, String, String) |
Converts the specified HTML string to PDF and saves the rendered PDF document into the specified disk file.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
| |
SavePdfFromHtmlStringToStream(String, Stream) |
Converts the specified HTML string to PDF and saves the rendered PDF document to the specified stream.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the internal links,
the internal links might not be correctly converted.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlString method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStringToStream(String, String, Stream) |
Converts the specified HTML string to PDF and saves the rendered PDF document to the specified stream.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images
and CSS files appearing in the HTML string.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlString method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStringToStream(String, String, String, Stream) |
Converts the specified HTML string to PDF and saves the rendered PDF document to the specified stream.
| |
SavePdfFromHtmlStringWithTempFileToStream(String, Stream) |
Converts the specified HTML string to PDF and saves the rendered PDF document to the specified stream.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStringWithTempFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStringWithTempFileToStream(String, String, Stream) |
Converts the specified HTML string to PDF and saves the rendered PDF document to the specified stream.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images
and CSS files appearing in the HTML string.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStringWithTempFile method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
SavePdfFromHtmlStringWithTempFileToStream(String, String, String, Stream) |
Converts the specified HTML string to PDF and saves the rendered PDF document to the specified stream.
The HTML string is first saved into a temporary HTML file. The temporary HTML file is then converted PDF.
| |
SavePdfFromUrlToFile(String, String) |
Converts the specified URL into a PDF document and saves the rendered PDF document
into the specified disk file.
| |
SavePdfFromUrlToFile(String, String, String) |
Converts the specified URL into a PDF document and saves the rendered PDF document
into the specified disk file.
| |
SavePdfFromUrlToStream(String, Stream) |
Converts the specified URL into a PDF document and saves the rendered PDF document to the specified stream.
| |
SavePdfFromUrlToStream(String, String, Stream) |
Converts the specified URL into a PDF document and saves the rendered PDF document to the specified stream.
|