I'm working on a Unity project which requires me to show PDFs within the project. To do this I need to convert it to an image first and then display that (the only way to show a PDF is to buy an asset on the store it seems). However, this seems quite difficult to do in C#. I've tried a number of libraries but have had no luck. However this conversion seems extremely easy to do in Javascript. Is there any way to execute Javascript code from within a C# program? So for example, I download my PDF with an API call on my C# program, then execute some Javascript code to open up the PDF in the background and save the canvas element as a png/jpeg for me to use back in my C# program?