Tips for html setup of pdf pages

I made a little styling which holds the design of your pages very neat when you give it input CSS .page { width: 210mm; height: 297mm; margin: auto; padding: 55px 0; page-break-after: always; position: relative; overflow: hidden; } HTML <div class="page page1"> <!-- Your content here -->…

Font-face mixin

Iv'd made a font-face mixin to easy embed fonts on the same font name so when you call it with css you have to touch the same font name and just enter what weight it should be in. The mixin: @mixin font-face($fontpath, $familyname, $filename, $weight: 400, $style: normal){ @font-face…

Angular cheatsheets

Just got my hands on these amazing cheatsheets enjoy https://egghead.io/articles/angularjs-core-services-directive-definition-object-and-ui-router-cheat-sheets…

HTML -> PDF with nodejs

Install http://phantomjs.org/ and then install the phantom node module https://github.com/sgentle/phantomjs-node Here is an example of rendering a pdf phantom = require('phantom') phantom.create(function(ph){ ph.createPage(function(page) { page.open("http://www.google.com", function(status) { page.render('google.pdf', function(){ console.log…

Css transform

The job have been done for you IE6+ support works flawless http://www.useragentman.com/tests/cssSandpaper/cube3.html Thats about it rest is in the posted article…