Hi, I've followed the basic example code
here:
Code: Visual Basic.NET
'Load the file
Dim doc As New PdfDocument(pdfFileName)
'Append a new page
Dim page As PdfPage = doc.Pages.Add()
'Render contents on the new page
HtmlToPdf.ConvertHtml("Text on the new page.", page)
'Save it to a new file
doc.Save(newFileName)
When this code trys to run the line: HtmlToPdf.ConvertHtml("Text on the new page.", page)
I get the following error:
An exception of type 'EO.Pdf.HtmlToPdfException' occurred in [...dll] but was not handled in user code
Additional information: Conversion failed. Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Why would this simple code not work?