#include <PopplerCore.h>
|
| 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.
|
Definition at line 17 of file PopplerCore.h.
◆ 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
-
| path | The source PDF file path. |
| dpi | The logical render resolution used for coordinate conversion. |
| outputDir | Optional debug output directory. |
| uniqIdPrefix | Optional unique prefix for generated artifacts. |
| filePrefix | Optional file name prefix for generated artifacts. |
| dbg | Optional debugger used for trace output. |
| cancelFlag | Optional cancellation flag for early exit. |
- Returns
- The extracted page metadata.
Definition at line 141 of file PopplerCore.cpp.
◆ 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
-
| path | The source PDF file path. |
| dpi | The logical render resolution used for coordinate conversion. |
| outputDir | Optional debug output directory. |
| uniqIdPrefix | Optional unique prefix for generated artifacts. |
| filePrefix | Optional file name prefix for generated artifacts. |
| dbg | Optional debugger used for trace output. |
| cancelFlag | Optional cancellation flag for early exit. |
- Returns
- The extracted page metadata.
Definition at line 167 of file PopplerCore.cpp.
The documentation for this class was generated from the following files: