1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
10 #ifndef INCLUDED_VCL_SOURCE_FILTER_IPDF_PDFREAD_HXX
11 #define INCLUDED_VCL_SOURCE_FILTER_IPDF_PDFREAD_HXX
14 #include <tools/stream.hxx>
24 template <typename
> class Sequence
;
34 /// Imports a PDF stream into rGraphic as a GDIMetaFile.
35 VCL_DLLPUBLIC
bool ImportPDF(SvStream
& rStream
, Bitmap
& rBitmap
, size_t nPageIndex
,
36 css::uno::Sequence
<sal_Int8
>& rPdfData
,
37 sal_uInt64 nPos
= STREAM_SEEK_TO_BEGIN
,
38 sal_uInt64 nSize
= STREAM_SEEK_TO_END
, double fResolutionDPI
= 96.);
40 VCL_DLLPUBLIC
bool ImportPDF(SvStream
& rStream
, Graphic
& rGraphic
, double fResolutionDPI
= 96.);
42 VCL_DLLPUBLIC
size_t ImportPDF(const OUString
& rURL
, std::vector
<Bitmap
>& rBitmaps
,
43 css::uno::Sequence
<sal_Int8
>& rPdfData
, double fResolutionDPI
= 96.);
46 #endif // INCLUDED_VCL_SOURCE_FILTER_IPDF_PDFREAD_HXX
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */