Search code examples
javascriptobjective-cuiwebviewcgimage

CGI-image from Javascript in UIWebView Xcode


my problem is this - I have a UIWebView, which loads a local html file. This html file is javascript, which refers to mimetex.cgi this site - http://planetcalc.ru/cgi-bin/mimetex.cgi

Question - can I do to mimetex.cgi placed directly on the device, that is, the program worked without using the Internet.

P.S. I know that sort of mimetex.cgi opens only on the server, but it can have any way to open it, what some frameworks such as ...


Solution

  • Yes, you can run the code form MimeTeX in an Xcode project, as it is written in C using only basic C standard libraries. Just add them to the project and call their functions, are start it as a sub process using popen.