sayanee / angularjs-pdf

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

How to enable caching? #208

Open darshantejani007 opened 6 years ago

darshantejani007 commented 6 years ago

I am using this angularjs-pdf in IONIC framework ( which is entirely based on AngularJS). Everything works fine, except when I change the page, it flickers a lot and takes time to render, going from top to bottom. Even if the page is previously visited, it takes the same time to load it. Is there a way to simply cache at least the pages which are already rendered once? Please let me know if somehow I'm doing this wrong!

dennybiasiolli commented 6 years ago

Hi @darshantejani007, page is not cached, every time you change page, the page is reloaded and re-rendered.

darshantejani007 commented 6 years ago

@dennybiasiolli Thanks! That much I understood. Now is there a way to flip the switch of caching? I want to enable it!