Sync snapshot (2026-08-23) (#130)
- Convert scanned PDFs to editable text with local OCR, running through the operating system's own engine on macOS and Windows - Add a much richer AI workflow to Docs, PDF, and Markdown: selection-scoped questions, batched edits, character-level edits, comment and tracked-change awareness, citations back to the source block, and in-document image generation - Let Slides open the same presentation in a second window and edit it from both - Improve PDF to Excel table recovery: tables spanning pages merge into one worksheet, and label/value grids and rule-less statement bands become real rows - Fix a large wave of Word layout fidelity in Docs, Excel parity in Sheets, and PowerPoint import fidelity in Slides Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
This commit is contained in:
co-authored by
GenOffice
parent
f68df70e22
commit
6d9b6812dd
@@ -59,6 +59,7 @@ export async function parseFileToText(filePath: string): Promise<ParsedFile> {
|
||||
case 'pptx':
|
||||
return { ok: true, kind: 'text', text: await pptxToText(await readFile(filePath)) }
|
||||
case 'xlsx':
|
||||
case 'xlsm':
|
||||
return { ok: true, kind: 'text', text: await xlsxToText(await readFile(filePath)) }
|
||||
case 'pdf':
|
||||
return { ok: true, kind: 'text', text: await pdfToText(await readFile(filePath)) }
|
||||
|
||||
@@ -109,6 +109,13 @@ describe('parseFileToText: xlsx', () => {
|
||||
expect(result.text).toContain('\n Alice pts \n #N/A ')
|
||||
})
|
||||
|
||||
it('parses .xlsm through the same xlsx path', async () => {
|
||||
const path = writeFixture('table.xlsm', await buildXlsxFixture())
|
||||
const result = await parseFileToText(path)
|
||||
expect(result.ok).toBe(true)
|
||||
expect(result.text).toContain('# Grades')
|
||||
})
|
||||
|
||||
it('fails gracefully on a corrupt file', async () => {
|
||||
const path = writeFixture('broken.xlsx', Buffer.from('not a zip'))
|
||||
const result = await parseFileToText(path)
|
||||
|
||||
Reference in New Issue
Block a user