Stop Page Breaking in the middle of text/data

I know there is a way to set page breaks but is there a way that aspose can tell that it is in the middle of writing out a peice of text and not page break in the middle? I would like it to see where it is on the page and if it is at the very bottom write it all on the next page?? Our .pdf files look very bad because it cuts the data off. I will email a .xsl file.

Thanks for your help!

Dear charmer,

Thank you for considering aspose.

I can’t generate pdf using your xsl without xml. Would you please send me your pdf file directly?