This file contains hidden or 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
| createPdf(): void { | |
| this.isLoaded = true; | |
| var data_2,data_3,data_4,data_5,data_6,data_7,data,elem; | |
| var data_1 = []; | |
| var content = []; | |
| function home() { | |
| var home = document.getElementById('home'); | |
| var homeDef = $.Deferred(); | |
| html2canvas(home).then(function(canvas) { | |
| home.appendChild(canvas); |
This file contains hidden or 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 { Component, OnInit, ElementRef, ViewChild,Input, Output, EventEmitter } from '@angular/core'; | |
| import { Http,Response,Headers } from '@angular/http'; | |
| import {NgForm, FormBuilder,ReactiveFormsModule,FormGroup} from '@angular/forms'; | |
| import { Observable,Subscription } from 'rxjs/Rx'; | |
| import { Router, NavigationStart, ActivatedRoute,Params } from '@angular/router'; | |
| import {QuoteService} from 'app/services/quote.service'; | |
| import { LoadpageService } from 'app/services/loadpage.service'; | |
| import { asEnumerable } from 'linq-es2015'; | |
| import { Inclusion } from './inclusions'; | |
| import { Optional } from './optionals'; |
This file contains hidden or 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
| createPdf(): void { | |
| var data_1; | |
| var data_2; | |
| var data_3; | |
| var data_4; | |
| var data; | |
| var p1 = new Promise((resolve, reject) => { | |
| html2canvas(document.getElementById('optionals'), { | |
| onrendered: function (canvas) { | |
| console.log(canvas); |