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
33
class
PDFParser
34
{
35
public
:
40
PDFParser
(
const
std::shared_ptr<AuxFunc> &af);
41
47
BookParseEntry
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
63
private
:
64
std::shared_ptr<AuxFunc> af;
65
};
66
67
#endif
// PDFPARSER_H
BookParseEntry
The BookParseEntry class.
Definition
BookParseEntry.h:30
PDFParser::PDFParser
PDFParser(const std::shared_ptr< AuxFunc > &af)
PDFParser constructor.
PDFParser::pdf_annotation_n_cover
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.
PDFParser::pdf_parser
BookParseEntry pdf_parser(const std::string &file)
Parses pdf file.
PDFParser.h
Generated by
1.13.2