1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-13 21:45:57 +00:00

pdf route has the same problem, disabling it for now

This commit is contained in:
Scott Tolksdorf
2016-01-13 16:18:18 -05:00
parent 13f68c872e
commit 2335432c77
3 changed files with 5 additions and 6 deletions

View File

@@ -123,6 +123,7 @@ module.exports = function(app){
});
//PDF download
/*
var pdf = require('html-pdf');
app.get('/homebrew/pdf/:id', function(req, res){
HomebrewModel.find({shareId : req.params.id}, function(err, objs){
@@ -149,7 +150,7 @@ module.exports = function(app){
"border": "0",
}
pdf.create(html, config).toStream(function(err, stream){
pdf.create(page, config).toStream(function(err, stream){
res.attachment('pdfname.pdf');
return stream.pipe(res);
@@ -158,7 +159,7 @@ module.exports = function(app){
})
});
*/