feat: Update PDFGenerator to include logo in header (#3311)

# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
This commit is contained in:
Stan Girard 2024-10-03 17:35:59 +02:00 committed by GitHub
parent 6317acb38a
commit 31e82fbfc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 184 KiB

View File

@ -34,9 +34,9 @@ class PDFGenerator(FPDF):
)
def header(self):
# # Logo
# logo_path = os.path.join(os.path.dirname(__file__), "logo.png")
# self.image(logo_path, 10, 10, 20) # Adjust size as needed
# Logo
logo_path = os.path.join(os.path.dirname(__file__), "logo.png")
self.image(logo_path, 10, 10, 20) # Adjust size as needed
# Move cursor to right of image
self.set_xy(20, 15)