MLBookProc 1.1
 
Loading...
Searching...
No Matches
PDFParser.h
1/*
2 * Copyright (C) 2024-2025 Yury Bobylev <bobilev_yury@mail.ru>
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation, version 3.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program. If not, see <https://www.gnu.org/licenses/>.
15 */
16
17#ifndef PDFPARSER_H
18#define PDFPARSER_H
19
20#include <AuxFunc.h>
21#include <BookInfoEntry.h>
22#include <BookParseEntry.h>
23#include <memory>
24#include <string>
25
34{
35public:
40 PDFParser(const std::shared_ptr<AuxFunc> &af);
41
48 pdf_parser(const std::string &file);
49
59 std::shared_ptr<BookInfoEntry>
60 pdf_annotation_n_cover(const std::string &file, const double &x_dpi,
61 const double &y_dpi);
62
63private:
64 std::shared_ptr<AuxFunc> af;
65};
66
67#endif // PDFPARSER_H
The BookParseEntry class.
Definition BookParseEntry.h:30
PDFParser(const std::shared_ptr< AuxFunc > &af)
PDFParser constructor.
std::shared_ptr< BookInfoEntry > pdf_annotation_n_cover(const std::string &file, const double &x_dpi, const double &y_dpi)
Returns pdf book annotation and cover.
BookParseEntry pdf_parser(const std::string &file)
Parses pdf file.