diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2020-03-13 20:04:45 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-06-06 19:24:24 +0200 |
commit | c298489ba242b298e09e78069587e6f4707614af (patch) | |
tree | d2404f9454ddb3cef4409dad86f1cd7f337c609c /vcl/inc | |
parent | 15834ad4dee944374f4b6298f2d384d185a49815 (diff) |
pdfium: support for pages when using PDF import with pdfium
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
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 27ee05f860e8225a41e15e0853fcef00a9d7a621)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95628
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/impgraph.hxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx index d49856011996..251a189c906a 100644 --- a/vcl/inc/impgraph.hxx +++ b/vcl/inc/impgraph.hxx @@ -77,11 +77,6 @@ private: std::chrono::high_resolution_clock::time_point maLastUsed; bool mbPrepared; - /// Used with GfxLink and/or PdfData when they store original media - /// which might be multi-page (PDF, f.e.) and we need to re-render - /// this Graphic (a page) from the source in GfxLink or PdfData. - sal_Int32 mnPageNumber; - public: ImpGraphic(); ImpGraphic( const ImpGraphic& rImpGraphic ); @@ -208,6 +203,8 @@ private: bool ensureAvailable () const; bool loadPrepared(); + + sal_Int32 getPageNumber() const; }; #endif // INCLUDED_VCL_INC_IMPGRAPH_HXX |