Hi. how can i preview the pdf report before downloading it,while using Node API?.Here is my code
router.get('/reports',function(req,res){
var data ={
template:{"shortid":"ryK9rleol", "recipe" : "phantom-pdf"},
data:{'name':'john'},
options:{
preview: true
}
}
var options ={
method:'POST',
json:data
}
request(options).pipe(res);
})