feat: support selective page range extraction for email attachment print previews
Build and Push Multi-Platform Images / build-and-push (push) Successful in 35s

This commit is contained in:
2026-05-05 08:06:52 +02:00
parent 84a349fd35
commit b47ad17568
3 changed files with 25 additions and 5 deletions
@@ -365,8 +365,11 @@ export default function MailImportWizard({ visible, onClose, email, attachments
printWindow.close();
return;
}
const blob = await emailImportApi.printPreview(attachmentId, barcode);
const item = importData.find(i => i.virtualId === virtualId);
const pages = item?.pages;
const blob = await emailImportApi.printPreview(attachmentId, barcode, pages);
const url = window.URL.createObjectURL(blob);
// Navigate the already open window to the PDF