From e4cec56a699b75102c39f4f80879a8080fc5ecc1 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 22 Jun 2018 00:44:44 +0200 Subject: 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 Tested-by: Ashod Nakashian Reviewed-on: https://gerrit.libreoffice.org/69626 Reviewed-by: Jan Holesovsky Tested-by: Jan Holesovsky (cherry picked from commit 826208d2da6c92e94b38ef447e47550285742755) Reviewed-on: https://gerrit.libreoffice.org/77687 Tested-by: Jenkins --- include/vcl/pdfread.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/vcl/pdfread.hxx') 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& 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& rPdfData, -- cgit