mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Create outline for a document
This commit is contained in:
@ -23,6 +23,18 @@
|
||||
namespace pdf
|
||||
{
|
||||
|
||||
size_t PDFOutlineItem::getTotalCount() const
|
||||
{
|
||||
size_t count = m_children.size();
|
||||
|
||||
for (size_t i = 0; i < m_children.size(); ++i)
|
||||
{
|
||||
count += getChild(i)->getTotalCount();
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
QSharedPointer<PDFOutlineItem> PDFOutlineItem::parse(const PDFDocument* document, const PDFObject& root)
|
||||
{
|
||||
const PDFObject& rootDereferenced = document->getObject(root);
|
||||
|
Reference in New Issue
Block a user