pdf2json icon indicating copy to clipboard operation
pdf2json copied to clipboard

Problem with cache

Open DBarthe opened this issue 9 years ago • 0 comments

Hello,

I have a PDF that changes regularly, and I load it with loadPDF() almost every time it changes, within the same running instance.

loadPDF() is caching all files it has loaded, based on their path, but not on the last modification date. The cached data are stored internally in a private var named _binCache, not available from the outside.

Would be nice to improve cache system with modification date, or to allow the user to clear this cache.

(otherwise thanks for this tool !)

EDIT: A way to solve this problem without touching the existing code is to use parseBuffer(), after having opened the file "manually".

DBarthe avatar Nov 20 '16 12:11 DBarthe