Converts the specified HTML string to PDF using a base URL to resolve the external resources and an URL to resolve the internal links and saves the rendered PDF document to the specified stream.

Namespace: EvoPdf
Assembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0

Syntax

C#
public void SavePdfFromHtmlStringToStream(
	string htmlString,
	string urlBase,
	string internalLinksDocUrl,
	Stream outPdfStream
)
Visual Basic
Public Sub SavePdfFromHtmlStringToStream ( 
	htmlString As String,
	urlBase As String,
	internalLinksDocUrl As String,
	outPdfStream As Stream
)
Visual C++
public:
void SavePdfFromHtmlStringToStream(
	String^ htmlString, 
	String^ urlBase, 
	String^ internalLinksDocUrl, 
	Stream^ outPdfStream
)

Parameters

htmlString
Type: System..::..String
The HTML string to be converted to PDF.
urlBase
Type: System..::..String
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and CSS files appearing in the HTML string.
internalLinksDocUrl
Type: System..::..String
The full URL of the document referenced by the internal links from the HTML string.
outPdfStream
Type: System.IO..::..Stream
The output stream where to save the generated PDF document.

See Also