Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-137472

command line renderers html to image and pdf

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • WebEngine
    • None

    Description

      Hi, 

       

      for many years, wkhtmltoimage and wkhtmltopdf, both based on webkit/Qt5, where the command line tools of choice to convert html to an image or pdf file in Makefiles, scripts, etc. and were quite useful. 

       

      Unfortunately, both are unsafe and full of bugs and security issues, and not maintained anymore, thus get dropped from linux distributions. 

      This left a big gap. 

       

      I've seen that the qt documentation shows an example of using webengine to convert HTML to PDF under

       

      https://doc.qt.io/qt-6/qtwebengine-webenginewidgets-html2pdf-example.html

      which seems to be a functioning example to convert html to pdf, but I am not enough familiar with Qt, and do not follow it's progress, to write a tool to convert html to an image. 

      I'd therefore like to propose that Qt (which obviously knows itself and it's codebase best) would come with command line tools like wkhtmltoimage and wkhtmltopdf, but based on QT6+Webengine. 

       

      That would be great.  

       

      best regards

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            hadmut Hadmut Danisch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes