summaryrefslogtreecommitdiff
path: root/include/vcl/pdfread.hxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2018-06-22 00:44:44 +0200
committerAshod Nakashian <ashnakash@gmail.com>2019-08-25 13:30:37 +0200
commite4cec56a699b75102c39f4f80879a8080fc5ecc1 (patch)
tree21a111fd3f04aaea57bcc25d512b558b764d61b8 /include/vcl/pdfread.hxx
parentb26a3db534cd30bee596670e99897ee5ce907adf (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
Diffstat (limited to 'include/vcl/pdfread.hxx')
-rw-r--r--include/vcl/pdfread.hxx5
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,