Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(el).find('tbody').find('tr').each(function(index,data) {
- rowCalc = index+1;
- if (rowCalc % 35 == 0){
- doc.addPage();
- page++;
- startRowPosition=startRowPosition+10;
- }
- rowPosition=(startRowPosition + (rowCalc * 10)) - ((page -1) * 280);
- $(this).filter(':visible').find('td').each(function(index,data) {
- if ($(this).css('display') != 'none'){
- if(defaults.ignoreColumn.indexOf(index) == -1){
- var colPosition = startColPosition+ (index * 50);
- doc.text(colPosition,rowPosition, parseString($(this)));
- }
- }
- });
- });
Add Comment
Please, Sign In to add comment