Page Break for HTML Content

Hi,

I have a html content (Go

Test it now

). This will be generated as a pdf.

I need to have a Page break before the content “

Test it now

”.
How can i do? I have tried “Page-break” and “#$NP” but both doesnt work for me.

And please note, it is a html content not a text. Please help me on this.

Thanks and Regards,
Venkatramanan V

Hi Venkat,


Thanks for your inquiry. Please try following sample html. You have to use HTML entities to produce these special characters for page break.

Page Break from here #$NP

Test it now


please feel free to contact us for any further assistance.

Best Regards,

Thanks for your response. But this works only when i put a text outside of

.

For ex., This works when “Test#$NPadfas
”. It is not working inside any contents of . Please help on this.

Also, is there anyway can we do pagebreak using CSS? because the solution what you have provided is a static one and we cannot keep replacing #$NP for many places. so please help on this.

Thanks and Regards,
Venkatramanan V

Hi Venkat,


Sorry for the inconvenience faced. I’m afraid currently Aspose.Pdf doesn’t support all CSS attributes. We have already logged a similar issue in our issue tracking system as PDFNEWNET-33850, for investigation and resolution. I’ve also linked your request to the issue id and you will be notified via this thread as soon as it resolves.

Best Regards,

The issues you have found earlier (filed as PDFNEWNET-33850) have been fixed in Aspose.Pdf for .NET 10.1.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(3)