Skip to content

Commit 385b0aa

Browse files
committed
Use correct async path for basic example
1 parent e6150e8 commit 385b0aa

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

examples/basic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<script type="text/javascript" src="../libs/Deflate/adler32cs.js"></script>
1414
<script type="text/javascript" src="../libs/FileSaver.js/FileSaver.js"></script>
1515
<script type="text/javascript" src="../libs/Blob.js/BlobBuilder.js"></script>
16-
<script type="text/javascript" src="../libs/async.js"></script>
16+
<script type="text/javascript" src="../libs/async/lib/async.js"></script>
1717

1818
<script type="text/javascript" src="../jspdf.plugin.addimage.js"></script>
1919

jspdf.plugin.sillysvgrenderer.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,20 @@ jsPDFAPI.addSVG = function(svgtext, x, y, w, h) {
4545
var undef
4646

4747
if (x === undef || x === undef) {
48-
throw new Error("addSVG needs values for 'x' and 'y'")
48+
throw new Error("addSVG needs values for 'x' and 'y'");
4949
}
5050

5151
function InjectCSS(cssbody, document) {
52-
var styletag = document.createElement('style')
53-
styletag.type = 'text/css'
52+
var styletag = document.createElement('style');
53+
styletag.type = 'text/css';
5454
if (styletag.styleSheet) {
5555
// ie
56-
styletag.styleSheet.cssText = cssbody
56+
styletag.styleSheet.cssText = cssbody;
5757
} else {
5858
// others
59-
styletag.appendChild(document.createTextNode(cssbody))
59+
styletag.appendChild(document.createTextNode(cssbody));
6060
}
61-
document.getElementsByTagName("head")[0].appendChild(styletag)
61+
document.getElementsByTagName("head")[0].appendChild(styletag);
6262
}
6363

6464
function createWorkerNode(document){

out.pdf

34.5 KB
Binary file not shown.

todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Document <!-- ADD_PAGE -->
2+
- Document new jsPDF syntax. { orientation: 'portrait', etc.. }

0 commit comments

Comments
 (0)