Converts HTML string to PDF file

Namespace:  SautinSoft
Assembly:  SautinSoft.PdfVision (in SautinSoft.PdfVision.dll) Version: 5.1.2.13

Syntax

      
 C#  Visual Basic 
public int ConvertHtmlStringToPDFFile(
	string inputHtmlString,
	string outputPdfFile
)
Public Function ConvertHtmlStringToPDFFile ( _
	inputHtmlString As String, _
	outputPdfFile As String _
) As Integer

Parameters

inputHtmlString
String
Any string in HTML format, framed by <html> ... </html> tags
outputPdfFile
String
Local path to output PDF file

Return Value

0 - converting successfully
2 - can't create output file, check the output path
3 - converting failed

Remarks

If HTML string contains links to .css files or to images, please be sure that links are not relative.
Links have to be full, like this: <img src="http://www.mysite.com/images/picture1.jpg" >.


See Also