MCPcopy Create free account
hub / github.com/Robotips/uConfig / PDFLoader

Method PDFLoader

src/pdf_extract/controller/pdfloader.cpp:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include <QDebug>
25
26PDFLoader::PDFLoader(PDFDatasheet *pdfDatasheet)
27 : _pdfDatasheet(pdfDatasheet)
28{
29 _document = Poppler::Document::load(_pdfDatasheet->_fileName);
30 _pdfDatasheet->_pageCount = _document->numPages();
31 _pdfDatasheet->_title = _document->info("Title");
32
33 _document->setRenderBackend(Poppler::Document::ArthurBackend);
34 _document->setRenderHint(Poppler::Document::Antialiasing, true);
35 _document->setRenderHint(Poppler::Document::TextAntialiasing, true);
36}
37
38PDFLoader::~PDFLoader()
39{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected