mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-14 07:59:00 +03:00
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:
parent
6317acb38a
commit
31e82fbfc8
Binary file not shown.
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 184 KiB |
@ -34,9 +34,9 @@ class PDFGenerator(FPDF):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def header(self):
|
def header(self):
|
||||||
# # Logo
|
# Logo
|
||||||
# logo_path = os.path.join(os.path.dirname(__file__), "logo.png")
|
logo_path = os.path.join(os.path.dirname(__file__), "logo.png")
|
||||||
# self.image(logo_path, 10, 10, 20) # Adjust size as needed
|
self.image(logo_path, 10, 10, 20) # Adjust size as needed
|
||||||
|
|
||||||
# Move cursor to right of image
|
# Move cursor to right of image
|
||||||
self.set_xy(20, 15)
|
self.set_xy(20, 15)
|
||||||
|
Loading…
Reference in New Issue
Block a user