Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Avoid font embedding in PDF
Forum Updated to NodeBB v4.3 + New Features

Avoid font embedding in PDF

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 405 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    apmw
    wrote on 17 Apr 2019, 19:16 last edited by
    #1

    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?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stefanu
      wrote on 23 Apr 2020, 07:35 last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved