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:
@@ -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){
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user