It uses Chrome's built-in print-to-PDF functionality via Chrome Debug/DevTools Protocol. In other words it creates PDF files with real vector graphics and text, not just images embedded in PDF.
Page.printToPDF: https://chromedevtools.github.io/devtools-protocol/tot/Page/...