resumify - 對HTML幻燈片截圖并制作成PDF
resumify
resumify - 對HTML幻燈片截圖并制作成PDF。
需求
node.js: main program ( recommend 4.2.x, at least 4.x )electron: Capturing screenshot ( this package has dependency installtionelectron-prebuilt)ImageMagick: PDF creation ( install and set PATH )
安裝
Use npm simply, we recommend global install:
$ npm install -g resumify
用法
1. Local Presentation
Change to directory to slide-HTML file existing, run the command:
$ cd /path/to/presentation/ $ resumify
resumify will auto detecting HTML file, and processing.
2. Remote Presentation
If slide has remote server (e.g. AWS S3), supply URL with -u or --url option:
$ resumify -u http://example.com/path/to/presentation/index.html
Note that URL must be fully format ( including .html ).
Options
resumify has some options to manage processing:
| option | description | default |
|---|---|---|
| -s, --size | Capture screen size with [width]x[height] format. |
1280x800 |
| --skip | Skip capturing slide number like 2,3,4,... format |
- |
| -e, --end | End of slide number | 1 |
| -u, --url | Remote slide URL | - |
| -h, --help | Show help | - |
| -v, --version | Show program version | - |
| -o, --output | Determine output PDF filename | slide.pdf |
Author
Yoshiaki Sugimoto
License
MIT
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!