FOSSredder 0.5.0
Loading...
Searching...
No Matches
ImportStatementStrategy.h
Go to the documentation of this file.
1
5
6#pragma once
7
9
10#include <memory>
11
13class IPdfRenderer;
14}
17}
19class ITextRecognizer;
20}
21
23
25public:
26 virtual ~IImportStatementStrategy() = default;
27 virtual ImportResult run(const ImportRequest& req) = 0;
28};
29
30std::unique_ptr<IImportStatementStrategy> createDefaultImportStrategy(std::shared_ptr<core::ports::pdf_rendering::IPdfRenderer> poppler,
31 std::shared_ptr<core::ports::document_image_processing::IDocumentImageProcessor> documentImageProcessor,
32 std::shared_ptr<core::ports::text_recognition::ITextRecognizer> tesseract,
33 std::shared_ptr<core::ports::diagnostics::IErrorReporter> errorReporter);
34
35}
Declares the public statement import service interface and factory.
virtual ImportResult run(const ImportRequest &req)=0
Processes document images for the import pipeline.
Renders and extracts PDF content.
Extracts recognized text from image data.
std::unique_ptr< IImportStatementStrategy > createDefaultImportStrategy(std::shared_ptr< core::ports::pdf_rendering::IPdfRenderer > poppler, std::shared_ptr< core::ports::document_image_processing::IDocumentImageProcessor > documentImageProcessor, std::shared_ptr< core::ports::text_recognition::ITextRecognizer > tesseract, std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter)