pdfium: support for pages when using PDF import with pdfium

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 18 March 2020 08:23 EDT

Moving PDF to use VectorGraphicData in Graphic has temporary removed the support for showing different PDF pages when opening the PDF using pdfium (LO_IMPORT_USE_PDFIUM=1). This adds the support for back by specifying whcih PDF page to render when creating the VectorGraphicData (and can't be changd afterwards), which is used to create a Graphic and contains the PDF source data array.

Change-Id: Ib915216b8d4c0c063d0fead44ff156b1915a35d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90562

27ee05f860e8 pdfium: support for pages when using PDF import with pdfium
filter/source/pdf/pdfdecomposer.cxx | 28 ++++++++++++++++-----
include/vcl/graph.hxx | 2 --
include/vcl/vectorgraphicdata.hxx | 12 ++++++---
offapi/com/sun/star/graphic/XPdfDecomposer.idl | 8 +++++-
sd/qa/unit/import-tests.cxx | 15 +++++++-----
vcl/inc/impgraph.hxx | 7 ++----
vcl/source/filter/ipdf/pdfread.cxx | 18 ++++----------
vcl/source/gdi/graph.cxx | 7 +-----
vcl/source/gdi/impgraph.cxx | 34 +++++++++++---------------
vcl/source/gdi/vectorgraphicdata.cxx | 22 +++++++++++++----
10 files changed, 85 insertions(+), 68 deletions(-)

Upstream: cgit.freedesktop.org


  • Share