andrei-m-code / net-core-html-to-image

.NET Core HTML to Image converter
MIT License
127 stars 54 forks source link

Does it work for Xamarin apps? #13

Open ukod opened 5 years ago

ukod commented 5 years ago

I'm trying to use this library in my Xamarin Android project and I faced an error on constructor line. System.ArgumentNullException: 'Value cannot be null. Parameter name: path1'

wkhtmltopdf.exe inside your tool looks like QT application, but I not sure that it will work on Xamarin, especially that part of code

Process process = Process.Start(new ProcessStartInfo(HtmlConverter.toolFilepath, string.Format("--quality {0} --width {1} -f {2} {3} {4}", (object) quality, (object) width, (object) lower, (object) url, (object) path)) { WindowStyle = ProcessWindowStyle.Hidden, CreateNoWindow = true, UseShellExecute = false, WorkingDirectory = HtmlConverter.directory, RedirectStandardError = true });