Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Large size html image elements are not preserved while export into PDF
Forum Updated to NodeBB v4.3 + New Features

Large size html image elements are not preserved while export into PDF

Scheduled Pinned Locked Moved Unsolved Qt WebKit
4 Posts 2 Posters 690 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.
  • G Offline
    G Offline
    Gowtham
    wrote on 12 Jun 2020, 07:13 last edited by
    #1

    Hi,

    I have an html file which contain only a <img> tags in multiple times, each image file has more than 60mb in size. When converting into PDF using WebKit, it's preserves a empty content in a output file. We expected an output PDF document with all the images should preserved.

    Please find the html content below,

    <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head>
    <body>

    <img height="360" width="1060" src="D:\image1.jpg?0"></img>
    <img height="360" width="1060" src="D:\image1.jpg?1"></img>
    <img height="360" width="1060" src="D:\image1.jpg?2"></img>
    <img height="360" width="1060" src="D:\image1.jpg?3"></img>
    <img height="360" width="1060" src="D:\image1.jpg?4"></img>
    <img height="360" width="1060" src="D:\image1.jpg?5"></img>
    <img height="360" width="1060" src="D:\image1.jpg?6"></img>

    </body>
    </html>

    Can anyone look into and provide resolution for this.

    Thanks in advance,
    Gowtham

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Jun 2020, 07:41 last edited by
      #2

      Hi and welcome to devnet,

      If you would like somebody to test something to help you, you should provide:

      • the Qt version you are using
      • the OS you are running
      • a minimal compilable example that reproduce the behaviour.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      G 1 Reply Last reply 18 Jun 2020, 05:01
      0
      • S SGaist
        12 Jun 2020, 07:41

        Hi and welcome to devnet,

        If you would like somebody to test something to help you, you should provide:

        • the Qt version you are using
        • the OS you are running
        • a minimal compilable example that reproduce the behaviour.
        G Offline
        G Offline
        Gowtham
        wrote on 18 Jun 2020, 05:01 last edited by
        #3

        @SGaist

        We are using QT5 version in windows 10 environment. We have shared the html content for reproducing the issue. You can use any image file has more than 60mb size in that html content.

        Please let me know if you have any requirement from us.

        Regard,
        Gowtham K

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 18 Jun 2020, 19:11 last edited by
          #4

          Qt 5 is a series, what exact version are you using ?

          I already stated the requirements: a minimal compilable exemple that shows the behaviour.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          4/4

          18 Jun 2020, 19:11

          • Login

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