- Added mergeProcessedZipArchive to handle the core logic of creating a merged PDF. - Implemented helpers to embed PDF pages and convert/embed images. - Added toArrayBuffer and convertImageBytesToPng utilities for handling binary data and canvas-based image processing.
- src/lib/components/ProcessedZipArchiveEditor.svelte:
- Added a "PDF herunterladen" (Download PDF) button. - Added UI states to handle the merging process (loading state, error messages).
- Integrated the mergeProcessedZipArchive function with the UI.
- src/lib/components/AttachmentPreview.svelte:
- Added a fix to ensure attachment.data is treated as a Uint8Array when loading PDF documents.