This project is mainly created for my CV export, but I thought, that I'll share it, because it can be useful for someone as well. It uses iText 7 Html2Pdf converter dependency to convert HTML files to PDF.
{
"url": "https://domain.hu/to/be/converted"
}
A generated PDF, that can be edited by any PDF editor and it consumes less space, than a Chrome/Edge Print to PDF file.