# Pdf viewer \[Official Support Thread\]

**URL:** <https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977>\
**Category:** Add-ons\
**Created:** [July 13, 2020, 6:39pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977 "2020-07-13T18:39:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [July 13, 2020, 6:39pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/1 "2020-07-13T18:39:59Z")

</div>

If you have a problem with the add-on [pdf viewer](https://ankiweb.net/shared/info/319501851) post in this thread. This way I get notified. If you make a new thread I will likely miss it.

---

<div class="post-metadata">

**Author:** ![imeed166](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@imeed166](https://forums.ankiweb.net/u/imeed166)\
**Post date:** [September 6, 2020, 6:00pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/2 "2020-09-06T18:00:56Z")

</div>

sometimes when i click the link nothing happens even though the file name matches the one in the folder. what is causing this behavior ? i’m using Anki 2.1.33 (thank you very much)

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [September 10, 2020, 1:01pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/3 "2020-09-10T13:01:56Z")

</div>

just for future reference: the bug [imeed166](https://forums.ankiweb.net/u/imeed166) reported is discussed at [https://github.com/ijgnd/anki\_\_pdf\_viewer\_with\_pdfjs/issues/3](https://github.com/ijgnd/anki__pdf_viewer_with_pdfjs/issues/3)

---

<div class="post-metadata">

**Author:** ![Swedennut](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Swedennut](https://forums.ankiweb.net/u/Swedennut)\
**Post date:** [October 6, 2021, 5:13am UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/4 "2021-10-06T05:13:56Z")

</div>

Hi! I will start by saying that I am a big fan of this add-on, and there hesitate to switch to an alternative. The problem I’m facing is that when I open a pdf link in an anki card, the pdf document won’t load (i.e. the pdf reader is completely white). I have tried to re-install it etc, but unfortunately nothing has worked so far.

 ![Anki](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/5/5f05b172341b2ef6a84c0b3a5076eb6c96cd3f5f.png)

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [October 6, 2021, 6:32pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/5 "2021-10-06T18:32:54Z")

</div>

@Swedennut : I need more info. Read [When problems occur / Problems / Knowledge Base - AnkiMobile/AnkiWeb Support](https://anki.tenderapp.com/kb/problems/when-problems-occur) Could you report the following info:

- I assume this applies to all your pdfs (and not just one)
- disable all other add-ons and restart and try again.
- when did the problem start? I updated the add-on about 10 days ago. Anki tries to update add-ons once a day. So if you use Anki regularly you should have been offered an update for my add-on about 9 days ago. Did it work after this?
- I’d reset the config and manually redo it (or if you have a proper backup of all your user data on your computer with real backu software) restore the config from a backup, see [Managing Files - Anki Manual](https://docs.ankiweb.net/files.html?highlight=file%20loc#file-locations)
- Did you recently update Anki or install or update other add-ons?
- If you have a proper backup you could delete my most recent version of my add-on and then restore the old version of my add-on (when it was known to work) from your backups and restart and try again.

---

<div class="post-metadata">

**Author:** ![Swedennut](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Swedennut](https://forums.ankiweb.net/u/Swedennut)\
**Post date:** [October 7, 2021, 3:45am UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/6 "2021-10-07T03:45:34Z")

</div>

Absolutely! I’ve tried the steps mentioned in the guide, but unfortunately the problem still remains.

- Yes, it applies to every pdf
- Sadly disabling the other add-ons did not solve the problem
- According to my review history it happened at 28 september, to my memory the bug appeared after updating the add-on!
- I ran Anki 2.1.44 when the prblem appeard, i have since updated to 2.1.48 in the hope that the problem would disappear

Unfortunately I do not have a proper back-up!  
I hope this information helps! 🙂

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [October 7, 2021, 5:40pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/7 "2021-10-07T17:40:42Z")

</div>

I’ve published some versions of my addon at [Release some versions · ijgnd/anki\_\_pdf\_viewer\_with\_pdfjs · GitHub](https://github.com/ijgnd/anki__pdf_viewer_with_pdfjs/releases/tag/2021-09)

[319501851\_\_2021-07-11\_\_\_pdf.viewer.ankiaddon](https://github.com/ijgnd/anki __pdf_viewer_with_pdfjs/releases/download/2021-09/319501851__ 2021-07-11___pdf.viewer.ankiaddon) is the file that was on ankiweb after 2021-07-11. If this version does not work for you I have no idea where the problem lies with my add-on.

the file [319501851\_\_2021-09-26\_\_\_pdf.viewer.ankiaddon](https://github.com/ijgnd/anki __pdf_viewer_with_pdfjs/releases/download/2021-09/319501851__ 2021-09-26___pdf.viewer.ankiaddon) is the version that I had on ankiweb for two weeks in September/October 2021 that has two changes: some changes to my code and a new version of the mozilla pdfjs pdf-viewer. In mid October 2021 I removed it from ankiweb because it didn’t work for multiple people.

If the new version crated the problem it could be that the problem is with my code changes or that for some reason your pdf doesn’t work with the new bundled pdf viewer version.

So I made a third package: [319501851\_\_2021-07-11\_\_\_pdf.viewer\_\_\_\_my\_july\_code\_with\_new\_pdf\_viewer\_from\_2021-09-26\_version.ankiaddon](https://github.com/ijgnd/anki __pdf_viewer_with_pdfjs/releases/download/2021-09/319501851__ 2021-07-11 ___pdf.viewer____ my_july_code_with_new_pdf_viewer_from_2021-09-26_version.ankiaddon) That’s my old code with the new viewer. Could you try with this package: Does it work for you?

After installing restart you computer. When Anki checks for updates once a day it will probably want to overwrite this old version of the add-on. You should be able to trick anki by changing this line in this file [anki\_\_pdf\_viewer\_with\_pdfjs/manifest.json at b915635bfc385b81f55107a12f179082ca14e574 · ijgnd/anki\_\_pdf\_viewer\_with\_pdfjs · GitHub](https://github.com/ijgnd/anki__pdf_viewer_with_pdfjs/blob/b915635bfc385b81f55107a12f179082ca14e574/src/manifest.json#L2) to another number.

---

<div class="post-metadata">

**Author:** ![Swedennut](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Swedennut](https://forums.ankiweb.net/u/Swedennut)\
**Post date:** [October 9, 2021, 3:38am UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/8 "2021-10-09T03:38:01Z")

</div>

Hi, I really appreciate your help, but it seems like the links you posted does not work (I’m directed to a 404 page), I have a theory, it may be because the tags are set to private (if that is possible on Github), I can’t see any published tags at all!

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [October 9, 2021, 9:06am UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/9 "2021-10-09T09:06:37Z")

</div>

@Swedennut: I’ve updated the links in my post from yesterday.

---

<div class="post-metadata">

**Author:** ![Swedennut](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Swedennut](https://forums.ankiweb.net/u/Swedennut)\
**Post date:** [October 10, 2021, 12:35pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/10 "2021-10-10T12:35:17Z")

</div>

I’ve now tried the three packages, the first one worked 🙂 And i really want to thank you, this is probably the best support regarding a technical issue that I have ever got! 🙂

Regarding the other two packages, neither of them worked, it seems, from my point of view, that the fault lies in the new update of the pdf viewer. I am of couse willing to test further updates to this add-on if you want make sure that this (or similar) problems does not exist.  
Thanks again for your help 🙂

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [October 10, 2021, 9:13pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/11 "2021-10-10T21:13:45Z")

</div>

thanks for the kind words.

I’m still wondering why this is happening since all the pdfs I tested work in the most recent version for me.

when a new version of pdfjs is released I’ll bundle it and add some extra code for debugging that I’ll send you.

---

<div class="post-metadata">

**Author:** ![hassan19](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/hassan19/32/6968_2.png) [@hassan19](https://forums.ankiweb.net/u/hassan19)\
**Post date:** [October 14, 2021, 4:15pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/12 "2021-10-14T16:15:48Z")

</div>

Only I find A white page

EDIT:- thanks a bunch  
I read a whole thread and find the solution

i deleted the ADDon and operate this version [319501851\_\_2021-07-11\_\_\_pdf.viewer.ankiaddon]

and everything is being OK

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [October 14, 2021, 9:31pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/13 "2021-10-14T21:31:51Z")

</div>

@hassan19 : thanks for the info. Now I have two reports that my version from two weeks ago is broken. So I reverted the ankiweb listing back to the version from july that you reported as working. Anki will report to you in the next 24hours that a new version is available (because ankiweb detected that Iuploaded a file after you installed yours) which should be the same version you already have.

Let me know if the “updated” version (which is actually the old version from July) causes problems for you (which I don’t expect).

---

<div class="post-metadata">

**Author:** ![hassan19](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/hassan19/32/6968_2.png) [@hassan19](https://forums.ankiweb.net/u/hassan19)\
**Post date:** [October 15, 2021, 12:57pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/14 "2021-10-15T12:57:40Z")

</div>

hallo,Sir  
I hope that you are at the best

the last update totally ok.

Much appreciated.

---

<div class="post-metadata">

**Author:** ![hassan19](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/hassan19/32/6968_2.png) [@hassan19](https://forums.ankiweb.net/u/hassan19)\
**Post date:** [October 24, 2021, 3:41pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/15 "2021-10-24T15:41:59Z")

</div>

Hi, @ijgnd  
I prepared this little contribution for the growing popularity of this great ADDon.  
because this helpful ADDon makes my study easier and saves time for Adding Cards and Notes.

[![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/d/d44b1490f07dc96fc262e55854c4c494b0f17702.jpeg "PDF Viewer ADDon for ANKI") ](https://www.youtube.com/watch?v=wQmAtxS59mU)

---

<div class="post-metadata">

**Author:** ![noty](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@noty](https://forums.ankiweb.net/u/noty)\
**Post date:** [December 28, 2022, 6:55pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/16 "2022-12-28T18:55:34Z")

</div>

Is there a way that the pdf viewer will not turn the text into dark mode for me?

> **Edit: I found the solution.**
>
> Change the definition in the first line to `false`  
> `"apply night mode hacks to invert colors by default": false,`

Or alternatively, how can I set it to open Chrome’s built-in viewer?

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [December 29, 2022, 2:02pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/17 "2022-12-29T14:02:17Z")

</div>

set `"use pdfjs to show pdfs in Anki 2.1.50+ (with pyqt6)"` to `false `

Note: then you are not using the chrome pdf viewer, i.e. view the pdf in the program chrome. You still only get an additional anki window. It’s just that this window uses a tool to show the pdf that from a technical point of view is closely related to the software that chrome uses. This does not mean that it offers exactly the same functionality.

---

<div class="post-metadata">

**Author:** ![noty](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@noty](https://forums.ankiweb.net/u/noty)\
**Post date:** [April 19, 2023, 10:25am UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/18 "2023-04-19T10:25:39Z")

</div>

Thank you for this plugin! Very useful for me.  
Is it possible to adapt it to this [plugin as well](https://ankiweb.net/shared/info/1960039667)?

That is: that when the notes are presented live, it will be possible to click on the pdf link. At the moment it is not possible

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [April 23, 2023, 3:15pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/19 "2023-04-23T15:15:36Z")

</div>

it should be possible and I see that this can be useful but I wouldn’t use this feature and I don’t have time so I won’t implement this myself.

---

<div class="post-metadata">

**Author:** ![r0dr1gaj](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/r0dr1gaj/32/10213_2.png) [@r0dr1gaj](https://forums.ankiweb.net/u/r0dr1gaj)\
**Post date:** [January 19, 2026, 6:27pm UTC](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977/20 "2026-01-19T18:27:55Z")

</div>

Accent mark in you pdf file title will get an error

If you have a letter with an accent mark in you pdf file title you get an error when you click on the link.

This will **not** work: _ **LingQ Pedro Sánchez copy** _\_

This will work: _ **LingQ Pedro Sanchez copy** _\_

I also reported this in github: [Accent mark in you pdf file title will get an error · Issue #9 · ijgnd/anki\_\_pdf\_viewer\_with\_pdfjs · GitHub](https://github.com/ijgnd/anki__pdf_viewer_with_pdfjs/issues/9)

[Next page](https://forums.ankiweb.net/t/pdf-viewer-official-support-thread/977.md?page=2)
