Hello,
I am currently evaluating the aspose complete suite in order to determine if its worth purchasing and i am not able to get even the example to work for the conversion between html to pdf. I used the following code in the example (https://docs.aspose.com/display/pdfnet/Convert+HTML+to+PDF+Format):
// HTML string
String html = “this is a link to a web site like http://www.aspose.com/">this.";
// instantiate HtmlLoadOptions object and set desrired properties.
HtmlLoadOptions htmlLoadOptions = new HtmlLoadOptions();
htmlLoadOptions.PageInfo.Margin.Bottom = 10;
htmlLoadOptions.PageInfo.Margin.Top = 20;
//Load HTML string
Document doc = new Document(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(html)), htmlLoadOptions);
//Save PDF file
doc.Save(“output.pdf”);
And this is the error that i am getting:
System.IO.FileLoadException: 'Could not load file or assembly ‘zx_b2ba20ee57f341fdaebf981fa29e650c, PublicKeyToken=716fcc553a201e56’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))'
ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
I’ve searched the forum and wasn’t able to find any similar posts. I am currently using the latest version in nuget which is Aspose.Pdf 17.5.0.0 and currently developing in .net 4.6.1. Help would be greatly appreciated.