Skip to content

Commit 928511d

Browse files
committed
fix docs
1 parent 2d2790f commit 928511d

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ complex documents with a very small amount of code. For more, see the `demo` fol
128128

129129
There are three ways to use PDFKit in the browser:
130130

131-
- Use [Browserify](http://browserify.org/). See demo [source code](demo/browser.js) and [build script](https://github.com/foliojs/pdfkit/blob/master/package.json#L56)
132-
- Use [webpack](https://webpack.js.org/). See [complete example](examples/webpack).
131+
- Use [Browserify](http://browserify.org/). See demo [source code](https://github.com/foliojs/pdfkit/blob/master/examples/browserify/browser.js) and [build script](https://github.com/foliojs/pdfkit/blob/master/package.json#L62)
132+
- Use [webpack](https://webpack.js.org/). See [complete example](https://github.com/foliojs/pdfkit/blob/master/examples/webpack).
133133
- Use prebuilt version. Distributed as `pdfkit.standalone.js` file in the [releases](https://github.com/foliojs/pdfkit/releases) or in the package `js` folder.
134134

135135
In addition to PDFKit, you'll need somewhere to stream the output to. HTML5 has a

examples/browserify/browser.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,10 @@ <h1>PDFKit Browser Demo</h1>
4040
<iframe width="600" height="775"></iframe>
4141
<script src="bundle.js"></script>
4242
<script>
43-
(function (i, s, o, g, r, a, m) {
44-
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
45-
(i[r].q = i[r].q || []).push(arguments)
46-
}, i[r].l = 1 * new Date(); a = s.createElement(o),
47-
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
48-
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
43+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
44+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
45+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
46+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
4947
ga('create', 'UA-48340245-1', 'pdfkit.org');
5048
ga('send', 'pageview');
5149
</script>

0 commit comments

Comments
 (0)