Created
August 5, 2016 05:33
-
-
Save brendanashworth/2cd3ef01a93a0201155cd7c6a96c11c2 to your computer and use it in GitHub Desktop.
minio with wkhtmltopdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Minio = require('minio') | |
var client = new Minio({ ... }) | |
// Create the stream. | |
let stream = wkhtmltopdf('http://google.com/', { pageSize: 'letter' }) | |
// Upload it into minio. | |
client.putObject('bucket', 'google-page', stream, /* size of pdf */, (err, etag) => { | |
if (err) throw err | |
// google.com is now in minio | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment