mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Redact text search result
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#define PDFPLUGIN_H
|
||||
|
||||
#include "pdfdocument.h"
|
||||
#include "pdftextlayout.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QJsonObject>
|
||||
@@ -51,6 +52,7 @@ public:
|
||||
virtual ~IPluginDataExchange() = default;
|
||||
|
||||
virtual QString getOriginalFileName() const = 0;
|
||||
virtual pdf::PDFTextSelection getSelectedText() const = 0;
|
||||
};
|
||||
|
||||
class Pdf4QtLIBSHARED_EXPORT PDFPlugin : public QObject
|
||||
|
@@ -78,8 +78,6 @@ PDFDocument PDFRedact::perform(Options options)
|
||||
}
|
||||
builder.setPageRotation(newPageReference, page->getPageRotation());
|
||||
|
||||
// TODO: Redact searched text
|
||||
|
||||
PDFPageContentStreamBuilder contentStreamBuilder(&builder);
|
||||
|
||||
QPainterPath redactPath;
|
||||
|
Reference in New Issue
Block a user