Poppler CPP 25.12.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:
35 ~embedded_file();
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 time_t modification_date_t() const;
43 time_t creation_date_t() const;
44 byte_array checksum() const;
45 std::string mime_type() const;
46 byte_array data() const;
47
48private:
49 explicit embedded_file(embedded_file_private &dd);
50
51 embedded_file_private *d;
52 friend class embedded_file_private;
53};
54
55}
56
57#endif
bool is_valid() const
Definition poppler-embedded-file.cpp:65
std::string name() const
Definition poppler-embedded-file.cpp:73
byte_array checksum() const
Definition poppler-embedded-file.cpp:134
ustring unicodeName() const
Definition poppler-embedded-file.cpp:82
time_t creation_date_t() const
Definition poppler-embedded-file.cpp:124
ustring description() const
Definition poppler-embedded-file.cpp:91
time_t modification_date_t() const
Definition poppler-embedded-file.cpp:113
int size() const
Definition poppler-embedded-file.cpp:103
byte_array data() const
Reads all the data of the embedded file.
Definition poppler-embedded-file.cpp:164
std::string mime_type() const
Definition poppler-embedded-file.cpp:152
Definition poppler-global.h:101
Single namespace containing all the classes and functions of poppler-cpp.
Definition poppler-destination.h:27