sayanee / angularjs-pdf

:page_facing_up: An AngularJS directive <ng-pdf> to display PDF files with PDFJS
http://sayan.ee/angularjs-pdf/
MIT License
494 stars 248 forks source link

resize of canvas not working, width and height styles will be overwritten by angular-pdf code #213

Open kalebakula opened 6 years ago

kalebakula commented 6 years ago

Need a solution to resize the canvas so that we can avoid vertical scroll bar. We are applying custom styles dynamically after pdf loads(in on load event). But width and height styles are getting overwritten by angular-pdf code

Please comment on this

dennybiasiolli commented 6 years ago

Hi @kalebakula, Have you tried using scale attribute in the directive? You need to apply custom styles and then load pdf, so scale attribute can work in your final layout.