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

Allow to programmatically fit the page #173

Closed popod closed 7 years ago

popod commented 7 years ago

Is there a way to programmatically call the fit() function of angularjs-pdf directive from my controller ? If not, could this be implemented ?

Thanks

dennybiasiolli commented 7 years ago

Hi @popod, thanks and sorry for the late answer. Good news! In the current version of the directive you can call the fit() function in your controller's scope because the directive's scope is not isolated.

$scope.fit()

This is good for you, but we are working on a new version that isolate the directive's scope, stay tuned. 😄

popod commented 7 years ago

Okey thanks for answer