summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-03-03 13:10:49 -0500
committerJan Holesovsky <kendy@collabora.com>2019-03-26 11:15:38 +0100
commitf08b80fc1a4a4cadc320043aef0ff01090a23d44 (patch)
treec4a8fea74bb9c85a625f7171e3c94abd43b2d6d8 /vcl/source
parentcdf47ecc2cf090fe89d448ed96a568a03f2fbb07 (diff)
pdf: refactor poppler importer
This paves the way to add pdf parsing via pdfium. Change-Id: I384687bcdce3011682ebeec18ee3de44759feb1a Reviewed-on: https://gerrit.libreoffice.org/51254 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/69620 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/filter/ipdf/pdfread.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx
index 02c7be44594f..ab70a0451d9d 100644
--- a/vcl/source/filter/ipdf/pdfread.cxx
+++ b/vcl/source/filter/ipdf/pdfread.cxx
@@ -244,9 +244,9 @@ bool ImportPDF(SvStream& rStream, Graphic& rGraphic,
{
uno::Sequence<sal_Int8> aPdfData;
Bitmap aBitmap;
- bool bRet = ImportPDF(rStream, aBitmap, 0, aPdfData,
- STREAM_SEEK_TO_BEGIN,
- STREAM_SEEK_TO_END, 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.