shg / org-inline-pdf.el

Inline PDF previewing for Org
GNU General Public License v3.0
48 stars 8 forks source link

Select a paragraph or a region in a page #14

Open theottm opened 8 months ago

theottm commented 8 months ago

Hi,

thanks for the nice package, I was looking for something like this for quite some time. I'm just thinking out loud on some additional feature this package could have:

Being able to select page is quite nice already, but I would like to even select a rectangle on a page. I have no idea if this is realistic, but I would be willing to get my hands dirty on implementing it if it is. Probably this could be achieved by passing args to the conversion tool if it supports this kind of rectangular selection.

One even less realistic dream feature would be to even have links in the pdf work properly also in the org buffer. So one could for example take the picture of a table of content and it would be clickable in org. Probably this is less realizable using the current conversion tool and would need to make the image a clickable svg or so - I saw some experimental things making clickable svg in emacs, though so it could still be possible. Maybe one could also just embbed a pdf-view buffer inside the org buffer - this I don't even know if it is possible, never heard of something similar.

shg commented 8 months ago

Thank you for the suggestions. I agree that allowing to specify a region in the PDF to display must be a good addition. Actually it is technically relatively easily possible but for that it is necessary to first support pdftocairo #1. I will work on it when I have time... The second suggestion is also very interesting idea. I too am not sure whether it is possible, though. I need some testing how embedded svg works in Emacs.