Spaces:
Sleeping
Sleeping
Update src/app.py
Browse files- src/app.py +4 -4
src/app.py
CHANGED
|
@@ -36,12 +36,12 @@ def create_pdf_report(user_data):
|
|
| 36 |
page_width = doc.width + doc.leftMargin + doc.rightMargin
|
| 37 |
|
| 38 |
# Logos (mantenha a lógica de verificar se existem)
|
| 39 |
-
if os.path.exists('logo_pref.png'):
|
| 40 |
-
canvas.drawImage('logo_pref.png', doc.leftMargin, 740, width=4*cm, preserveAspectRatio=True, mask='auto')
|
| 41 |
-
if os.path.exists('logo_receita.png'):
|
| 42 |
logo_width = 3.5 * cm
|
| 43 |
x_centered = (page_width - logo_width) / 2
|
| 44 |
-
canvas.drawImage('logo_receita.png', x_centered, 740, width=logo_width, preserveAspectRatio=True, mask='auto')
|
| 45 |
|
| 46 |
header_style = ParagraphStyle(name='HeaderStyle', fontSize=8, alignment=TA_RIGHT)
|
| 47 |
p = Paragraph("<b>DAI-ESJL</b><br/>Divisão de Avaliação de Imóveis<br/>Equipe de Suporte, Judiciais e Locações", header_style)
|
|
|
|
| 36 |
page_width = doc.width + doc.leftMargin + doc.rightMargin
|
| 37 |
|
| 38 |
# Logos (mantenha a lógica de verificar se existem)
|
| 39 |
+
if os.path.exists('src/logo_pref.png'):
|
| 40 |
+
canvas.drawImage('src/logo_pref.png', doc.leftMargin, 740, width=4*cm, preserveAspectRatio=True, mask='auto')
|
| 41 |
+
if os.path.exists('src/logo_receita.png'):
|
| 42 |
logo_width = 3.5 * cm
|
| 43 |
x_centered = (page_width - logo_width) / 2
|
| 44 |
+
canvas.drawImage('src/logo_receita.png', x_centered, 740, width=logo_width, preserveAspectRatio=True, mask='auto')
|
| 45 |
|
| 46 |
header_style = ParagraphStyle(name='HeaderStyle', fontSize=8, alignment=TA_RIGHT)
|
| 47 |
p = Paragraph("<b>DAI-ESJL</b><br/>Divisão de Avaliação de Imóveis<br/>Equipe de Suporte, Judiciais e Locações", header_style)
|