Skip to content

#32 feat: add PDF export option#49

Open
ikorich wants to merge 1 commit intodevelopfrom
feature/32-pdf-export
Open

#32 feat: add PDF export option#49
ikorich wants to merge 1 commit intodevelopfrom
feature/32-pdf-export

Conversation

@ikorich
Copy link
Member

@ikorich ikorich commented Jan 31, 2026

Motivation

PDF format is preferred for documentation and printing as it maintains quality at any zoom level.

Changes

  • Add ExportFormat enum with .png and .pdf options in SettingsTypes
  • Add format picker (segmented control PNG/PDF) in toolbar export section
  • Update AppViewModel.saveImage() to accept format parameter
  • Add savePDF() function using CGPDFContext for PDF generation
  • Update export button and accessibility labels to reflect current format

Notes

  • PDF is generated from the rendered image using CoreGraphics PDF context
  • File extension changes based on selected format (.png or .pdf)
  • Format preference is persisted via AppStorage

- Add ExportFormat enum with png and pdf options
- Add format picker (segmented control) in export section
- Update saveImage to handle both PNG and PDF formats
- Use CGPDFContext for PDF generation from rendered image
- Update export button labels to show current format
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