I am using PyQt5 with QWebEnginePage to convert a html to pdf.
The html is generated from Google Docs by exporting a document as html, and the html consists of some chinese characters.
The size of the html file is around 44KB and it does not include any images.
However, when I export the html to pdf using QWebEnginePage::printToPdf
, the pdf's size is unexpectedly large, which is around 15MB.
Does anyone have some thought on why the pdf is too big? Currently I suspect that is because the html consists of chinese characters and the web engine embeds the font into the pdf.