Generate ODT documents with dynamic images in PHP

纵饮孤独 提交于 2019-12-05 15:56:28

I think odtPHP might be what you're looking for

is seems to be able to insert images on a placeholder in the document and reads simply from an array to see which image to place.

http://www.odtphp.com/index.php?i=tutorials&p=tutorial5

Now, if you do this as a post-process after your current code, or simply use it instead of TBS, you got everything you need IMHO

Alternatively, you can include a default image with a certain filename in your document, and simply replace that imagefile in the archive.

There is a new version of TbsOOo, it's OpenTBS and it has a feature for inserting/changing a picture in the file.

http://www.tinybutstrong.com/opentbs.php

Did you try to use the AddFileToDoc method to add an image to the document?

The documentation on this method is here:

http://www.tinybutstrong.com/tbsooo.php#AddFileToDoc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!