PDF render time .net



  • So, I just followed instructions. Everything works but.. rendering 1 PDF takes 7-10 secs, is this normal? while first initial one is like 20 secs
    Maybe I'm doing something wrong? But I really just followed exactly the guide on your website o_ o
    alt text

    alt text
    alt text

    +0 Starting rendering request 1
    +30 Rendering template {shortid:undefined, recipe:phantom-pdf, engine:handlebars, preview:false}
    +30 Inline data specified.
    +70 Resources not defined for this template.
    +70 Base url not specified, skipping its injection.
    +80 Rendering engine handlebars
    +330 Compiled template not found in the cache, compiling
    +890 Replaced images []
    +970 Executing recipe phantom-pdf
    +990 Starting child request to render pdf header
    +1040 Starting rendering request 2
    +1040 Rendering template {shortid:undefined, recipe:html, engine:handlebars, preview:false}
    +1040 Inline data specified.
    +1050 Resources not defined for this template.
    +1050 Base url not specified, skipping its injection.
    +1050 Rendering engine handlebars
    +1060 Compiled template not found in the cache, compiling
    +1080 Replaced images []
    +1090 Executing recipe html
    +1090 Skipping storing report.
    +1090 Rendering request finished 2
    +1100 Rendering request 2 finished in 7 ms
    +1100 Starting child request to render pdf footer
    +1120 Starting rendering request 3
    +1120 Rendering template {shortid:undefined, recipe:html, engine:handlebars, preview:false}
    +1130 Inline data specified.
    +1150 Resources not defined for this template.
    +1150 Base url not specified, skipping its injection.
    +1160 Rendering engine handlebars
    +1160 Compiled template not found in the cache, compiling
    +1170 Replaced images []
    +1170 Executing recipe html
    +1180 Skipping storing report.
    +1180 Rendering request finished 3
    +1180 Rendering request 3 finished in 6 ms
    +17300 Converting in dedicated phantomjs 2.1.1
    +17340 Request file:///C%3A%5CUsers%5CADAM~1%5CAppData%5CLocal%5CTemp%5Cjsreport%5C9da8aaf0-9bb6-11e8-8c17-49fd8f52acf1html.html
    +17400 Request data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlEAAADICAYAAADIirR8AAAAGXRFWHRTb2Z0d2FyZQBBZG...
    +17480 Request data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA3ADcAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYID...
    +26590 phantom-pdf recipe finished with 11 pages generated
    +26590 Skipping storing report.
    +26650 Rendering request finished 1

    and this is on localhost

    I had the same problem with the docker image of jsreport client on azure. Rendering one report took also as long as in the other situation

    @also anyway to set this up on .net

    "phantom": {
    "strategy": "phantom-server"
    },
    "tasks": {
    "strategy": "http-server"
    }



  • The rendering time always depends on the particular report. You can't say what is normal and what is not.

    How is the performance on a simple report?
    Can you try to eliminate the complexity of your report and found out what is slowing it down?

    @also anyway to set this up on .net

    The binary used in .net supports only "in-memory" templating engine evaluation and dedicated process phantom. However if your report spends anyway 10+ seconds in phantom, the gain with different strategy would be marginal (200ms).



  • @jan_blaha The thing is, it takes that much time with just "<p>Hello world </p>" ¯_(ツ)_/¯

    Is there also somehow a way to append things like on jsreport client?



  • Ok that is not normal. This is just happening with .net? Or also if you run standalone installation and render using the jsreport studio in browser?

    Is there also somehow a way to append things like on jsreport client?

    Don't understand what you mean. Please explain.



  • This is happening on both .net and the deployed standalone jsreport client on azure docker image https://jsreport.net/blog/render-reports-using-azure-app-service



  • I can imagine it would be so slow if you use some kind of micro instance in azure.
    However on local computer. If you run "Hello world". It should be done always in less than a second.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.