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:
Select “keep with next” in the paragraph format settings for the top line
Observe the top line jumps to the next page
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