// Copyright (C) 2024 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause #ifndef GRAPHPRINTER_H #define GRAPHPRINTER_H #include #include #include #include class GraphPrinter : public QObject { Q_OBJECT QML_ELEMENT public: explicit GraphPrinter(QObject *parent = 0); ~GraphPrinter() override; Q_INVOKABLE QString generatePDF(const QUrl &path, const QImage &image); Q_INVOKABLE QString print(const QImage &image, const QString printerName); Q_INVOKABLE QStringList getPrinters(); Q_INVOKABLE qreal maxTextureSize(); }; #endif // GRAPHPRINTER_H