MLBookProc
2.1
Toggle main menu visibility
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
29
class
PDFParser
30
{
31
public
:
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
76
getHorizontalDPI
();
77
83
double
84
getVerticalDPI
();
85
86
private
:
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
BaseID
The BaseID class.
Definition
BaseID.h:28
PDFParser::PDFParser
PDFParser(const std::shared_ptr< MLBookProc > &mlbp)
PDFParser constructor.
PDFParser::setDPI
void setDPI(const double &horizontal_dpi=double(72.0), const double &vertical_dpi=double(72.0))
PDFParser::getVerticalDPI
double getVerticalDPI()
PDFParser::parseBook
UDBElement parseBook(const std::string &book_content)
PDFParser::getHorizontalDPI
double getHorizontalDPI()
PDFParser::getBookInfo
UDBase getBookInfo(const std::string &book_content)
PDFParser.h
Generated by
1.17.0