Open linked pdf, docx, epub, audio/video, etc. in external Program
As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.
- 2.1.15-2.1.29 (Updated 2022-03-07)
- 2.1.30-2.1.44 (Updated 2022-03-07)
- 2.1.45-2.1.54+ (Updated 2022-07-15)
To download this add-on, please copy and paste the following code into Anki 2.1:
If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.
All Anki 2.1.x Add-Ons Contact Author
Initially I had a problem with Foxit reader on Windows not going to the pages that it was supposed to, but I found the solution in the forum. Here is the link in case someone else encounters this problem: https://forums.ankiweb.net/t/open-linked-pdf-docx-epub-audio-video-etc-in-external-program-official-thread/15723/7
however this is 1 card 1 hyperlink, can it be 1 card, multiple hyperlink? i.e.
what is duke's criteria? (hyperlink to IE.pdf #page 123)
what is the treatment of IE? (hyperlink to IE.pdf #page 124)
The downside is that I haven't tested this a lot and don't have time for this.
But you could also rely on general tools like a powerful clipboard manager or some scripting utility where you can set a global custom shortcut that runs a custom workflow on the selected text. I.e. it copies your selection, splits it on "____", removes the preceeding "__". then the first part is combined with your pdf folder and then a pdf viewer is called ... on windows you could use AHK . also check clipboard managers that allow you to manipulate the text from your clipboard.
An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.
When loading 'Open linked pdf docx epub audiovideo etc in external Program':
Traceback (most recent call last):
File "aqt/addons.py", line 230, in loadAddons
File "/home/m830/.local/share/Anki2/addons21/879473266/__init__.py", line 80, in <module>
from . import config_window
File "/home/m830/.local/share/Anki2/addons21/879473266/config_window.py", line 30, in <module>
from .config_add_edit_entry import (
File "/home/m830/.local/share/Anki2/addons21/879473266/config_add_edit_entry.py", line 21, in <module>
from .config_defaults_menu import (
File "/home/m830/.local/share/Anki2/addons21/879473266/config_defaults_menu.py", line 5, in <module>
from anki.utils import (
ImportError: cannot import name 'point_version' from 'anki.utils' (/usr/local/share/anki/bin/anki/utils.pyc)
attach a video
how i can use it
I downloaded the gif, then using an online converter to make mp4 files.
Thank you very much!
11/10 would kiss the dev.
I agree that opening specific positions of pdf pages would be much more useful. But as far as I know the regular pdf viewers like acrobat, sumatra or okular don't have a command line option for exact page positions. So it wouldn't work with those. But if you do know such a program let me know.
Maybe this could be done with mozillas pdfjs as a modification of my https://ankiweb.net/shared/info/319501851 - but then you'd depend on this one add-on and pdfjs is always kind of slow for me.
Would be great if one could add several PDF links to the same Anki note, by seperating them with a new line, maybe.
The update from 2020-12-13 has some options for this.
"several PDF links to the same Anki note, by seperating them with a new line" would be useful. I didn't implement this yet because this would have been more complicated and required a fundamental redesign about how you enter the page numbers.
If you find a bug in the new version let me know in the anki forum or on github.
Author was nice and helpful in his Github page.
I am a Mac User. I really need this add-on. It's not working on a Mac. crying
I'd like to get you a pulse. Haha
While your creation is VERY useful and EXTREMELY impressive, I believe that the instructions on it's operation could be improved. Using gifs to showcase the setup is a great idea, but your gifs are so long and move so fast that I was forced to sit through the entire thing multiple times to finally get it working.
I would suggest breaking up your gifs into tiny bite sized chunks, this way people can focus on one step at a time without getting lost or overwhelmed, and they aren't forced to watch the entire process several times.
Let me say again though that I think your work here is an absolute game changer.
I made three new gifs about setting up the add-on. They are still long but should be slower. I now mention twice that you can download and save the gifs. I use gifs because gifs are the only video I can embed on ankiweb.
Are these new screencasts more useful?
I just updated the description with this paragraph: "You can download the following two screencasts (gifs) by right-clicking them. Then select "save image as" from the context menu (tested in Chrome and Firefox). Then open these gifs with a program that supports pausing gif files. On Windows I use the popular image viewer IrfanView that can also display gifs. IrfanView has "Options->Start/Stop Animation" and you can adjust the speed with [SHIFT][CTRL][+] or [SHIFT][CTRL][-]. On Linux I use mpv."
Another problem is that when it openthe MS word file, a new blank page is opened instead of the specified word file.
Thanks for your work again, according to this idea, can it open any external file in anki? This is a great thing. After all, not all knowledge is suitable for card(question and answer), and the editing ability on anki is too weak.
I don't know how to reply to you on github, my email is firstname.lastname@example.org
update: Both problems have been solved in the latest version.
Thank you very much!