diff options
Diffstat (limited to 'src/core/api/qwebengineframe.h')
| -rw-r--r-- | src/core/api/qwebengineframe.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/api/qwebengineframe.h b/src/core/api/qwebengineframe.h index 3042fbae0..34b72e08e 100644 --- a/src/core/api/qwebengineframe.h +++ b/src/core/api/qwebengineframe.h @@ -49,6 +49,10 @@ public: Q_INVOKABLE void runJavaScript(const QString &script, quint32 worldId, const QJSValue &callback); + Q_INVOKABLE void printToPdf(const QString &filePath); + void printToPdf(const std::function<void(const QByteArray &)> &callback); + Q_INVOKABLE void printToPdf(const QJSValue &callback); + friend inline bool comparesEqual(const QWebEngineFrame &lhs, const QWebEngineFrame &rhs) noexcept { |
