-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·31 lines (23 loc) · 786 Bytes
/
Copy pathmain.cpp
File metadata and controls
executable file
·31 lines (23 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <QCoreApplication>
#include <QDebug>
#include "pdfparser/bank.h"
#include "pdfparser/bankFactory.h"
using pdfparser::BankFactory;
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
auto bank = BankFactory::create(QStringLiteral("estado"),
QStringLiteral("debit"));
if (!bank) {
qWarning() << "No concrete bank implementation registered.";
return 1;
}
const QString filePath =
QStringLiteral("files/Ultimos_Movimientos_CuentaRUT.pdf");
qDebug().noquote() << "==== Raw PDF text dump ====";
bank->printBankFile(filePath);
qDebug().noquote() << "==== Parsed transactions ====";
bank->readBankMovements(filePath);
bank->dumpTransactions();
return 0;
}