Converting from .docx to .pdf is not preserving paragraph format (Specifically keep with next)

Product: PDFTron python

Product Version: 9.3.0 (but is happening on other versions we have too)

Please give a brief summary of your issue:
The ‘keep with next’ paragraph format is not being properly converted to PDF.

Please describe your issue and provide steps to reproduce it:
Keep with next is not keeping paragraphs with next after conversion to PDF, even though it is displayed properly in doc viewers (Word and google docs both display it correctly)

Create a docx file with a 2 lines that spans 2 pages
ex:
image

Select “keep with next” in the paragraph format settings for the top line
image

Observe the top line jumps to the next page
image

Convert to PDF with the Convert.OfficeToPDF() or Convert.WordToPDF() PDFTron funcs

Observe the top line is on the first page still

Please provide a link to a minimal sample where the issue is reproducible:
This zip file has a mini project where the issue is reproducible. Enter your product key in the Initialize func and run the python script, then notice how there is a difference between the toc-kwn.docx and toc.docx files, but no difference between the pdf files created from them

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:Forums:

Thank you for the report. I have reproduced, and this is now with the office conversion team.

As an update, the team is planning to add the Keep with next feature in the next release (PDFNet 9.5).

Awesome!!

Thanks Ryan