Poppler CPP 25.10.90
poppler-embedded-file.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2009-2010, Pino Toscano <pino@kde.org>
3 * Copyright (C) 2021, 2022, Albert Astals Cid <aacid@kde.org>
4 * Copyright (C) 2025, Zsombor Hollay-Horvath <hollay.horvath@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21#ifndef POPPLER_EMBEDDED_FILE_H
22#define POPPLER_EMBEDDED_FILE_H
23
24#include "poppler-global.h"
25
26#include <vector>
27
28namespace poppler {
29
30class embedded_file_private;
31
32class POPPLER_CPP_EXPORT embedded_file : public poppler::noncopyable
33{
34public:
36
37 bool is_valid() const;
38 [[deprecated]] std::string name() const;
39 ustring unicodeName() const;
40 ustring description() const;
41 int size() const;
42 [[deprecated]] time_type modification_date() const;
43 [[deprecated]] time_type creation_date() const;
44 time_t modification_date_t() const;
45 time_t creation_date_t() const;
46 byte_array checksum() const;
47 std::string mime_type() const;
48 byte_array data() const;
49
50private:
51 explicit embedded_file(embedded_file_private &dd);
52
53 embedded_file_private *d;
54 friend class embedded_file_private;
55};
56
57}
58
59#endif
Represents a file embedded in a PDF document.
Definition poppler-embedded-file.h:33
Definition poppler-global.h:103
Single namespace containing all the classes and functions of poppler-cpp.
Definition poppler-destination.h:27