Is there a way to draw lines on a PDF file, by giving it coordinates of the start and end points? I have tried PyFPDF but cannot find much documentation about implementing it.
Is there a way to draw lines on a PDF file, by giving it coordinates of the start and end points? I have tried PyFPDF but cannot find much documentation about implementing it.
The following code will draw a line in 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)