phantomjs/examples
Alessandro Portale fbb524e629 Issue 17: Make paper size for the PDF export specifiable
http://code.google.com/p/phantomjs/issues/detail?id=17

Adding a new phantom property called "paperSize". It takes one of
the two possible dictionary variants:
   { width: '200px', height: '300px', border: '0px' }
   { format: 'A4', orientation: 'portrait', border: '1cm' }
- If no paperSize is defined, the size is defined by the web page
- supported dimension units are: mm, cm, in, px. No unit means px.
- border is optional and defaults to 0.
- supported formats are: A3, A4, A5, Legal, Letter, Tabloid
- orientation (portrait|landscape) is optional and defaults to portrait

I'm considering implementing a short form like:
  phantom.paperSize = 'A4';
...needs further investigation.
2011-03-18 10:26:45 +01:00
..
arguments.js Change phantom.arguments to phantom.args. 2011-01-14 22:24:47 -08:00
colorwheel.js colorwheel.js: Example on using Canvas to produce the color wheel. 2011-02-17 00:38:44 -08:00
countdown.js Remove phantom.log, just use the de-facto console.log for logging. 2010-12-31 20:10:34 -08:00
direction.js Change phantom.arguments to phantom.args. 2011-01-14 22:24:47 -08:00
fibo.js Remove phantom.log, just use the de-facto console.log for logging. 2010-12-31 20:10:34 -08:00
follow.coffee follow.coffee: CoffeeScript version of follow.js. 2011-03-12 10:45:56 -08:00
follow.js follow.js: Adding lojjic. 2011-03-12 10:20:04 -08:00
hello.coffee Start to implement support for CoffeeScript. 2011-03-02 00:59:07 -08:00
hello.js Remove phantom.log, just use the de-facto console.log for logging. 2010-12-31 20:10:34 -08:00
ipgeocode.js Remove phantom.log, just use the de-facto console.log for logging. 2010-12-31 20:10:34 -08:00
loadspeed.js Change phantom.arguments to phantom.args. 2011-01-14 22:24:47 -08:00
movies.js Remove phantom.log, just use the de-facto console.log for logging. 2010-12-31 20:10:34 -08:00
pizza.js Change phantom.storage to phantom.state. 2010-12-31 22:09:02 -08:00
rasterize.js Issue 17: Make paper size for the PDF export specifiable 2011-03-18 10:26:45 +01:00
run-jasmine.js Change phantom.arguments to phantom.args. 2011-01-14 22:24:47 -08:00
run-qunit.js QUnit driver should not print the status multiple times. 2011-01-28 08:43:18 -08:00
seasonfood.js Remove phantom.log, just use the de-facto console.log for logging. 2010-12-31 20:10:34 -08:00
technews.js Change phantom.arguments to phantom.args. 2011-01-14 22:24:47 -08:00
tweets.coffee Start to implement support for CoffeeScript. 2011-03-02 00:59:07 -08:00
tweets.js Show tweets from SenchaInc instead. 2011-03-02 00:59:07 -08:00
useragent.js Change phantom.storage to phantom.state. 2010-12-31 22:09:02 -08:00
version.js Provide an API to get PhantomJS version. 2011-01-01 08:29:03 -08:00
weather.js Change phantom.arguments to phantom.args. 2011-01-14 22:24:47 -08:00