That is what I needed to know. Thanks
jmorrisIII
@jmorrisIII
Posts made by jmorrisIII
-
RE: Converting PDF for attaching to email
-
Converting PDF for attaching to email
I normal get the link from jsReport to display a PDF in a web page. I now need to take the PDF,or anything else from jsReport, and attach it to an email. I am using the function in the response to convert it to a base64 string. Is there a better way to do this? Is there an option that I could send to jsReport server to give it to me in the format I need?
client.render(payload, function(err, response) { if (err) { return deferred.reject({reason:err.message || err}) } response.body(function (body) { var pdf = body.toString('base64'); return deferred.resolve({data:pdf }) }) });
-
RE: Saving templates sometimes takes longer than it should
@bjrmatos I do have another unrelated question. Is there a quick way to delete reports found in the Reports folder other then one at a time. If I delete the ones in the data/storage directory will they be removed from the UI?
-
RE: Saving templates sometimes takes longer than it should
No problem. Not sure if the newer version helped the original save issue but I will test and let you know..Thanks for your help.
-
RE: Saving templates sometimes takes longer than it should
@bjrmatos never mind syntax change to get 'permanent-link' from v0.13.5
"options": {"saveResult" : "true" }
to
"options": {"reports": { "save": true } } -
RE: Saving templates sometimes takes longer than it should
@bjrmatos Things must have changed as far as the return type when posting the template info. Before I got back a URI like http://10.0.1.170:5000/reports/HapKLvhO0gVqckRO/content . Now I get raw pdf data. Is there a setting somewhere to get a URI?
-
RE: Saving templates sometimes takes longer than it should
I ran the ncu command and it said I was up to date. How do I update via npm?
-
RE: Saving templates sometimes takes longer than it should
The best I can tell my version is 0.13.5.I use default store. I have 10 templates.It does happen for all templates.
My prod.config.json file.{
"certificate": {
"key": "certificates/jsreport.net.key",
"cert": "certificates/jsreport.net.cert"
},
"connectionString": { "name": "fs" },
"httpPort": 5000,
"blobStorage": "fileSystem",
"phantom": {
"numberOfWorkers" : 2,
"timeout": 180000
},
"tasks": {
"numberOfWorkers" : 2,
"timeout": 10000
}
}