Difference between webContents.print() and webContents.printToPdf


I have already tried webContents.print() and I found that only using webContents.print(),the content i want to print will still become PDF.
I want to only print sth that i see in my page without making it be a pdf file,do you have some good ideas?I will really appreciate you no matter what advice you give.thx!


This is my first time to use this .and i don’t know why my pageMaker is so ugly.
I have no choice but to rewrite my question below