Aspose::Pdf::LogicalStructure::HeaderElement::AddEntryToTocPage method
HeaderElement::AddEntryToTocPage(const System::SharedPtr<Aspose::Pdf::Page>&, const System::SharedPtr<ListLIElement>&) method
Creates a header on the specified Table of Contents (TOC) page and associates it with a TOCI element.
void Aspose::Pdf::LogicalStructure::HeaderElement::AddEntryToTocPage(const System::SharedPtr<Aspose::Pdf::Page> &tocPage, const System::SharedPtr<ListLIElement> &tocEntry)
| Parameter | Type | Description |
|---|---|---|
| tocPage | const System::SharedPtr<Aspose::Pdf::Page>& | The Page object representing the TOC page where the header should be created. |
| tocEntry | const System::SharedPtr<ListLIElement>& | The ListLIElement object acting as the TOCI entry to associate with the created header on the specified TOC page. |
Remarks
This overload addresses scenarios involving nested Table of Contents (TOC) structures, as specified in PDF/UA and PDF 1.7 standards, where a TOCI element cannot be a child of another TOCI or where a TOC cannot be nested directly under a TOCI. To maintain compliance with these structural requirements, nested TOC entries should be represented using List and ListLIElement elements. This method facilitates the association of the header element with such a ListLIElement on the designated TOC page, ensuring proper logical structuring and enhancing navigation capabilities in tagged PDF documents.
See Also
- Typedef SharedPtr
- Class Page
- Class ListLIElement
- Class HeaderElement
- Namespace Aspose::Pdf::LogicalStructure
- Library Aspose.PDF for C++
HeaderElement::AddEntryToTocPage(const System::SharedPtr<Aspose::Pdf::Page>&, const System::SharedPtr<TOCIElement>&) method
Creates a header on the specified Table of Contents (TOC) page and associates it with a TOCI element.
void Aspose::Pdf::LogicalStructure::HeaderElement::AddEntryToTocPage(const System::SharedPtr<Aspose::Pdf::Page> &tocPage, const System::SharedPtr<TOCIElement> &tocEntry)
| Parameter | Type | Description |
|---|---|---|
| tocPage | const System::SharedPtr<Aspose::Pdf::Page>& | The Page object representing the TOC page where the header should be created. |
| tocEntry | const System::SharedPtr<TOCIElement>& | The TOCIElement serving as the TOC entry to associate with the header being created. |
Remarks
This method ensures that the header is properly linked to a TOC page and a TOCI element, maintaining the document’s logical hierarchy and supporting navigation in tagged PDF structures.
See Also
- Typedef SharedPtr
- Class Page
- Class TOCIElement
- Class HeaderElement
- Namespace Aspose::Pdf::LogicalStructure
- Library Aspose.PDF for C++