Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分节符 #866

Open
ssdutnowind opened this issue Nov 4, 2024 · 2 comments
Open

分节符 #866

ssdutnowind opened this issue Nov 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ssdutnowind
Copy link

What problem does this feature solve?

建议引入“节”的定义,目前概念上缺少一层“节”,类似Word不同节可以进行不同的页面设置(类似一些不分页面横向排版、不分页面单独的页眉、页脚格式等)。

What does the proposed API look like?

None

@jordanparker6
Copy link

@ssdutnowind like a "Paragraph" block?

I noticed the API treats "text" as the leaf node and if you have a "text" element with a valueList the runs / blocks in the valueList are not rendered.

Keeping the "text" function the same, a "Paragraph" block (automatically created after two enters key presses) would be great and it is more similar to the Google Docs / MS Word API.

@ssdutnowind
Copy link
Author

In MS Word Document Model, a Word Document contains some Sections. The Page Setup is belong to Section not to Document.
Every Section has its own "PageSetup", you can define different page setups in one Word Document.
For example some section's page size is A4 and some are A5, or some section has page header and some section do not have, or even has different orientations.

https://learn.microsoft.com/en-us/dotnet/api/microsoft.office.interop.word.sections?view=word-pia

@Hufe921 Hufe921 changed the title 引入“节”的概念 分节符 Nov 4, 2024
@Hufe921 Hufe921 added the enhancement New feature or request label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants