working build of new podofo pdf system

This commit is contained in:
Chris Cochrun 2022-09-23 15:07:21 -05:00
parent 02f2d70ad3
commit 6a8266f1f1
4 changed files with 27 additions and 1 deletions

View file

@ -24,6 +24,7 @@ target_link_libraries(presenter
Qt5::X11Extras
KF5::Kirigami2
KF5::I18n
podofo
mpv
)

View file

@ -5,6 +5,7 @@
#include <podofo/podofo.h>
#include <QDebug>
using namespace PoDoFo;
Slide::Slide(QObject *parent)
: QObject{parent}
{
@ -197,6 +198,13 @@ void Slide::changeSlide(QVariantMap item)
setImageBackground("");
}
if (type() == "pres") {
qDebug() << "#$#$#$#$ THIS PDF $#$#$#$#";
PdfMemDocument pdf = PdfMemDocument();
// const char doc = imageBackground();
// pdf.Load(doc);
}
QStringList text = m_serviceItem.value("text").toStringList();
if (text.isEmpty()) {
setText("");