admin管理员组文章数量:1415645
Using 'bower install pdfmake' I've downloaded the relevant files in order to work with pdfMake.
I want to work with this library in angular.
This is my sample code
angular controller:
$scope.pdfMaker = function(){
var docDefinition = { content: 'This is an sample PDF printed with pdfMake' };
pdfMake.createPdf(docDefinition).open();
}
html:
<button ng-click="pdfMaker()">run pdf</button>
What am I missing? why this does not working?
Using 'bower install pdfmake' I've downloaded the relevant files in order to work with pdfMake.
I want to work with this library in angular.
This is my sample code
angular controller:
$scope.pdfMaker = function(){
var docDefinition = { content: 'This is an sample PDF printed with pdfMake' };
pdfMake.createPdf(docDefinition).open();
}
html:
<button ng-click="pdfMaker()">run pdf</button>
What am I missing? why this does not working?
Share Improve this question edited Dec 11, 2014 at 21:00 john Smith asked Dec 9, 2014 at 20:13 john Smithjohn Smith 1,6058 gold badges37 silver badges54 bronze badges1 Answer
Reset to default 4found it! I missed to import of the pdfMake plugin in my home html file.
本文标签: javascriptUsing pdfmakegenerate pdf tool in AngularJSStack Overflow
版权声明:本文标题:javascript - Using pdfmake - generate pdf tool in AngularJS - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745175034a2646193.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论