xlsx and xls: read the print setup, so a printed sheet fits its paper
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Start in internal/html/document_element.cpp at sheet_print_fit, then read ooxml_spreadsheet_document.cpp and the existing Sheet::page_layout() path. Trace how XLSX page setup, margins, column widths and defaults are read, then compare the corresponding XLS records (SETUP, margin records, COLINFO, DEFCOLWIDTH). Done means XLSX and XLS print setup and effective column widths feed the fit calculation; pagination, print ranges and repeated title rows are out of scope.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Split out of #816. For an ods sheet, #817, #820 and #1197 fixed the reported case: the ruler does not print, and translate_sheet writes --odr-print-fit from Sheet::page_layout(). For xlsx and xls, sheet_page_layout returns an empty layout, so a wide sheet still depends on the shrink heuristic of the browser.
Three gaps stop sheet_print_fit (internal/html/document_element.cpp) for xlsx:
pageSetupandpageMarginsare not read (ooxml_spreadsheet_document.cpp,// TODO pageSetup is not read).paperSizeis an enumeration (ECMA-376 Part 1, 18.3.1.63),orientationturns it, and the margins are in inches. ApaperWidthandpaperHeightwith units can replace the enumeration.- A column width is in characters (
ch), andcss_pixelsgives no answer forch. Excel converts with the maximum digit width of the default font (7 px for Calibri 11). - A column with no
<col>has no width, so the sum stops.sheetFormatPr/@defaultColWidthor@baseColWidthgives the default.
xls has the same shape (SETUP, the margin records, COLINFO and DEFCOLWIDTH).
Not in scope: pagination along the columns, print ranges, and repeated title rows. #816 lists these as the larger fix.
- Vorherrschende Sprache
- C++
- Sterne
- 41
- Forks
- 10
- Ø Merge
- 10 Std. 30 Min.
- Gemergte PRs (30 T.)
- 342
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus opendocument-app/OpenDocument.core
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
opendocument-app/OpenDocument.core#1281 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 57/100
opendocument-app/OpenDocument.core#1280 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
opendocument-app/OpenDocument.core#1279 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
opendocument-app/OpenDocument.core#1278 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
opendocument-app/OpenDocument.core#1221 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in opendocument-app/OpenDocument.core
Ähnliche Issues
-
bug priority: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
chipsalliance/verible#2644 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
grafana/pyroscope-dotnet#470 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation P5 XS
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
open-astro/AlpacaBridge#1848 ·
Maintainer antworten meist innerhalb von 1 Tag
-
DiskANN AnnIterator returns unconverted IP distances after the graph walk runs out of candidatesOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
zilliztech/knowhere#1933 ·
Maintainer antworten meist innerhalb von 1 Tag