PDFHandling

class PDFHandling : public QObject

Public Functions

explicit PDFHandling(QObject *parent = nullptr, QTextDocument *document = nullptr, QPrinter *printer = nullptr, QString html_contents = "")

This is the constructor of PDFHandling classes and initializes the objects’ pointers which are required to be the shared ones between multiple threads.

Parameters:
  • parent

  • document

  • printer

  • html_contents

Public Slots

void SavePDF()

This prints the PDF and asks the user where to print it.

The user can print it on paper or save the PDF in a file.