Skip to content

pdfReceipt.ts: Support custom logo injection into generated receipts #642

Description

@Kingsman-99

Description

src/pdfReceipt.ts generates receipts with a static header. Integrators want to embed their own logo in the receipt header. The generator should accept an optional base64-encoded image and render it in the header section.

Acceptance Criteria

  • ReceiptOptions accepts an optional logoBase64: string field
  • When provided, the logo is rendered in the top-left of the receipt header
  • When omitted, the existing static header is rendered unchanged
  • Unit tests pass

Context

  • Target file: src/pdfReceipt.ts
  • Logo must be validated as a non-empty string before use; throw InvalidLogoError if validation fails

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions