FOSSredder 0.5.0
Loading...
Searching...
No Matches
PopplerCore.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <vector>
9#include <string>
10#include <memory>
11#include <filesystem>
12#include <atomic>
14
15namespace core::ports::diagnostics { class IDiagnostics; }
16
18public:
30 static std::vector<core::ports::pdf_rendering::RenderedPage> renderDocument(const std::string& path,
31 double dpi,
32 const std::filesystem::path& outputDir = std::filesystem::path(),
33 const std::string& uniqIdPrefix = "",
34 const std::string& filePrefix = "",
35 std::shared_ptr<core::ports::diagnostics::IDiagnostics> dbg = nullptr,
36 std::shared_ptr<std::atomic<bool>> cancelFlag = nullptr);
37
49 static std::vector<core::ports::pdf_rendering::RenderedPage> extractDocumentMeta(const std::string& path,
50 double dpi,
51 const std::filesystem::path& outputDir = std::filesystem::path(),
52 const std::string& uniqIdPrefix = "",
53 const std::string& filePrefix = "",
54 std::shared_ptr<core::ports::diagnostics::IDiagnostics> dbg = nullptr,
55 std::shared_ptr<std::atomic<bool>> cancelFlag = nullptr);
56};
Shared PDF rendering data types.
static std::vector< core::ports::pdf_rendering::RenderedPage > renderDocument(const std::string &path, double dpi, const std::filesystem::path &outputDir=std::filesystem::path(), const std::string &uniqIdPrefix="", const std::string &filePrefix="", std::shared_ptr< core::ports::diagnostics::IDiagnostics > dbg=nullptr, std::shared_ptr< std::atomic< bool > > cancelFlag=nullptr)
Extracts document metadata and page text elements from a PDF file.
static std::vector< core::ports::pdf_rendering::RenderedPage > extractDocumentMeta(const std::string &path, double dpi, const std::filesystem::path &outputDir=std::filesystem::path(), const std::string &uniqIdPrefix="", const std::string &filePrefix="", std::shared_ptr< core::ports::diagnostics::IDiagnostics > dbg=nullptr, std::shared_ptr< std::atomic< bool > > cancelFlag=nullptr)
Extracts page metadata without rendering the page bitmap.
Port for writing optional diagnostic artifacts.