Python Forum
Universal(MACWINLIN) canvas pdf export
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Universal(MACWINLIN) canvas pdf export
#4
I would try to draw in parallel a PIL image and the tkinter canvas like in this very old forum post. The pil image can be saved as pdf in modern versions of pil. You could define your own functions such as

def my_create_rectangle(...):
    my_canvas.create_rectangle(...)
    my_image.rectangle(...)

...
def generate_drawing():
    ...
    my_create_rectangle(...)

def generate_pdf(...)
    my_image.save(...) # save as pdf
Reply


Messages In This Thread
RE: Universal(MACWINLIN) canvas pdf export - by Gribouillis - Aug-12-2022, 11:26 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020