Trying to print an html page containing a table usingUIMarkupTextPrintFormatter
. For some strange reason, the last row gets pushed to the second page when there is plenty of space (2-3inches) left on the first page. Even worse, when I remove the last row from the html table, the now last row, which is a couple inches longer than the deleted one, is split between page 1 and 2 when it clearly fit on page 1 before deleting the row. Header and Footer height are both set to zero. Insets also zero.
The same html fits perfectly on 1 page when using a UIWebView and printing using
UIViewPrintFormatter *formatter = [webview viewPrintFormatter];
But this requires to show the UIWebView (so it gets rendered) and I don't want to do this.
Any insight to this is greatly appreciated.