Guest User

Untitled

a guest
Feb 21st, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. $scope.export = function() {
  2. html2canvas(document.getElementById('comprobante'), {
  3. onrendered: function(canvas) {
  4. var data = canvas.toDataURL();
  5. docDefinition = {
  6. content: [{
  7. image: data,
  8. fit: [450, 900 * 2]
  9. }]
  10. };
  11. pdfMake.createPdf(docDefinition)
  12. .download("test.pdf");
  13. },
  14. width:1600,
  15. height:5000
  16. });
  17. }
Add Comment
Please, Sign In to add comment