From 571755b3653bb06586e7cae232d1ca943719a732 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Fri, 13 Mar 2020 20:04:45 +0100 Subject: pdfium: support for pages when using PDF import with pdfium MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90562 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl (cherry picked from commit 27ee05f860e8225a41e15e0853fcef00a9d7a621) Change-Id: Ib915216b8d4c0c063d0fead44ff156b1915a35d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90844 Tested-by: Tomaž Vajngerl Reviewed-by: Tomaž Vajngerl --- offapi/com/sun/star/graphic/XPdfDecomposer.idl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'offapi') diff --git a/offapi/com/sun/star/graphic/XPdfDecomposer.idl b/offapi/com/sun/star/graphic/XPdfDecomposer.idl index 85b38c035c8c..aae6eda55347 100644 --- a/offapi/com/sun/star/graphic/XPdfDecomposer.idl +++ b/offapi/com/sun/star/graphic/XPdfDecomposer.idl @@ -27,9 +27,15 @@ interface XPdfDecomposer : ::com::sun::star::uno::XInterface @param xPdfData The PDF data. + @param xDecompositionParameters + Parameters for decomposition. Parameters include: + + sal_Int32 Page - which page to use + @since LibreOffice 7.0 */ - sequence getDecomposition([in] sequence xPdfData); + sequence getDecomposition([in] sequence xPdfData, + [in] sequence xDecompositionParameters); }; }; }; }; }; -- cgit