LibreOffice Module vcl (master)  1
pdfread.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef INCLUDED_VCL_SOURCE_FILTER_IPDF_PDFREAD_HXX
11 #define INCLUDED_VCL_SOURCE_FILTER_IPDF_PDFREAD_HXX
12 
13 #include <vector>
14 #include <tools/gen.hxx>
15 #include <tools/stream.hxx>
16 
17 namespace com::sun::star::uno
18 {
19 template <typename> class Sequence;
20 }
21 class Bitmap;
22 class Graphic;
23 
24 namespace vcl
25 {
27 VCL_DLLPUBLIC size_t RenderPDFBitmaps(const void* pBuffer, int nSize, std::vector<Bitmap>& rBitmaps,
28  size_t nFirstPage = 0, int nPages = 1,
29  double fResolutionDPI = 96.);
30 
32 VCL_DLLPUBLIC bool ImportPDF(SvStream& rStream, Graphic& rGraphic);
33 
36 VCL_DLLPUBLIC size_t ImportPDFUnloaded(const OUString& rURL,
37  std::vector<std::pair<Graphic, Size>>& rGraphics);
38 }
39 
40 #endif // INCLUDED_VCL_SOURCE_FILTER_IPDF_PDFREAD_HXX
41 
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
size_t ImportPDFUnloaded(const OUString &rURL, std::vector< std::pair< Graphic, Size >> &rGraphics)
Import PDF as Graphic images (1 per page), but not loaded yet.
Definition: pdfread.cxx:237
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
size_t RenderPDFBitmaps(const void *pBuffer, int nSize, std::vector< Bitmap > &rBitmaps, const size_t nFirstPage, int nPages, const double fResolutionDPI)
Fills the rBitmaps vector with rendered pages.
Definition: pdfread.cxx:151
bool ImportPDF(SvStream &rStream, Graphic &rGraphic)
Imports a PDF stream into rGraphic as VectorGraphicData.
Definition: pdfread.cxx:224