Automation Tool Using Python /u/Boring-Baker-3716 Python Education

Hey Everyone, Happy New Year! I work as a weekend receptionist at a nursing center while attending college. One of my weekly tasks is printing menus for patients across three floors. The process starts with a Word document containing patient information – each line lists a patient’s name, room number, and diet type (either standard or ground for people who can’t chew). I also receive two PDF menu templates – one for standard diets and another for ground diets.

Currently, I spend 1-2 hours every weekend manually printing these menus. As a computer science student, I believe I can automate this process using Python. My research led me to libraries like python-docx and PyPDF2. Here’s what I want to achieve:

  1. Read each line from the Word document

  2. Determine the patient’s diet type (standard/ground)

  3. Open the corresponding PDF template

  4. Fill in the patient’s name and room number in the form fields (currently in Adobe, when I fill the first page, it automatically populates across all seven pages)

  5. Print the menu

  6. Move to the next patient

I have experience with Python but haven’t built an automation tool like this before. My main questions are:

– Is this automation possible?

– How can I handle PDF form filling programmatically?

– How do I implement automated printing in Python?

Any guidance or suggestions would be greatly appreciated. Thanks!

submitted by /u/Boring-Baker-3716
[link] [comments]

​r/learnpython Hey Everyone, Happy New Year! I work as a weekend receptionist at a nursing center while attending college. One of my weekly tasks is printing menus for patients across three floors. The process starts with a Word document containing patient information – each line lists a patient’s name, room number, and diet type (either standard or ground for people who can’t chew). I also receive two PDF menu templates – one for standard diets and another for ground diets. Currently, I spend 1-2 hours every weekend manually printing these menus. As a computer science student, I believe I can automate this process using Python. My research led me to libraries like python-docx and PyPDF2. Here’s what I want to achieve: Read each line from the Word document Determine the patient’s diet type (standard/ground) Open the corresponding PDF template Fill in the patient’s name and room number in the form fields (currently in Adobe, when I fill the first page, it automatically populates across all seven pages) Print the menu Move to the next patient I have experience with Python but haven’t built an automation tool like this before. My main questions are: – Is this automation possible? – How can I handle PDF form filling programmatically? – How do I implement automated printing in Python? Any guidance or suggestions would be greatly appreciated. Thanks! submitted by /u/Boring-Baker-3716 [link] [comments] 

Hey Everyone, Happy New Year! I work as a weekend receptionist at a nursing center while attending college. One of my weekly tasks is printing menus for patients across three floors. The process starts with a Word document containing patient information – each line lists a patient’s name, room number, and diet type (either standard or ground for people who can’t chew). I also receive two PDF menu templates – one for standard diets and another for ground diets.

Currently, I spend 1-2 hours every weekend manually printing these menus. As a computer science student, I believe I can automate this process using Python. My research led me to libraries like python-docx and PyPDF2. Here’s what I want to achieve:

  1. Read each line from the Word document

  2. Determine the patient’s diet type (standard/ground)

  3. Open the corresponding PDF template

  4. Fill in the patient’s name and room number in the form fields (currently in Adobe, when I fill the first page, it automatically populates across all seven pages)

  5. Print the menu

  6. Move to the next patient

I have experience with Python but haven’t built an automation tool like this before. My main questions are:

– Is this automation possible?

– How can I handle PDF form filling programmatically?

– How do I implement automated printing in Python?

Any guidance or suggestions would be greatly appreciated. Thanks!

submitted by /u/Boring-Baker-3716
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *