forked from parallax/jsPDF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
136 lines (106 loc) · 6.39 KB
/
index.html
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
133
134
135
136
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jsPDF - Create PDFs with HTML5 JavaScript Library</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Bootstrap -->
<link href="./examples/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="./examples/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<!-- Editor CSS -->
<link href="./examples/css/editor.css" rel="stylesheet">
<!-- See closing body for JS -->
<script src="http://use.edgefonts.net/source-code-pro.js"></script>
</head>
<body>
<style>#forkongithub a{background:#000;color:#fff;text-decoration:none;font-family:arial, sans-serif;text-align:center;font-weight:bold;padding:5px 40px;font-size:1rem;line-height:2rem;position:relative;transition:0.5s;}#forkongithub a:hover{background:#333;color:#fff;}#forkongithub a::before,#forkongithub a::after{content:"";width:100%;display:block;position:absolute;top:1px;left:0;height:1px;background:#fff;}#forkongithub a::after{bottom:1px;top:auto;}@media screen and (min-width:800px){#forkongithub{position:absolute;display:block;top:0;right:0;width:160px;overflow:hidden;height:200px;}#forkongithub a{width:160px;position:absolute;top:40px;right:-60px;transform:rotate(45deg);-webkit-transform:rotate(45deg);box-shadow:4px 4px 10px rgba(0,0,0,0.8);}}</style><span id="forkongithub"><a href="https://github.com/MrRio/jsPDF">Star me on GitHub</a></span>
<div class="container">
<div class="masthead">
<div class="pull-right">
<div class="tweet-buttons">
<a href="https://twitter.com/share" class="twitter-share-button" data-via="MrRio" data-size="large">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<a href="https://twitter.com/MrRio" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @MrRio</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<!--a class="btn btn-primary btn-large" href="http://jspdf.com/downloads/jsPDF-0.9.0rc2.zip">Download Now</a>
<p class="muted" style="text-align: right;">Version 0.9.0rc2</p-->
<a class="btn btn-primary btn-large" href="https://github.com/MrRio/jsPDF">Download Now</a>
<p class="muted" style="text-align: right;" id="dversion">Version 0.9.0rc2</p>
</div>
<h1 class="muted">jsPDF</h1>
<h4>HTML5 JavaScript PDF generation library from <a href="http://twitter.com/MrRio">@MrRio</a> at <a href="http://parall.ax">Parallax</a></h4>
</div>
<div class="row-fluid">
<div class="span6" style="float: right">
<iframe class="preview-pane" type="application/pdf" width="100%" height="650" frameborder="0" style="position:relative;z-index:999"></iframe>
</div>
<div class="span5 no-gutter">
<h2>Have a play.</h2>
<p>A HTML5 client-side solution for generating PDFs. Perfect for event tickets, reports, certificates, you name it! </p>
<p><b>No servers were used in the making of this demo.</b></p>
<div class="template-picker">
<label for="template">Choose example</label>
<select id="template" name="template">
<option>Hold your horses...</option>
</select>
</div>
</div>
<div id="editor" class="bypass"></div>
<div class="controls">
<div class="pull-right">
<!--<a href="#" class="btn btn-primary">Download Your Code</a>-->
<a href="#" class="btn btn-primary download-pdf">Download PDF</a>
</div>
<label class="checkbox">
<input type="checkbox" id="auto-refresh" checked="checked"> Auto refresh on changes?
</label>
<a href="#" class="run-code hide btn btn-success">Run Code</a>
<div class="alert hide">
Auto refresh disabled for this
</div>
</div>
</div>
<div class="clerfix"></div>
</div> <!-- /container -->
<footer>© 2017 James Hall - <a href="https://parall.ax/pages/privacy-policy">Privacy Policy</a></footer>
<!-- Scripts down here -->
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<!-- Code editor -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.5/ace.js" type="text/javascript" charset="utf-8"></script>
<!-- Scripts in development mode -->
<script type="text/javascript" src="dist/jspdf.debug.js"></script>
<!--script type="text/javascript" src="jspdf.js"></script>
<script type="text/javascript" src="./libs/FileSaver.js/FileSaver.js"></script>
<script type="text/javascript" src="./libs/Blob.js/Blob.js"></script>
<script type="text/javascript" src="./libs/Blob.js/BlobBuilder.js"></script>
<script type="text/javascript" src="./libs/deflate.js"></script>
<script type="text/javascript" src="./libs/adler32cs.js/adler32cs.js"></script>
<script type="text/javascript" src="./plugins/addimage.js"></script>
<script type="text/javascript" src="./plugins/from_html.js"></script>
<script type="text/javascript" src="./plugins/ie_below_9_shim.js"></script>
<script type="text/javascript" src="./plugins/svg.js"></script>
<script type="text/javascript" src="./plugins/split_text_to_size.js"></script>
<script type="text/javascript" src="./plugins/standard_fonts_metrics.js"></script-->
<!-- Editor -->
<script type="text/javascript" src="./examples/js/editor.js"></script>
<!-- Analytics -->
<script type="text/javascript">
$(document).ready(function() {
if(jsPDF && jsPDF.version) {
$('#dversion').text('Version ' + jsPDF.version.split('T').shift());
}
});
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32767308-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>