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. [Qt 5.1.1] Converting html to pdf, english plaintext of html is printed garbled in pdf, but same thing in Qt4 works fine.

[Qt 5.1.1] Converting html to pdf, english plaintext of html is printed garbled in pdf, but same thing in Qt4 works fine.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.2k Views 2 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.
  • R Offline
    R Offline
    rchawla
    wrote on last edited by
    #1

    Hi,

    While converting html to pdf, the qt 5.X displays garbled text in pdf. If I see the properties in the pdf the font used in case of garbled text pdf is Cursor TrueType(CID) Embedded. While in qt4.X, which shows english, the font is Utopia-regular.

    Doing ldd on my binary, which is built with qt4, it gives libfontconfig.so.1 and libfreetype.so.6(fonts) as its dependency. But if i compile my project with qt5, compilation is successful and the resulting binary has nothing of this(font) sort in dependency. I am wondering what is right dependency for fonts for Qt5?

    What am I missing in qt5 to display text in pdf in right format? Can someone help me out? Do let me know if you don't understand the problem?

    One interesting thing is if I copy the garbled text from pdf and copy it in my text editor, it displays english. Let me know what I am missing?

    Thanks.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      HiQPdf Software
      wrote on last edited by
      #2

      Yes, HTML to PDF converters are helpful. I work on free HTML to PDF and online HTML to PDF converters. They are making work easier.

      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