Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在PDF文件上画线,通过给它起点和终点的坐标?我已经尝试过 PyFPDF,但找不到太多关于实现它的文档。
以下代码将在 pdf 中画一条线:
pdf.set_draw_color(0, 0, 0) #black line pdf.line(5, 16,205 ,16) #coordinate sequence: (x_start, y_start, x_end, y_end)