简体   繁体   English

GemBox-表格以PDF格式切割

[英]GemBox - Tables are cut on PDF

I've done a lot of searching about Gembox issues with tables, most of the problems seem like their requirement is to fit an entire table in a single page. 我已经做了很多有关表的Gembox问题的搜索,大多数问题似乎都要求将整个表放在一个页面中。

I do have the opposite problem as I would like to do a page break for every row that goes over the page. 我确实遇到了相反的问题,因为我想对页面上的每一行进行分页。 This works fine on .docx files and the rest of the table goes to the next page, but when it's rendered to PDF, this happens 这在.docx文件上工作正常,表的其余部分转到下一页,但是当将其呈现为PDF时,会发生这种情况

在此处输入图片说明

I've also noticed a somewhat similar issue here but I can't figure out how I could apply 我在这里也注意到了一个类似的问题但是我不知道该如何申请

TableRowFormat().AllowBreakAcrossPage == true

for all the table rows in my scenario where I'm loading an existing .docx file via 对于我通过以下方式加载现有.docx文件的方案中的所有表行

var document = DocumentModel.Load(doc);

and converting it into PDF. 并将其转换为PDF。

Is it possible that you have a floating Table element ("Text wrapping" set to "Around")? 您是否有一个浮动的Table元素(“文本环绕”设置为“周围”)?
If so I believe that is the reason for this issue, to resolve it try setting the Table's layout to an inline ("Text wrapping" set to "None"). 如果是这样,我认为这是造成此问题的原因,请尝试将表的布局设置为内联(“文本换行”设置为“无”)来解决。

In other words, check the following: 换句话说,请检查以下内容:

Word文档表属性

I hope this helps. 我希望这有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM