Browse Source

tweak example

v1.x
TJ Holowaychuk 13 years ago
parent
commit
41609b9892
  1. 2
      examples/pdf-images.js

2
examples/pdf-images.js

@ -38,8 +38,10 @@ ctx.nextPage();
reset();
h1('Lime cat');
p('This is a pretty sweet cat');
img('examples/images/lime-cat.jpg');
p('Figure 1.1 - Lime cat is awesome');
ctx.nextPage();
fs.writeFile('out.pdf', canvas.toBuffer());
console.log('created out.pdf');
Loading…
Cancel
Save