simov / screenshot-capture

Screenshot Capture / Browser Extension
Other
234 stars 81 forks source link

Shortcut key to 'capture viewport' and Save Format "To Clipboard (Binary Image)" don't work on pdf URL #17

Open Kyokutou opened 11 months ago

Kyokutou commented 11 months ago

I commented on the Chrome extension page, but I should have opened an issue because I have github account.

Shortcut key to 'capture viewport' and Save Format "To Clipboard (Binary Image)" don't work on pdf, such as https://tdnet-pdf.kabutan.jp/20230810/140120230810539937.pdf.

Steps to reproduce:

I am building a simple Chrome extension to copy the visible area to the clipboard with a shortcut, but the same error happens and I can't copy the image on the pdf URL though I can copy the image on the non-pdf URL.

simov commented 8 months ago

I have updated the documentation about this case here https://github.com/simov/screenshot-capture#caveats To capture PDF files you will have to use the crop method instead and select the entire screen area. I have not been able to get it working when the PDF document is not focused as in the case of capturing the viewport.