i want use custom fonts print pdf.and there provision use custom fonts need declare font style initially.is there provision use system fonts or can download vfsfonts.js dynamically based on requirement.i mean have 100 users , requires different fontstyle...i want download specific vfsfont.js based on user. how can that? how trying download using angular2 http request -
download(){ this._wikipediaservice.downloadfile(); }
service class-
downloadfile(){ this.jsonp.get("https://raw.githubusercontent.com/bpampuch/pdfmake/master/build/vfs_fonts.js") .map(res => console.log(res)) .catch(console.log('err')); }
somebody please me...any appreciated , know code not meaningful.please adjust , plunker demo http://plnkr.co/edit/yiwfgr9z7luck296rmnn?p=preview tell me how download file using angular2?
Comments
Post a Comment