no message
This commit is contained in:
parent
3ab46d7b53
commit
682a823f26
|
@ -29,10 +29,10 @@ import './../../assets/xml2json.min.js';
|
|||
declare var X2JS: any;
|
||||
|
||||
var flatten = require('flat');
|
||||
declare var $: any;
|
||||
// declare var $: any;
|
||||
|
||||
|
||||
import * as scroll from '../../assets/jquery.scrollTo.min.js';
|
||||
// import * as scroll from '../../assets/jquery.scrollTo.min.js';
|
||||
|
||||
|
||||
import '../../assets/custom.js';
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
|||
|
||||
//import * as $ from '../../../../node_modules/jquery/dist/jquery'
|
||||
|
||||
import * as scroll from '../../../assets/jquery.scrollTo.min.js';
|
||||
//import * as scroll from '../../../assets/jquery.scrollTo.min.js';
|
||||
|
||||
@Component({
|
||||
selector: 'table-of-content',
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import {Injectable} from '@angular/core';
|
||||
|
||||
declare var $ :any;
|
||||
// declare var $ :any;
|
||||
|
||||
import * as jsPDF from '../../../../node_modules/jspdf/dist/jspdf.min';
|
||||
// import * as jsPDF from '../../../../node_modules/jspdf/dist/jspdf.min';
|
||||
|
||||
@Injectable()
|
||||
export class PDFService {
|
||||
|
@ -14,13 +14,13 @@ export class PDFService {
|
|||
|
||||
toPDF(elementID : string, filename : string){
|
||||
|
||||
var pdf = new jsPDF();
|
||||
// var pdf = new jsPDF();
|
||||
|
||||
pdf.fromHTML($('#'+elementID).html(), 15, 15, {
|
||||
'width': 270
|
||||
//,'elementHandlers': specialElementHandlers
|
||||
});
|
||||
pdf.save(filename);
|
||||
// pdf.fromHTML($('#'+elementID).html(), 15, 15, {
|
||||
// 'width': 270
|
||||
// //,'elementHandlers': specialElementHandlers
|
||||
// });
|
||||
// pdf.save(filename);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue