manuels / texlive.js

Compiling LaTeX (TeX live) in your browser
http://manuels.github.com/texlive.js/
GNU General Public License v2.0
1.25k stars 140 forks source link

Client-side generated images #21

Open macolo opened 9 years ago

macolo commented 9 years ago

This is the future!

I would like to reference svg images that are generated in the browser. Is this somehow possible?

manuels commented 9 years ago

Yes, it is: just use the pdftex.FS_createDataFile(parentPath, filename, data, canRead, canWrite) command and put the source code of the SVG into the data argument.