Sometimes I want to attach a PDF to an email in Thunderbird. I can drag and drop from Nautilus to Thunderbird, but if I already have the PDF open in Evince, it's nice not to have to hunt down its location.
Currently I am using "Open Containing Folder" and then dragging and dropping the PDF from Nautilus to Thunderbird, but I'd prefer to skip the additional steps and just use Evince directly.
Can this be done?
I am using Ubuntu 18.04, which comes with Evince version 3.28.4.
In the options menu in the upper right of the evince window, click on the 'share' symbol (the third one in the row):
This opens an empty mail window with the pdf as attachment. From there you either write your mail or you can drag and drop the attachment from one mail window to the other.
Try File->Save-As from Evince. That will open a dialog that offers to save the PDF with the same filename but instead of going through with the save, just copy the full path to your clipboard (or select the PDF in the save-as dialog and ctl-c to copy). Note that even if you copy a file, it will paste as a path in a text input field. Now in Thunderbird, when you add an attachment, just past the full path of the PDF that you have in your clipboard. Done.
In short, no, there is no direct possibility to add a PDF file viewed in Evince as an attachment to an already composed mail in Thunderbird (or other email client). This would need to be implemented in Evince.
Still, there are shortcuts that eliminate the need to manually hunt down the PDF that is already open in your folder tree in a file manager or in a file dialog.