tsmorgan / shots Goto Github PK
View Code? Open in Web Editor NEWA way to quickly create a PDF of screens of a gov.uk prototype.
A way to quickly create a PDF of screens of a gov.uk prototype.
Hey,
trying to use the tool for the first time and I'm getting an error, seems like it's looking for an image of the first page I've listed (plus -full.png) in the folder I've created but isn't generating it first. Any ideas?
Error output...
node pdf.js sms170302
Reading file /Users/chrishanson/Desktop/shots-master/sms170302/data.json
generating screenshots ############
adding to PDF #fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open 'sms170302/home-full.png'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Function.PDFImage.open (/Users/chrishanson/Desktop/shots-master/node_modules/pdfkit/js/image.js:30:21)
at PDFDocument.module.exports.image (/Users/chrishanson/Desktop/shots-master/node_modules/pdfkit/js/mixins/images.js:27:26)
at createPDF (/Users/chrishanson/Desktop/shots-master/pdf.js:139:11)
at /Users/chrishanson/Desktop/shots-master/pdf.js:88:11
at ChildProcess.exithandler (child_process.js:220:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.