The software which powers Written in AngularJS it generates paper ready for printing using the HTML5 canvas directly in the browser.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

PaperQuik README

Code Climate Test Coverage


After going to several sites and not being able to get the kind of printable paper I wanted (due to poor print quality or a lack of choices I liked), I decided to make my own. I thought it would be easy to do so but it turns out that print quality for SVG is utter rubbish in all the browsers out there, even today. If you don't believe me, read this: Using SVG to make custom paper (and why it didn't work) I was, frankly, astonished that it didn't work.

So I figured out that I could print a really big image from the browser and that looked great on paper (because everybody cares how their pictures print out) so I switched to using Paper.js to render the page image on demand and it works pretty darn well if I do say so myself. Plus, you don't have to stand up a big complicated server to generate PDF files on the fly or anything like that.

Anyway, this is the code that makes go.


You don't really have to "install" anything to look at or use the code. But if you want to see it run locally or run the unit tests you'll need to do a few things. First off, make sure you've installed Node.js so you can run the Node Package Manager (npm). Then make sure you've installed both Grunt and Bower. I'm not going to tell you how to do all of that, but instead I'll just direct you to the Yeoman project where they tell you about installing all of these great JavaScript tools. Fortunately, npm makes it all pretty darn easy and installing Node.js is easy too.

Finally you need to install Karma (it's used for the unit-tests):

npm install -g karma

With all the software you need installed, you can run a couple of commands in the root of the airquotes project to get installed what you need to run or test it locally:

bower install

npm install


Then use Grunt to run a server and launch the web page in a browser where you can explore the working UI:

grunt serve


Sorry, there are no working tests at this time. If you're just looking for an example of some tests, you should check my project airquotes, it has 100% code coverage.

To-Do List

The to-do list breaks down into three major categories of functionality which are needed:

  1. The current code uses a library to identify which browser the user is running and operating system as well. Usually we don't have to worry about such things, but printing in browsers is still stuck about a decade behind all the other neat stuff like 3D, compiled JavaScript, etc. The code needs additional instructions added for how best to print the pages using IE, Firefox, and Safari.

  2. Different paper layouts, better layout of the boxes on the page, the ability for the user to modify the printing (for example, line and dot colors), and double sided printing.

  3. IE preview looks like hell even on IE 11. After the high resolution image of the page has been generated, every other browser scales it down nicely and displays it as a preview. IE butchers it. Initially there should just be a message to tell the user that the preview is not indicative of the output, but later a replacement for the image scaling in IE would fix the problem.

The List

  • Add a message about the IE preview problems
  • Fix preview rendering on IE 11, 10, and 9
  • Create location calculation code
  • Build 'Cornell Note-Taking' layout
  • Build 'To-Do List' layout
  • Create a controls page for the dotted ruled lines renderer
  • Add a modal w/ printing instructions for Firefox
  • Add a modal w/ printing instructions for IE
  • Add a modal w/ printing instructions for Safari
  • Allow for double-sided pages
  • Create a 'Test Page' layout for printer testing
  • i18n and l10n