Skip to content

Add functionality to export retrospective as PDF#30

Merged
Mewbi merged 1 commit intomasterfrom
feat/export_retrospective_pdf
Jan 31, 2026
Merged

Add functionality to export retrospective as PDF#30
Mewbi merged 1 commit intomasterfrom
feat/export_retrospective_pdf

Conversation

@Mewbi
Copy link
Member

@Mewbi Mewbi commented Jan 31, 2026

This pull request adds support for exporting retrospectives as PDF files in addition to the existing JSON and Markdown formats. The most important changes are grouped below:

PDF Export Functionality:

  • Added a new method ConvertRetrospectiveToPDF in internal/service/convert.go that generates a PDF representation of a retrospective using the github.com/go-pdf/fpdf library. The PDF includes the title, description, creation date, questions, and answers, formatted for readability.
  • Updated the export handler in internal/server/server.go to handle the new PDF export type: it calls the new conversion method, sets the correct headers, and returns the PDF file as a download.
  • The PDF generate should be similar as the following:
image

API and Type Updates:

  • Added ExportTypePDF to the ExportType enum in types/retrospective.go to support the new export option.
  • Updated the export request validation in types/validations.go to accept PDF as a valid export type.
  • Enhanced the API documentation and response description in internal/server/server.go to reflect that the export endpoint can now return a PDF file.

Dependency Management:

  • Added github.com/go-pdf/fpdf as an indirect dependency in go.mod to enable PDF generation.

@Mewbi Mewbi merged commit 62e0b63 into master Jan 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant