Hi,
We are converting next html file IMDb - Movies.zip (29.9 KB) to pdf using Aspose.Pdf 17.9.
We use the following code for conversion
var htmlLoadOptions = new Aspose.Pdf.HtmlLoadOptions();
var pdf = new Aspose.Pdf.Document(inputFilePath, htmlLoadOptions);
pdf.Convert(
new MemoryStream(),
PdfFormat.v_1_5,
ConvertErrorAction.Delete);
pdf.Save(outputFilePath);
The constructor of Aspose.Pdf.Document throws an exception
System.NullReferenceException: Object reference not set to an instance of an object.
at .( , )
at .( )
at . ( )
at . ( )
at .( , , )
at . ( , )
at . ( , )
at .(Stream , Document , HtmlLoadOptions , String )
at Aspose.Pdf.Document.(Stream , LoadOptions )
at Aspose.Pdf.Document…ctor(String filename, LoadOptions options)
Best regards
Yurii