This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import reportlab | |
from reportlab import platypus | |
from reportlab.lib.utils import annotateException, IdentStr, flatten, isStr, asNative, strTypes | |
class BigDataTable(platypus.Table): | |
def _splitRows(self, availHeight): | |
n = self._getFirstPossibleSplitRowPosition(availHeight) | |
repeatRows = self.repeatRows | |
if n <= (repeatRows if isinstance(repeatRows, int) else (max(repeatRows) + 1)): return [] |