Skip to content

Add a Standalone PDF Report Export Endpoint for Assets #535

@yusuftomilola

Description

@yusuftomilola

Description:
pdfkit is already installed. This is a self-contained endpoint that streams a formatted PDF asset report directly to the client. It is independent of the CSV and Excel exports and can be worked on separately.

Acceptance Criteria:

  • GET /api/reports/assets/export/pdf — accepts the same query filters
  • Returns a PDF with Content-Disposition: attachment; filename="assets-report.pdf"
  • PDF includes: report title, generated date, applied filter summary, total asset count
  • Asset table with columns: Asset ID, Name, Category, Department, Status, Location
  • Page numbers rendered in the footer
  • Uses pdfkit streaming to pipe directly into the HTTP response
  • JWT-protected

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions