diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-06-22 00:44:44 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-03-21 15:49:02 +0100 |
commit | 85e51434cf2529dfd247a9580ca749f33b602375 (patch) | |
tree | 929eafa76292092756e93c889bffa825463453e8 /include | |
parent | 512e58a3962b403df9d995fdb4ca8d3f7c6768eb (diff) |
pdfium: Keep the PDF data in memory, so that we can really share them.
Otherwise the swap out / swap in creates new copy of the underlying PDF
stream.
Change-Id: I88a16a69143783a998201e183bea1a9553e337bd
Reviewed-on: https://gerrit.libreoffice.org/56266
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/69626
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 826208d2da6c92e94b38ef447e47550285742755)
Reviewed-on: https://gerrit.libreoffice.org/77687
Tested-by: Jenkins
(cherry picked from commit e4cec56a699b75102c39f4f80879a8080fc5ecc1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90833
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/pdfread.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/vcl/pdfread.hxx b/include/vcl/pdfread.hxx index 346c39a3a897..1de9cfc9b259 100644 --- a/include/vcl/pdfread.hxx +++ b/include/vcl/pdfread.hxx @@ -31,6 +31,11 @@ class Graphic; namespace vcl { +/// Fills the rBitmaps vector with rendered pages. +VCL_DLLPUBLIC size_t RenderPDFBitmaps(const void* pBuffer, int nSize, std::vector<Bitmap>& rBitmaps, + const size_t nFirstPage = 0, int nPages = 1, + const double fResolutionDPI = 96.); + /// Imports a PDF stream into rGraphic as a GDIMetaFile. VCL_DLLPUBLIC bool ImportPDF(SvStream& rStream, Bitmap& rBitmap, size_t nPageIndex, css::uno::Sequence<sal_Int8>& rPdfData, |