pdf2json
pdf2json copied to clipboard
Problem with cache
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".