summaryrefslogtreecommitdiff
path: root/qutebrowser/html/no_pdfjs.html
blob: 1fe90260ade3a7f6ddff796ac85db77106cf1074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{% extends "base.html" %}
{% block style %}
{{ super() }}
* {
  margin: 0px 0px;
  padding: 0px 0px;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: none;
  color: #333333;
  background-color: #EEEEEE;
  font-size: 1.2em;
}

#error-container {
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 20px;
  border: 1px solid #CCCCCC;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.20);
  border-radius: 5px;
  background-color: #FFFFFF;
  padding: 20px 20px;
}

#header {
  border-bottom: 1px solid #CCC;
}

.qutebrowser-broken {
  display: block;
  width: 100%;
}

span.warning {
  text-weight: bold;
  color: red;
}

td {
  margin-top: 20px;
  color: #555;
}

h1, h2 {
  font-weight: normal;
  color: #1e89c6;
  margin-bottom: 10px;
}

ul {
  margin-left: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

li {
  margin-top: 10px;
  margin-bottom: 10px;
}
{% endblock %}

{% block content %}
<div id="error-container">
  <table>
    <tr>
      <td style="width: 10%; vertical-align: top;">
        <img style="width: 100%; display: block; max-width: 256px;" src="{{ resource_url('img/broken_qutebrowser_logo.png') }}" />
      </td>
      <td style="padding-left: 40px;">
        <h1>No pdf.js installation found</h1>
        <p>Error while opening {{ url }}<br>
        <p id="error-message-text" style="color: #a31a1a;">qutebrowser can't find a suitable pdf.js installation</p></p>

        <p>It looks like you set <code>content.pdfjs</code>
          to <em>true</em> but qutebrowser can't find the required files.</p>

        <br>

        <h2>Possible fixes</h2>
        <ul>
          <li>
            Disable <code>content.pdfjs</code> and reload the page.
            You will need to download the pdf-file and open it with an external
            tool instead.
          </li>

          <li>
            If you have installed a packaged version of qutebrowser, make sure
            the required packages for pdf.js are also installed.
            <br/>
            The package is named <b>pdfjs</b> on Archlinux (AUR) and
            <b>libjs-pdf</b> on Debian.
          </li>

          <li>
            If you have installed a pdf.js package and qutebrowser still can't
            find it, please send us a report with your system and the package
            name, so we can add it to the list of supported packages.
          </li>

          <li>
            If you're running a self-built version or the source version, make
            sure you have pdf.js in <code>qutebrowser/3rdparty/pdfjs</code>.
            You can use the <code>scripts/dev/update_3rdparty.py</code> script
            to download the latest version.
          </li>

          <li>
            You can manually download the pdf.js archive
            <a href="https://mozilla.github.io/pdf.js/getting_started/#download">here</a>
            and extract it to <code>{{ pdfjs_dir }}</code>
            <br>
            <span class="warning">Warning:</span> Using this method you are
            responsible for yourself to keep the installation updated! If a
            vulnerability is found in pdf.js, neither qutebrowser nor your
            system's package manager will update your pdf.js installation.
            Use it at your own risk!
          </li>
        </ul>

        <p>
          If none of these fixes work for you, please send us a bug report so
          we can fix the issue.
        </p>
      </td>
    </tr>
  </table>
</div>
{% endblock %}