FOSSredder 0.5.0
Loading...
Searching...
No Matches
PopplerCore Class Reference

#include <PopplerCore.h>

Static Public Member Functions

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.

Detailed Description

Definition at line 17 of file PopplerCore.h.

Member Function Documentation

◆ extractDocumentMeta()

std::vector< ports::RenderedPage > PopplerCore::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 )
static

Extracts page metadata without rendering the page bitmap.

Parameters
pathThe source PDF file path.
dpiThe logical render resolution used for coordinate conversion.
outputDirOptional debug output directory.
uniqIdPrefixOptional unique prefix for generated artifacts.
filePrefixOptional file name prefix for generated artifacts.
dbgOptional debugger used for trace output.
cancelFlagOptional cancellation flag for early exit.
Returns
The extracted page metadata.

Definition at line 141 of file PopplerCore.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renderDocument()

std::vector< ports::RenderedPage > PopplerCore::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 )
static

Extracts document metadata and page text elements from a PDF file.

Parameters
pathThe source PDF file path.
dpiThe logical render resolution used for coordinate conversion.
outputDirOptional debug output directory.
uniqIdPrefixOptional unique prefix for generated artifacts.
filePrefixOptional file name prefix for generated artifacts.
dbgOptional debugger used for trace output.
cancelFlagOptional cancellation flag for early exit.
Returns
The extracted page metadata.

Definition at line 167 of file PopplerCore.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: