mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Editor plugin: Bugfixing
This commit is contained in:
@ -193,7 +193,12 @@ bool EditorPlugin::save()
|
||||
{
|
||||
pdf::PDFDocumentModifier modifier(m_document);
|
||||
|
||||
std::set<pdf::PDFInteger> pageIndices = m_scene.getPageIndices();
|
||||
std::set<pdf::PDFInteger> pageIndices;
|
||||
for (const auto& item : m_editedPageContent)
|
||||
{
|
||||
pageIndices.insert(item.first);
|
||||
}
|
||||
|
||||
auto elementsByPage = m_scene.getElementsByPage();
|
||||
for (pdf::PDFInteger pageIndex : pageIndices)
|
||||
{
|
||||
@ -221,6 +226,8 @@ bool EditorPlugin::save()
|
||||
const pdf::PDFPageContentImageElement* elementImage = element->asElementImage();
|
||||
const pdf::PDFPageContentElementTextBox* elementTextBox = element->asElementTextBox();
|
||||
|
||||
// TODO: Impelement all things
|
||||
|
||||
if (editedElement)
|
||||
{
|
||||
contentStreamBuilder.writeEditedElement(editedElement->getElement());
|
||||
|
Reference in New Issue
Block a user