Debian Codegraph @

podofo/tools/podofopdfinfo/pdfinfo.h

raw
1 /**
2 * SPDX-FileCopyrightText: (C) 2005 Dominik Seichter <[email protected]>
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
6 #ifndef PDFINFO_H
7 #define PDFINFO_H
8
9 #include <ostream>
10 #include <podofo/podofo.h>
11
12 class PdfInfoHelper
13 {
14 public:
15 PdfInfoHelper(const std::string& filepath);
16 virtual ~PdfInfoHelper();
17
18 void OutputDocumentInfo(std::ostream& outStream);
19 void OutputInfoDict(std::ostream& outStream);
20 void OutputPageInfo(std::ostream& outStream);
21 void OutputOutlines(std::ostream& outStream, PoDoFo::PdfOutlineItem* first = nullptr, int level = 0);
22 void OutputNames(std::ostream& outStream);
23
24 private:
25 PoDoFo::PdfMemDocument* m_doc;
26
27 void OutputOneName(std::ostream& outStream, PoDoFo::PdfNameTrees& names,
28 PoDoFo::PdfKnownNameTree treeName, const std::string_view& title);
29 std::string GuessFormat();
30 };
31
32 #endif // PDFINFO_H