summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-09-04 17:17:48 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-09-04 18:39:37 +0200
commit61834cd574568613f0b0a2ee099a60fa5a8d9804 (patch)
treea53cbd1242fcf6450512148473743bf551c57061 /include
parentc9173b4042d6d4dc2e4b028e133ea60631f6e87d (diff)
xmlsecurity: pdf incremental updates that are non-commenting are invalid
I.e. it's OK to add incremental updates for annotation/commenting purposes and that doesn't invalite existing signatures. Everything else does. Change-Id: I4607c242b3c6f6b01517b02407e9e7a095e2e069 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102057 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r--include/vcl/filter/PDFiumLibrary.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/filter/PDFiumLibrary.hxx b/include/vcl/filter/PDFiumLibrary.hxx
index 43176f584420..aee470cfd852 100644
--- a/include/vcl/filter/PDFiumLibrary.hxx
+++ b/include/vcl/filter/PDFiumLibrary.hxx
@@ -23,6 +23,7 @@
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <rtl/ustring.hxx>
#include <tools/color.hxx>
+#include <vcl/checksum.hxx>
#include <fpdf_doc.h>
@@ -170,6 +171,9 @@ public:
std::unique_ptr<PDFiumAnnotation> getAnnotation(int nIndex);
std::unique_ptr<PDFiumTextPage> getTextPage();
+
+ /// Get bitmap checksum of the page, without annotations/commenting.
+ BitmapChecksum getChecksum();
};
class VCL_DLLPUBLIC PDFiumDocument final