问题
How can I insert an image to an RTF file. Inside the RTF file there is a placeholder text like {photo}. I want to place the image at this position using php.
回答1:
I found an open source PHP library that allows insertion of images to PHP-generated RTF documents. It's called PHPRTF.
Here's the sample code that inserts images: link
来源:https://stackoverflow.com/questions/1135485/insert-image-to-rtf-file-using-php