Skip to content

Commit c97c778

Browse files
committed
[api-minor] Produce non-translated/non-polyfilled builds by default
1 parent cd3f2d4 commit c97c778

File tree

9 files changed

+175
-97
lines changed

9 files changed

+175
-97
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ Feel free to stop by #pdfjs on irc.mozilla.org for questions or guidance.
2323

2424
### Online demo
2525

26-
+ https://mozilla.github.io/pdf.js/web/viewer.html
26+
+ Modern browsers: https://mozilla.github.io/pdf.js/web/viewer.html
27+
28+
+ Older browsers: https://mozilla.github.io/pdf.js/es5/web/viewer.html
2729

2830
### Browser Extensions
2931

docs/contents/getting_started/index.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,38 @@ Before downloading PDF.js please take a moment to understand the different layer
3838
## Download
3939

4040
<div class="row">
41-
<div class="col-md-6">
41+
<div class="col-md-4">
4242
<h3>Prebuilt</h3>
4343
<p>
4444
Includes the generic build of PDF.js and the viewer.
4545
</p>
46+
<!--
4647
<span class="GROUP_CLASS">
4748
<a type="button" class="btn btn-primary" href="https://github.com/mozilla/pdf.js/releases/download/vSTABLE_VERSION/pdfjs-STABLE_VERSION-dist.zip">Stable (vSTABLE_VERSION)</a>
4849
<a type="button" class="btn btn-warning HIDDEN_CLASS" href="https://github.com/mozilla/pdf.js/releases/download/vBETA_VERSION/pdfjs-BETA_VERSION-dist.zip">Beta (vBETA_VERSION)</a>
4950
</span>
51+
-->
5052
</div>
51-
<div class="col-md-6">
53+
<div class="col-md-4">
54+
<h3>Prebuilt (ES5-compatible)</h3>
55+
<p>
56+
Includes the generic build of PDF.js and the viewer.
57+
</p>
58+
<!--
59+
<span class="GROUP_CLASS">
60+
<a type="button" class="btn btn-primary" href="https://github.com/mozilla/pdf.js/releases/download/vSTABLE_VERSION/pdfjs-STABLE_VERSION-es5-dist.zip">Stable (vSTABLE_VERSION)</a>
61+
<a type="button" class="btn btn-warning HIDDEN_CLASS" href="https://github.com/mozilla/pdf.js/releases/download/vBETA_VERSION/pdfjs-BETA_VERSION-es5-dist.zip">Beta (vBETA_VERSION)</a>
62+
</span>
63+
-->
64+
<span class="GROUP_CLASS">
65+
<a type="button" class="btn btn-primary" href="https://github.com/mozilla/pdf.js/releases/download/vSTABLE_VERSION/pdfjs-STABLE_VERSION-dist.zip">Stable (vSTABLE_VERSION)</a>
66+
<a type="button" class="btn btn-warning HIDDEN_CLASS" href="https://github.com/mozilla/pdf.js/releases/download/vBETA_VERSION/pdfjs-BETA_VERSION-dist.zip">Beta (vBETA_VERSION)</a>
67+
</span>
68+
</div>
69+
<div class="col-md-4">
5270
<h3>Source</h3>
5371
To get a local copy of the current code, clone it using git:
54-
<pre><code>$ git clone git://github.com/mozilla/pdf.js.git
72+
<pre><code>$ git clone https://github.com/mozilla/pdf.js.git
5573
$ cd pdf.js
5674
</code></pre>
5775
</div>

examples/node/getinfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99

1010
// Run `gulp dist-install` to generate 'pdfjs-dist' npm package files.
11-
var pdfjsLib = require("pdfjs-dist");
11+
var pdfjsLib = require("pdfjs-dist/es5/build/pdf.js");
1212

1313
// Loading file from file system into typed array
1414
var pdfPath = process.argv[2] || "../../web/compressed.tracemonkey-pldi-09.pdf";

examples/node/pdf2png/pdf2png.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ NodeCanvasFactory.prototype = {
4848
},
4949
};
5050

51-
var pdfjsLib = require("pdfjs-dist");
51+
var pdfjsLib = require("pdfjs-dist/es5/build/pdf.js");
5252

5353
// Relative path of the PDF file.
5454
var pdfURL = "../../../web/compressed.tracemonkey-pldi-09.pdf";

examples/node/pdf2svg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var stream = require("stream");
1414
require("./domstubs.js").setStubs(global);
1515

1616
// Run `gulp dist-install` to generate 'pdfjs-dist' npm package files.
17-
var pdfjsLib = require("pdfjs-dist");
17+
var pdfjsLib = require("pdfjs-dist/es5/build/pdf.js");
1818

1919
// Loading file from file system into typed array
2020
var pdfPath = process.argv[2] || "../../web/compressed.tracemonkey-pldi-09.pdf";

external/dist/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ parsing and rendering PDFs.
77
This is a pre-built version of the PDF.js source code. It is automatically
88
generated by the build scripts.
99

10+
For usage with older browsers/environments, without support for modern features
11+
such as e.g. `async`/`await`, `Promise`, and `ReadableStream`,
12+
please refer to the `es5` folder.
13+
1014
See https://github.com/mozilla/pdf.js for learning and contributing.

0 commit comments

Comments
 (0)