我有一个编辑RTF模板的小Python程序。
我需要嵌入广告图像在一个特定的位置的rtf文件
我发现了png图像的代码片段(最初我认为是用C#)编写的:
mpic = "{\pict\pngblip\picw" + img_Width + "\pich" + img_Height + "\picwgoal" + width + @"\pichgoal" + height + "\bin " + str + "}"
我不知道哪个库可以让我把图像转换成正确的格式,
有人能给我一些提示吗?在
非常感谢,
威利
Tags:
有点复杂,但很管用
相关问题 更多 >
编程相关推荐