You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.
Canvas size is not 100% it's container, causing visual errors. It is not resizing neither, which is absolutely not responsive...
I'm trying to convert original viewer.js into an angularjs service, but I'm not too experienced with Angular... The far I went is allowing blobs to being rendered instead of only pdf url, removing the SRC attribute of the directive and injecting directly inside my controller...
Any clues on this? It would be cool to make mousewheel and that available too, because ng-pdfviewer is too simple and no browser friendly at all....
The text was updated successfully, but these errors were encountered:
If you want to the rendered pdf to be responsive, just add width: 100% (or so) to the canvas inside of pdfviewer and it will become responsive, maintaining the aspect ratio of the canvas (because the lib sets width and height on the canvas element). You can also do min-width etc.
Canvas size is not 100% it's container, causing visual errors. It is not resizing neither, which is absolutely not responsive...
I'm trying to convert original viewer.js into an angularjs service, but I'm not too experienced with Angular... The far I went is allowing blobs to being rendered instead of only pdf url, removing the SRC attribute of the directive and injecting directly inside my controller...
Any clues on this? It would be cool to make mousewheel and that available too, because ng-pdfviewer is too simple and no browser friendly at all....
The text was updated successfully, but these errors were encountered: