Python tkinter将canvas保存为postscript并添加到pdf(Python tkinter save canvas as postscript and add to pdf) |
您所在的位置:网站首页 › colormode怎么用 › Python tkinter将canvas保存为postscript并添加到pdf(Python tkinter save canvas as postscript and add to pdf) |
我有一个简单的python tkinter绘图程序(用户使用鼠标在画布上绘制)。 我的目标是保存最终的绘图并将其放入带有其他内容的pdf文件中。 环顾四周后,我意识到我只能将画布绘图保存为postscript文件 canvas.postscript(file="file_name.ps", colormode='color') 所以,我想知道是否有任何方式(任何python模块?)将允许我将postscript文件作为图像插入pdf文件。 可能吗? I have a simple python tkinter paint program (user use mouse to draw on the canvas). My objective is to save the final drawing and put it into a pdf file with other contents. After looking around, i realized that i can only save the canvas drawing as postscript file like this canvas.postscript(file="file_name.ps", colormode='color') So, i am wondering if there's any way (any python module?) that will allow me to insert the postscript files into pdf file as images. Is it possible? |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |