Skip to content

Commit

Permalink
[BUG FIX]
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoSFReis committed Jan 7, 2025
1 parent cb16128 commit 7231467
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pyreportjasper/pyreportjasper.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class PyReportJasper:
'ods',
'pptx',
'jrprint',
'pdf_bytes'
)

METHODS = ('GET', 'POST', 'PUT')
Expand Down Expand Up @@ -166,7 +165,6 @@ def process_report(self):
try:
formats_functions = {
'pdf': report.export_pdf,
'pdf_bytes': report.export_pdf_bytes,
'html': report.export_html,
'rtf': report.export_rtf,
'docx': report.export_docx,
Expand Down
4 changes: 4 additions & 0 deletions pyreportjasper/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ def fill_internal(self):
# Métodos de exportação - todos retornam bytes
# =========================================================================

<<<<<<< Updated upstream
=======

>>>>>>> Stashed changes
def export_pdf(self):
"""Retorna o arquivo PDF em bytes."""
output_stream = self.ByteArrayOutputStream()
Expand Down

0 comments on commit 7231467

Please sign in to comment.