Skip to content

Commit

Permalink
Create gh-pages branch via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRio committed Dec 30, 2012
1 parent 6d0697d commit 600ff99
Show file tree
Hide file tree
Showing 15 changed files with 426 additions and 575 deletions.
Binary file added images/bg_hr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/blacktocat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/body-bg.png
Binary file not shown.
Binary file removed images/highlight-bg.jpg
Binary file not shown.
Binary file removed images/hr.png
Binary file not shown.
Binary file added images/icon_download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/octocat-icon.png
Binary file not shown.
Binary file added images/sprite_download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/tar-gz-icon.png
Binary file not shown.
Binary file removed images/zip-icon.png
Binary file not shown.
86 changes: 51 additions & 35 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,37 @@
<!DOCTYPE html>
<html>

<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>jsPDF by MrRio</title>
<meta charset='utf-8' />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="description" content="jsPDF : Generating PDF files purely in Javascript" />

<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">

<title>jsPDF</title>
</head>

<body>
<div id="container">
<div class="inner">

<header>
<h1>jsPDF</h1>
<h2>Generating PDF files purely in Javascript</h2>
</header>

<section id="downloads" class="clearfix">
<a href="https://github.com/MrRio/jsPDF/zipball/master" id="download-zip" class="button"><span>Download .zip</span></a>
<a href="https://github.com/MrRio/jsPDF/tarball/master" id="download-tar-gz" class="button"><span>Download .tar.gz</span></a>
<a href="https://github.com/MrRio/jsPDF" id="view-on-github" class="button"><span>View on GitHub</span></a>
</section>
<!-- HEADER -->
<div id="header_wrap" class="outer">
<header class="inner">
<a id="forkme_banner" href="https://github.com/MrRio/jsPDF">View on GitHub</a>

<hr>
<h1 id="project_title">jsPDF</h1>
<h2 id="project_tagline">Generating PDF files purely in Javascript</h2>

<section id="main_content">
<h1>jsPDF - Generate PDF files in client-side JavaScript</h1>
<section id="downloads">
<a class="zip_download_link" href="https://github.com/MrRio/jsPDF/zipball/master">Download this project as a .zip file</a>
<a class="tar_download_link" href="https://github.com/MrRio/jsPDF/tarball/master">Download this project as a tar.gz file</a>
</section>
</header>
</div>

<p>You can <a href="http://twitter.com/MrRio">catch me on twitter</a>: <a href="http://twitter.com/MrRio">@MrRio</a> or head over to <a href="http://snapshotmedia.co.uk">my company's website</a> for consultancy. </p>
<!-- MAIN CONTENT -->
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner">
<p>You can <a href="http://twitter.com/MrRio">catch me on twitter</a>: <a href="http://twitter.com/MrRio">@MrRio</a> or head over to <a href="http://snapshotmedia.co.uk">my company's website</a> for consultancy. </p>

<h2>Creating your first document</h2>

Expand All @@ -45,6 +43,21 @@ <h2>Creating your first document</h2>
<span class="nx">doc</span><span class="p">.</span><span class="nx">save</span><span class="p">(</span><span class="s1">'Test.pdf'</span><span class="p">);</span>
</pre></div>

<h2>Demo</h2>

<h3>Simple two-page text document</h3>

<div class="highlight"><pre><span class="kd">var</span> <span class="nx">doc</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">jsPDF</span><span class="p">();</span>
<span class="nx">doc</span><span class="p">.</span><span class="nx">text</span><span class="p">(</span><span class="mi">20</span><span class="p">,</span> <span class="mi">20</span><span class="p">,</span> <span class="s1">'Hello world!'</span><span class="p">);</span>
<span class="nx">doc</span><span class="p">.</span><span class="nx">text</span><span class="p">(</span><span class="mi">20</span><span class="p">,</span> <span class="mi">30</span><span class="p">,</span> <span class="s1">'This is client-side Javascript, creating a PDF.'</span><span class="p">);</span>
<span class="nx">doc</span><span class="p">.</span><span class="nx">addPage</span><span class="p">();</span>
<span class="nx">doc</span><span class="p">.</span><span class="nx">text</span><span class="p">(</span><span class="mi">20</span><span class="p">,</span> <span class="mi">20</span><span class="p">,</span> <span class="s1">'Do you like that?'</span><span class="p">);</span>

<span class="nx">doc</span><span class="p">.</span><span class="nx">save</span><span class="p">(</span><span class="s1">'Test.pdf'</span><span class="p">);</span>
</pre></div>

<p><a>Run code</a>)</p>

<h2>Credits</h2>

<p>Big thanks to Daniel Dotsenko from <a href="http://willow-systems.com">Willow Systems Corporation</a> for making huge contributions to the codebase. </p>
Expand Down Expand Up @@ -77,14 +90,18 @@ <h2>License</h2>
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
</section>
</section>
</div>

<footer>
jsPDF is maintained by <a href="https://github.com/MrRio">MrRio</a><br>
This page was generated by <a href="http://pages.github.com">GitHub Pages</a>. Tactile theme by <a href="http://twitter.com/jasonlong">Jason Long</a>.
</footer>
<!-- FOOTER -->
<div id="footer_wrap" class="outer">
<footer class="inner">
<p class="copyright">jsPDF maintained by <a href="https://github.com/MrRio">MrRio</a></p>
<p>Published with <a href="http://pages.github.com">GitHub Pages</a></p>
</footer>
</div>

<script type="text/javascript">
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
Expand All @@ -95,7 +112,6 @@ <h2>License</h2>
} catch(err) {}
</script>

</div>
</div>

</body>
</html>
</html>
2 changes: 1 addition & 1 deletion params.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"tagline":"Generating PDF files purely in Javascript","google":"UA-32767308-2","note":"Don't delete this file! It's used internally to help with page regeneration.","body":"#jsPDF - Generate PDF files in client-side JavaScript\r\n\r\nYou can [catch me on twitter](http://twitter.com/MrRio): [@MrRio](http://twitter.com/MrRio) or head over to [my company's website](http://snapshotmedia.co.uk) for consultancy. \r\n\r\n## Creating your first document\r\n\r\nSee examples/basic.html. Make sure you include BlobBuilder.js and FileSaver.js. \r\n\r\n```javascript\r\n\r\nvar doc = new jsPDF();\r\ndoc.text(20, 20, 'Hello world.');\r\ndoc.save('Test.pdf');\r\n```\r\n\r\n## Credits\r\n\r\nBig thanks to Daniel Dotsenko from [Willow Systems Corporation](http://willow-systems.com) for making huge contributions to the codebase. \r\n\r\nThanks to Ajaxian.com for [featuring us back in 2009](http://ajaxian.com/archives/dynamically-generic-pdfs-with-javascript).\r\n\r\nEveryone else that's contributed patches or bug reports. You rock.\r\n\r\n## License\r\n\r\n(MIT License)\r\n\r\nCopyright (c) 2010-2012 James Hall, https://github.com/MrRio/jsPDF\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of this software and associated documentation files (the\r\n\"Software\"), to deal in the Software without restriction, including\r\nwithout limitation the rights to use, copy, modify, merge, publish,\r\ndistribute, sublicense, and/or sell copies of the Software, and to\r\npermit persons to whom the Software is furnished to do so, subject to\r\nthe following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be\r\nincluded in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","name":"jsPDF"}
{"note":"Don't delete this file! It's used internally to help with page regeneration.","name":"jsPDF","tagline":"Generating PDF files purely in Javascript","google":"UA-32767308-2","body":"You can [catch me on twitter](http://twitter.com/MrRio): [@MrRio](http://twitter.com/MrRio) or head over to [my company's website](http://snapshotmedia.co.uk) for consultancy. \r\n\r\n## Creating your first document\r\n\r\nSee examples/basic.html. Make sure you include BlobBuilder.js and FileSaver.js. \r\n\r\n```javascript\r\n\r\nvar doc = new jsPDF();\r\ndoc.text(20, 20, 'Hello world.');\r\ndoc.save('Test.pdf');\r\n```\r\n\r\n## Demo\r\n\r\n### Simple two-page text document\r\n\r\n```javascript\r\nvar doc = new jsPDF();\r\ndoc.text(20, 20, 'Hello world!');\r\ndoc.text(20, 30, 'This is client-side Javascript, creating a PDF.');\r\ndoc.addPage();\r\ndoc.text(20, 20, 'Do you like that?');\r\n\r\ndoc.save('Test.pdf');\r\n```\r\n\r\n[Run code](javascript:demoTwoPageDocument())\r\n\r\n## Credits\r\n\r\nBig thanks to Daniel Dotsenko from [Willow Systems Corporation](http://willow-systems.com) for making huge contributions to the codebase. \r\n\r\nThanks to Ajaxian.com for [featuring us back in 2009](http://ajaxian.com/archives/dynamically-generic-pdfs-with-javascript).\r\n\r\nEveryone else that's contributed patches or bug reports. You rock.\r\n\r\n## License\r\n\r\n(MIT License)\r\n\r\nCopyright (c) 2010-2012 James Hall, https://github.com/MrRio/jsPDF\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of this software and associated documentation files (the\r\n\"Software\"), to deal in the Software without restriction, including\r\nwithout limitation the rights to use, copy, modify, merge, publish,\r\ndistribute, sublicense, and/or sell copies of the Software, and to\r\npermit persons to whom the Software is furnished to do so, subject to\r\nthe following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be\r\nincluded in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."}
226 changes: 0 additions & 226 deletions stylesheets/print.css

This file was deleted.

Loading

0 comments on commit 600ff99

Please sign in to comment.