I'm trying to save the Infopath web part to pdf and think print should be able to do this for me. (as you can then just select save to pdf)
Similar to this question which seems to have been answered by the asker but the critical part of the question has vanished.
I found what I assumed was the web part id required (the string after "webpartid=") when inspecting the infopath element but pasting this in place of the doesn't seem to work.
var WebPartElementID = "fb1a953f-bbfb-41ae-a60d-a84a1fe70798";
Is there another way to add a print button for an Infopath form in SharePoint Online? Or am I just doing it wrong?