Yes, I see -- my bad I didn't realize CallDevToolsProtocolMethod is a method of cWebView2 which you probably call with something like
Code:
'--- CDP options: sizes in INCHES (A4 = 8.27 x 11.69)
sParams = "{""printBackground"":true," & _
"""paperWidth"":8.27,""paperHeight"":11.69," & _
"""marginTop"":0.4,""marginBottom"":0.4," & _
"""marginLeft"":0.4,""marginRight"":0.4," & _
"""preferCSSPageSize"":true}"
'--- Invoke CDP; returns {"data":"<base64>"}
Call WV.CallDevToolsProtocolMethod("Page.printToPDF", sParams)
Olaf will have to chime in but by the looks of it I think there is probably a completion event missing by the wrapper the same way DocumentTitleChanged event is missing and has to be handled in JS as a workaround.
cheers,
</wqw>