Guest User

Untitled

a guest
Sep 25th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. $(el).find('tbody').find('tr').each(function(index,data) {
  2. rowCalc = index+1;
  3. if (rowCalc % 35 == 0){
  4. doc.addPage();
  5. page++;
  6. startRowPosition=startRowPosition+10;
  7.  
  8. }
  9. rowPosition=(startRowPosition + (rowCalc * 10)) - ((page -1) * 280);
  10.  
  11. $(this).filter(':visible').find('td').each(function(index,data) {
  12. if ($(this).css('display') != 'none'){
  13. if(defaults.ignoreColumn.indexOf(index) == -1){
  14. var colPosition = startColPosition+ (index * 50);
  15. doc.text(colPosition,rowPosition, parseString($(this)));
  16. }
  17. }
  18. });
  19. });
Add Comment
Please, Sign In to add comment