Avoid font embedding in PDF
-
wrote on 17 Apr 2019, 19:16 last edited by
If I render the text string (using QPainter class) into a PDF (using QpdfWriter backend), the generated PDF file has a subset of Font embedded in it.
Is there a way to just reference the font name into a PDF and not embed the actual font itself?
For example, QPrinter class has setFontEmbeddingEnabled() method to control that behavior. But, is it possible to do the same using QPainter or QpdfWriter class?
-
wrote on 23 Apr 2020, 07:35 last edited by
Hello,
Any luck on this problem ?
I'm facing a similar issue : I'm trying to alter the code in wkhtmltopdf, which uses qt, to avoid font embedding, but setting the property on the qprinter object does not seem to work.
Thanks.