Click or drag to resize

PdfConverter Methods

The PdfConverter type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetPageCount(Stream)
A fast method to obtain the page count of a specified PDF document.
Public methodStatic memberGetPageCount(String)
A fast method to obtain the page count of a specified PDF document.
Public methodGetPdfBytesFromHtmlFile(String)
Converts the specified HTML file to PDF and returns the rendered PDF document as an array of bytes.
Public methodGetPdfBytesFromHtmlFile(String, String)
Converts the specified HTML file to PDF and returns the rendered PDF document as an array of bytes.
Public methodGetPdfBytesFromHtmlStream(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.
Public methodGetPdfBytesFromHtmlStream(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.
Public methodGetPdfBytesFromHtmlStream(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.
Public methodGetPdfBytesFromHtmlStreamWithTempFile(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.
Public methodGetPdfBytesFromHtmlStreamWithTempFile(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.
Public methodGetPdfBytesFromHtmlStreamWithTempFile(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.
Public methodGetPdfBytesFromHtmlString(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.
Public methodGetPdfBytesFromHtmlString(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.
Public methodGetPdfBytesFromHtmlString(String, String, String)
Converts the specified HTML string to PDF and returns the rendered PDF document as an array of bytes.
Public methodGetPdfBytesFromHtmlStringWithTempFile(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.
Public methodGetPdfBytesFromHtmlStringWithTempFile(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.
Public methodGetPdfBytesFromHtmlStringWithTempFile(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.
Public methodGetPdfBytesFromUrl(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.
Public methodGetPdfBytesFromUrl(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.
Public methodGetPdfDocumentObjectFromHtmlFile(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.
Public methodGetPdfDocumentObjectFromHtmlFile(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.
Public methodGetPdfDocumentObjectFromHtmlStream(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.
Public methodGetPdfDocumentObjectFromHtmlStream(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.
Public methodGetPdfDocumentObjectFromHtmlStream(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.
Public methodGetPdfDocumentObjectFromHtmlStreamWithTempFile(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.
Public methodGetPdfDocumentObjectFromHtmlStreamWithTempFile(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.
Public methodGetPdfDocumentObjectFromHtmlStreamWithTempFile(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.
Public methodGetPdfDocumentObjectFromHtmlString(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.
Public methodGetPdfDocumentObjectFromHtmlString(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.
Public methodGetPdfDocumentObjectFromHtmlString(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.
Public methodGetPdfDocumentObjectFromHtmlStringWithTempFile(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.
Public methodGetPdfDocumentObjectFromHtmlStringWithTempFile(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.
Public methodGetPdfDocumentObjectFromHtmlStringWithTempFile(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.
Public methodGetPdfDocumentObjectFromUrl(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.
Public methodGetPdfDocumentObjectFromUrl(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.
Public methodGetPdfFromUrlBytes
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.
Public methodSavePdfFromHtmlFileToFile(String, String)
Converts the specified HTML file into a PDF document and saves the rendered PDF document into the specified disk file.
Public methodSavePdfFromHtmlFileToFile(String, String, String)
Converts the specified HTML file into a PDF document and saves the rendered PDF document into the specified disk file.
Public methodSavePdfFromHtmlFileToStream(String, Stream)
Converts the specified HTML file to PDF and saves the rendered PDF document to the specified stream.
Public methodSavePdfFromHtmlFileToStream(String, String, Stream)
Converts the specified HTML file to PDF and saves the rendered PDF document to the specified stream.
Public methodSavePdfFromHtmlStreamToFile(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.
Public methodSavePdfFromHtmlStreamToFile(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.
Public methodSavePdfFromHtmlStreamToFile(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.
Public methodSavePdfFromHtmlStreamToFileWithTempFile(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.
Public methodSavePdfFromHtmlStreamToFileWithTempFile(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.
Public methodSavePdfFromHtmlStreamToFileWithTempFile(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.
Public methodSavePdfFromHtmlStreamToStream(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.
Public methodSavePdfFromHtmlStreamToStream(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.
Public methodSavePdfFromHtmlStreamToStream(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.
Public methodSavePdfFromHtmlStreamWithTempFileToStream(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.
Public methodSavePdfFromHtmlStreamWithTempFileToStream(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.
Public methodSavePdfFromHtmlStreamWithTempFileToStream(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.
Public methodSavePdfFromHtmlStringToFile(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.
Public methodSavePdfFromHtmlStringToFile(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.
Public methodSavePdfFromHtmlStringToFile(String, String, String, String)
Converts the specified HTML string to PDF and saves the rendered PDF document into the specified disk file.
Public methodSavePdfFromHtmlStringToFileWithTempFile(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.
Public methodSavePdfFromHtmlStringToFileWithTempFile(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.
Public methodSavePdfFromHtmlStringToFileWithTempFile(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.
Public methodSavePdfFromHtmlStringToStream(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.
Public methodSavePdfFromHtmlStringToStream(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.
Public methodSavePdfFromHtmlStringToStream(String, String, String, Stream)
Converts the specified HTML string to PDF and saves the rendered PDF document to the specified stream.
Public methodSavePdfFromHtmlStringWithTempFileToStream(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.
Public methodSavePdfFromHtmlStringWithTempFileToStream(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.
Public methodSavePdfFromHtmlStringWithTempFileToStream(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.
Public methodSavePdfFromUrlToFile(String, String)
Converts the specified URL into a PDF document and saves the rendered PDF document into the specified disk file.
Public methodSavePdfFromUrlToFile(String, String, String)
Converts the specified URL into a PDF document and saves the rendered PDF document into the specified disk file.
Public methodSavePdfFromUrlToStream(String, Stream)
Converts the specified URL into a PDF document and saves the rendered PDF document to the specified stream.
Public methodSavePdfFromUrlToStream(String, String, Stream)
Converts the specified URL into a PDF document and saves the rendered PDF document to the specified stream.
Top
See Also