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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -