Text Formatting ⇒ Converting HTML to images, further use of PHP
Converting HTML to images, further use of PHP
I am looking to use latex to simply convert html text to an image... the main reason being I want users to be able to type text in a box, select a custom TTF font, (That they will not have on their system), and then preview the text in that font.
They also need to be able to do colour manipulation, bold, italic, etc...
Firstly:
Is Latex the right tool for the job?
Secondly:
My web host installed Latex and told me to call it via php using the exec command. I cannot find any idiot's guides on getting started on using latex via PHP. Can anyone here help at all? i.e. even just to test it all works?
Thanks
Sam
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Converting HTML to images, further use of PHP
No. But the usual output formats should be convertible with tools like ImageMagick.sambessey wrote:[...] Is Latex the right tool for the job? [...]
For this purpose there exist some ready-made scripts with latexrender.sambessey wrote:[...] My web host installed Latex and told me to call it via php using the exec command. I cannot find any idiot's guides on getting started on using latex via PHP. Can anyone here help at all? i.e. even just to test it all works? [...]
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: New to Latex
I realise I will need to convert to some kind of image in ImageMagick (No problem), but I want to ensure I can do everything I want in terms of text formatting/ output out-of-the-box.
I will follow up on your advice.
Thanks
Sam