Posted 24 August 2026, 4:04 am EST
Hi,
Importing an .xlsx and exporting it straight back — no edits — loses three things. The Excel import/export feature table lists print, picture and rowInfo: row height as ✓ in both directions.
Environment: @mescius/spread-sheets, -io, -shapes, -angular all 18.2.5, Angular browser client. Export options include losslessEditing: true.
Repro: import test_repro.xlsx, change nothing, export as .xlsx → result_test.xlsx. Both attached.
Issue 1 — fitToWidth / fitToHeight are dropped
orig:
saved:
is retained, so the sheet still declares fit-to-page — but the page counts it refers to are gone, and consumers fall back to their own defaults. A document authored to fit exactly one page now paginates. Paper size, scale, orientation and margins are all preserved correctly.
Issue 2 — the SVG part of an SVG+PNG picture is dropped
The source has an xdr:pic whose <a:blip r:embed=“rId1”> (PNG) carries <asvg:svgBlip r:embed=“rId2”> under URI {96DAC541-7B7A-43D3-8B79-37D633B846F1} → media/image2.svg.
After the round-trip: the picture and anchor survive, but svgBlip is absent from drawing1.xml, media/image2.svg is missing from the package, and the drawing rels drop from 2 image relationships to 1. Only the raster fallback remains — a vector logo silently loses quality, with no error or warning.
Issue 3 — row heights are re-quantised to whole pixels at 96 DPI
Original Exported Count Pixels
13.4 13.5 ×20 17.867 → 18 (up)
13.75 13.5 ×3 18.333 → 18 (down)
15.5 15.75 ×1 20.667 → 21 (up)
8.0 8.25 ×1 10.667 → 11 (up)
12.75 12.75 ×5 17.0 → 17 (stable)
Sheet height grows 396.50 → 398.25 pt. In our production 62-row label it grows 830.00 → 834.00 pt — enough to tip a one-page document onto a second page. If integer pixel heights are required internally, could the original point value be retained and re-emitted on export?
Preserved correctly: all 9 column widths byte-identical, both merged ranges, defaultRowHeight/defaultColWidth, cell values and styles.
Tested with https://developer.mescius.com/spreadjs/angular-spreadsheet-components - import export.
