Hm. Unfortunately we don't allow merging to the existing pdfs which were created outside jsreport yet.
I've filled issue for this. You can subscribe and get updates. https://github.com/jsreport/jsreport-pdf-utils/issues/2
Yes, jsreport.Binary.Ph2 seems to work perfectly with Highcharts 6.0.7.
A simple chart in Highcharts 6 seem to be working fine with with phantom 1.9.8. One of the charts causing the error was a stacked column chart. I did not play much with the chart options, so not sure what was really causing the issue.
Anyway with some modification and setting the zoom to 0.75, jsreport.Binary.Ph2 is working great.
I think this is causing me the same problem when I send to API. I send the template & the data. It says its processes fine but the PDF is already 2 - 3mb in size and when I open them nothing is there.
can you share the code that you are using to send the request to jsreport? maybe there is something wrong
i think this section describes what is that window. that window is a place where you can define helpers functions for your template engine.
I need to combine the script with the HTML this is where the problem is for me.
The combination of having the script in with the template. I've changed your example to show hows it's working. I need it working like this for our production service. which doesn't use the development studio.
why do you need to have that function in the html in order to make it work on your production server? it does not matter if you don't use the studio in production, you can develop the template + helpers using the studio in your local machine and then you can deploy to production what you have on local, then your template will have everything it needs in production no matter if you don't use studio there.
As far as getting it to work, I did a clone of jsreport-studio to a directory and then just ran 'npm install' and that reported errors. Maybe I messed up and that isn't a stand alone app that can run?
it should work, if you are still curious about jsreport-studio.. what version of npm do you have? we use npm5 all the time and the install works always, are you using npm 5 too? also maybe it would help more if you share the exact error message that you get after npm install.
thanks for the letting us knowm, we will see what is happening and update the docs if needed, maybe it is jus a special behaviour with global helpers and needs a new section in docs.
Thanks for the clear explanation, I understand.
I hope that this problem is resolved.
For now, I have confirmed that it works fine on Google Compute Engine(Linux VM) so I will use it.
Thanks for your prompt reply. I'll go ahead and make some scripts on the outside calling jsreport pr client as you suggest. Should not be overly complex, was just wondering of there already was a way to handle this as an integrated part of jsreport.
The returned error response body is JSON. Parse is it and you get the following structure.
{
message: 'Error during rendering report: No data',
stack: 'Error: No data\n at beforeRender (evalmachine.<anonymous>:2:10)\n at evalmachine.<anonymous>:4:111\n at ContextifyScript.Script.runInContext (vm.js:59:29)\n at ContextifyScript.Script.runInNewContext (vm.js:65:15)\n at Object.runInNewContext (vm.js:135:38)\n at module.exports (E:\\work\\temp\\jsrtest\\node_modules\\jsreport-scripts\\lib\\scriptEvalChild.js:123:6)\n at process.<anonymous> (E:\\work\\temp\\jsrtest\\node_modules\\script-manager\\lib\\worker-processes.js:48:36)\n at emitTwo (events.js:125:13)\n at process.emit (events.js:213:7)\n at emit (internal/child_process.js:774:12)'
}
Move Topic
Disabled Categories are greyed out
This topic will be moved to the category
Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.