README
sketch-render
- SketchAPI offline renderer.
- Exports SketchAPI documents into PDF, SVG, JPEG & PNG formats!
Install
- NodeJS
- WebDriver
- Selenium
npm install selenium-standalone@latest -g
- Cairo
- CairoSVG
pip install cairosvg
- sketch-render
npm install sketch-render -g
Now the command sketch-render
should be available in terminal! Cool!
Usage
sketch-render
supports 3 flags:
- --build, -b
- URI to your SketchAPI build.
- --commands, -o
- Accepts an array of commands. Commands are run through the
sketch.save.multiple(...)
method.
- Accepts an array of commands. Commands are run through the
- --output, -o
- The file output path. The output file type is determined by the suffix of this path. Currently types supported are: PNG, JPG, SVG, and PDF.
- --verbose, -v
- Get a looooot of information about what exactly is happening.
Example
# Load up an input Sketch and save an SVG and PDF copy in the current directory
sketch-render <input> -b <build> -o file.svg -o file.pdf
License
Copyright (C) SketchIO, Inc. All Rights Reserved.
Unauthorized copying of this repository is prohibited.
For licensing <https://sketch.io/contact.html>
Fedora notes
https://forums.aws.amazon.com/message.jspa?messageID=714119
yum install xorg-x11-server-Xvfb.x86_64
yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm