|
local has_image_ext = str:match("^.*%.(png)$") ~= nil |
I found drag-n-drop a .pdf file is not supported in this plugin, and found the culprit is at above line which only takes certain image types. Since img-clip provides the process_cmd option, it is possible to convert a one-page pdf file to be an image, and the usage is unlimited.
Thanks for considering this issue.