use chrome --print-to-pdf --headless to print html too quickly? -


i used cmd , typed "chrome --headless --disable-gpu --print-to-pdf=d:\project\test.pdf http://localhost:8085/t1/index.html?data=http://localhost:8085/1/mock.json"

and generated pdf blank. think reason used fetch mock.json ,

dom didn't have enough time render completely. if import mock.json ,

pdf can render perfectly. so, there way delay print-to-pdf process?

thanks!


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -