简体   繁体   中英

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.

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

在此处输入图片说明

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

var document = DocumentModel.Load(doc);

and converting it into PDF.

Is it possible that you have a floating Table element ("Text wrapping" set to "Around")?
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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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