Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Parse page breaks#2602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
kigh-ota wants to merge3 commits intoexceljs:master
base:master
Choose a base branch
Loading
fromkigh-ota:load-page-breaks

Conversation

kigh-ota
Copy link
Contributor

Summary

Reads and parses page breaks into the model.
Previously#1257 added support for writing page breaks, but not for reading/parsing.

Fixes#2249.

Test plan

// Create 1.xlsx that contains a page breakconstwb1=newExcel.Workbook();constws1=wb1.addWorksheet('row-breaks');ws1.getCell('A1').value='A1';ws1.getCell('A2').value='A2';ws1.getCell('A3').value='A3';ws1.getCell('A4').value='A4';ws1.getRow(2).addPageBreak();awaitwb1.xlsx.writeFile('./1.xlsx');// Read 1.xlsx and write to 2.xlsxconstwb2=newExcel.Workbook();awaitwb2.xlsx.readFile('./1.xlsx');console.log(wb2.getWorksheet('row-breaks').rowBreaks);// returns an array of length 1awaitwb2.xlsx.writeFile('./2.xlsx');

Page Break Preview of 2.xlsx:
Screenshot 2023-11-26 at 20 15 32

I also added unit tests inworksheet-xform.spec.js.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[BUG] WorksheetReader did not read rowBreaks section
1 participant
@kigh-ota

[8]ページ先頭

©2009-2025 Movatter.jp