Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Nov 11, 2019 4:06 pm

Hello.

I have HTML which is converted to PDF. Some paragraphs should be kept together and not split between pages. The following stylesheet is used, but it does not work. 'You have questions' paragraph is splitted between pages when it reaches end of the page. Any suggestions?

Stylesheet
.div {
display: inline;
page-break-inside: avoid;
break-inside: avoid;
}

Used in a code
<dif class="div">
<b>If You Have Questions</b>
<br />
If you have any questions, please call .....
more text and more text and more text...
</a>

tlerner
 
Posts: 39
Joined: Mon Aug 14, 2017 5:49 pm

Tue Nov 12, 2019 1:00 am

Hi,

Thanks for your inquiry.
To help us investigate your issue accurately, please offer us the following information.
1. Your input Html file.
2. The complete code you were using which could reproduce your issue directly.
3. Your result Pdf file.
4. Your desired result file.

You could upload them here or send us([email protected]) via email.

Best wishes,
Amber
E-iceblue support team
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Return to Spire.PDF

cron