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
Post a Comment