Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Avoid font embedding in PDF



  • 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?



  • 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.


Log in to reply