How can PhantomJS.NetCore be used with .NET5
Closed this issue · 3 comments
This looks great work.
I have a application in .NET5 on Win and Linux and i would like to try the PhantomJS.NetCore.
Is this possible and how?
best regards
Hi there! Thank you for your interest. I've never used .NET5 and I don't know if you can use nuget packages on it. However, nuget or not, you can take the core files from this repo and add them to your project. Its based on three core files
Consts.cs
PdfGenerator.cs
PdfGeneratorParams.cs
Apart from these there's a 'Resources' folder at the very top that contains zipped binaries you must include that too. Those binaries do the actual html <> pdf conversion.
I tried but get
Auto configuration failed
140185264009152:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory
looks as ssl problem. Will look further into it and come back if solved .
this solved it:
export OPENSSL_CONF=/dev/null