mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Copy Annotation onto Multiple Pages
This commit is contained in:
@ -78,9 +78,7 @@ PDFDocument PDFRedact::perform(Options options)
|
||||
}
|
||||
builder.setPageRotation(newPageReference, page->getPageRotation());
|
||||
|
||||
// TODO: Popisek redakce anotace, Overlay text
|
||||
// TODO: Redact searched text
|
||||
// TODO: Duplikace redakce na vice stranek
|
||||
|
||||
PDFPageContentStreamBuilder contentStreamBuilder(&builder);
|
||||
|
||||
@ -131,7 +129,12 @@ PDFDocument PDFRedact::perform(Options options)
|
||||
|
||||
if (options.testFlag(CopyOutline))
|
||||
{
|
||||
builder.setOutline(m_document->getCatalog()->getOutlineRootPtr().data());
|
||||
const PDFOutlineItem* outlineItem = m_document->getCatalog()->getOutlineRootPtr().data();
|
||||
|
||||
if (outlineItem)
|
||||
{
|
||||
builder.setOutline(outlineItem);
|
||||
}
|
||||
}
|
||||
|
||||
PDFDocument redactedDocument = builder.build();
|
||||
@ -141,5 +144,4 @@ PDFDocument PDFRedact::perform(Options options)
|
||||
return optimizer.takeOptimizedDocument();
|
||||
}
|
||||
|
||||
|
||||
} // namespace pdf
|
||||
|
Reference in New Issue
Block a user