summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-05-28 08:02:06 -0400
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-06-04 12:36:28 -0400
commit1249db653da98ecb242e8874d53067ec818ac3b9 (patch)
tree2168c1b6b2602bd1429d7cbc23098bb7361ffae6
parentdd3c2e606cd03fc0fe4f157a787bfab050b9f7f5 (diff)
vcl: fix pdf rendering regressionprivate/Ashod/pdfium_on_master
Reviewed-on: https://gerrit.libreoffice.org/54921 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com> (cherry picked from commit 4a3457907546b4cde3adaf0ba6a6d258fe1b54b7) Change-Id: I6c2c48c033facb317b4ca7ed2af07348d6386b98
-rw-r--r--vcl/source/filter/ipdf/pdfread.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx
index 3b0dce163e0c..96aca4f6e856 100644
--- a/vcl/source/filter/ipdf/pdfread.cxx
+++ b/vcl/source/filter/ipdf/pdfread.cxx
@@ -252,7 +252,8 @@ bool ImportPDF(SvStream& rStream, Graphic& rGraphic, const double fResolutionDPI
{
uno::Sequence<sal_Int8> aPdfData;
Bitmap aBitmap;
- const bool bRet = ImportPDF(rStream, aBitmap, 0, aPdfData, fResolutionDPI);
+ const bool bRet = ImportPDF(rStream, aBitmap, 0, aPdfData, STREAM_SEEK_TO_BEGIN,
+ STREAM_SEEK_TO_END, fResolutionDPI);
rGraphic = aBitmap;
rGraphic.setPdfData(std::make_shared<css::uno::Sequence<sal_Int8>>(aPdfData));
rGraphic.setPageNumber(0); // We currently import only the first page.