xlsx and xls: read the print setup, so a printed sheet fits its paper
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C++
- Star
- 41
- Fork
- 10
- Merge trung bình
- 10 giờ 30 phút
- Pull request đã merge (30 ngày)
- 342
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của opendocument-app/OpenDocument.core
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
opendocument-app/OpenDocument.core#1281 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
opendocument-app/OpenDocument.core#1280 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
opendocument-app/OpenDocument.core#1279 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
opendocument-app/OpenDocument.core#1278 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
opendocument-app/OpenDocument.core#1221 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của opendocument-app/OpenDocument.core
Issue tương tự
-
Shell: serve the home app's Cookie Policy on a hard reloadCó thể đã có người làm @2001anshkaushik đã nhận hôm nay. Đang mởfeature module:ai
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
rocketride-org/rocketride-server#2899 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
rice-solar-physics/HYDRAD#113 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 3 ngày
-
status:needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
PX4/PX4-Autopilot#29496 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing icon for .cpp2 filesĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 66/100
madskristensen/FileIcons#385 ·