feat(pdf): R4.6 app export on the core's session: export.ts drives ExportSession (rasters one by one, warnings in the engine's order, abort on unmount), labels moved to the app, EditorRoute downloads the Blob of the parts; suites read the file's content streams (pdfRead helper), app-path bytes = R4 digests, hex strings upper-case as pdf-lib
This commit is contained in:
1 parent
9e688b6801
commit
d492bf7112
29 files changed
+507
-131
No files matched your search
@@ -55,9 +55,8 @@ describe('the 612 legacy leaves in the application', () => {
|
||||
})
|
||||
|
||||
it('keeps every finding, resolved or not, through an archive PDF export and import', async () => {
|
||||
const { pdf: bytes } = await exportReportToPdf(report, sheet, {
|
||||
locale: 'fr',
|
||||
})
|
||||
const { pdf } = await exportReportToPdf(report, sheet, { locale: 'fr' })
|
||||
const bytes = new Uint8Array(await pdf.arrayBuffer())
|
||||
const { read: back } = await importReportFromPdf(bytes, sheet)
|
||||
expect(back.migrated).toBe(false)
|
||||
expect(back.origin).toBe('envelope_v1')
|
||||
|
||||
Reference in new issue
Block a user