MLBookProc 2.1
Loading...
Searching...
No Matches
PDFParser.h
1/*
2 * Copyright (C) 2026 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#ifndef PDFPARSER_H
17#define PDFPARSER_H
18
19#include <BaseID.h>
20#include <MLBookProc.h>
21#include <UDBase.h>
22
30{
31public:
36 PDFParser(const std::shared_ptr<MLBookProc> &mlbp);
37
46 UDBElement
47 parseBook(const std::string &book_content);
48
57 UDBase
58 getBookInfo(const std::string &book_content);
59
66 void
67 setDPI(const double &horizontal_dpi = double(72.0),
68 const double &vertical_dpi = double(72.0));
69
75 double
77
83 double
85
86private:
87 void
88 normalizeString(std::string &str);
89
90 std::shared_ptr<MLBookProc> mlbp;
91
92 double horizontal_dpi = 72.0;
93 double vertical_dpi = 72.0;
94
95 BaseID bid;
96};
97
98#endif // PDFPARSER_H
The BaseID class.
Definition BaseID.h:28
PDFParser(const std::shared_ptr< MLBookProc > &mlbp)
PDFParser constructor.
void setDPI(const double &horizontal_dpi=double(72.0), const double &vertical_dpi=double(72.0))
double getVerticalDPI()
UDBElement parseBook(const std::string &book_content)
double getHorizontalDPI()
UDBase getBookInfo(const std::string &book_content)