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
/** | |
* WkHtmlToPdf table vertically-splitting hack | |
* Script to automatically split wide HTML tables that doesn't fit the width of the PDF page generated | |
* by WkHtmlToPdf (or equivalent) | |
* | |
* The general idea come from Florin Stancu <niflostancu@gmail.com> and his script wkhtmltopdf.tablesplit.js | |
* The implementation is quite different because the splitting is done vertically on a excessive | |
* wide table, while the original script was meant to split horizontally an excessive long table | |
* | |
* To use, you must adjust pdfPage object's contents to reflect your PDF's |