diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-11-18 21:10:43 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-11-19 09:03:46 +0100 |
commit | 728bfa1879da097b65fd39b1e63c52478a913af0 (patch) | |
tree | 5bcc0a7ba585771f8c3100f81d0761793e7602a2 /include | |
parent | bcfd9f8f166aec58ee92642e8e70dc5a94a3119f (diff) |
pdfium: add signature and trailer end getter wrappers
So PDFiumDocument::getPointer() can be retired.
Change-Id: I77c34c3e263bd6f39e06e50f621f2eaff804c716
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106079
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/filter/PDFiumLibrary.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vcl/filter/PDFiumLibrary.hxx b/include/vcl/filter/PDFiumLibrary.hxx index 014505d7739d..2663a6cf03ae 100644 --- a/include/vcl/filter/PDFiumLibrary.hxx +++ b/include/vcl/filter/PDFiumLibrary.hxx @@ -246,11 +246,13 @@ public: // Page size in points basegfx::B2DSize getPageSize(int nIndex); int getPageCount(); + int getSignatureCount(); int getFileVersion(); bool saveWithVersion(SvMemoryStream& rStream, int nFileVersion); std::unique_ptr<PDFiumPage> openPage(int nIndex); - FPDF_DOCUMENT getPointer() { return mpPdfDocument; } + FPDF_SIGNATURE getSignature(int nIndex); + std::vector<unsigned int> getTrailerEnds(); }; struct PDFiumLibrary final : public rtl::StaticWithInit<std::shared_ptr<PDFium>, PDFiumLibrary> |