fuxialexander / org-pdftools

A custom org link type for pdf-tools
GNU General Public License v3.0
335 stars 36 forks source link

Open a pdf(view) link of a djvu file (mistakenly) causes severe memory allocation #35

Open firmart opened 4 years ago

firmart commented 4 years ago

I just found out an issue comes from org-pdfview inherited by org-pdftools. If one mistakenly opens a link [[pdf:xxxx.djvu][DJVU file]], it causes severe memory allocation and freezes the PC. Since djvu, ps or pdf are all somehow usual, I think it's better to check in the open function if it really deals with a pdf before trying open it.

It's a bit annoying to accidentally make the mistake and make the PC freeze.