TaggedContent

TaggedContent

Overview

TaggedContent is a class in Aspose.PDF FOSS for .NET. Inherits from: ITaggedContent.

Provides access to tagged PDF metadata (title, language) and the logical structure tree.

This class provides 41 methods for working with TaggedContent objects in .NET programs. Available methods include: CreateAnnotElement, CreateArtElement, CreateBibEntryElement, CreateBlockQuoteElement, CreateCaptionElement, CreateCodeElement, CreateDivElement, CreateFigureElement, CreateFormElement, CreateFormulaElement, CreateHeaderElement, CreateIndexElement, and 29 additional methods. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Language, RootElement, StructTreeRoot, StructTreeRootElement, StructureTextState, Title.

Properties

NameTypeAccessDescription
Titlestring?ReadThe document title (from the Info dictionary).
Languagestring?ReadThe document language (BCP 47 tag, from the catalog /Lang entry).
StructTreeRootAspose.Pdf.Tagged.StructTreeRoot?ReadRead-only view of the document’s structure-tree root (/StructTreeRoot), or null when the document is not tagged.
RootElementLS.StructureElementReadThe first top-level structure element under StructTreeRootElement (typically the auto-generated Document element).
StructTreeRootElementLS.StructTreeRootElementReadThe /StructTreeRoot wrapper hosting the document’s structure tree.
StructureTextStateLS.StructureTextStateReadDefault text-state used by inline structure elements that don’t specify their own.

Methods

SignatureDescription
SetTitle(title: string)Set the document title in the information dictionary.
SetLanguage(language: string)Set the document language (BCP 47 tag, e.g.
CreateAnnotElement()Create a TaggedContent instance. Returns null if the document is not tagged.
CreateArtElement()Calls CreateArtElement on this TaggedContent instance.
CreateBibEntryElement()Calls CreateBibEntryElement on this TaggedContent instance.
CreateBlockQuoteElement()Calls CreateBlockQuoteElement on this TaggedContent instance.
CreateCaptionElement()Calls CreateCaptionElement on this TaggedContent instance.
CreateCodeElement()Calls CreateCodeElement on this TaggedContent instance.
CreateDivElement()Calls CreateDivElement on this TaggedContent instance.
CreateFigureElement()Calls CreateFigureElement on this TaggedContent instance.
CreateFormElement()Create a TaggedContent instance for a new (potentially untagged) document.
CreateFormulaElement()Create a TaggedContent instance for a new (potentially untagged) document. Ensures the document has MarkInfo and StructTreeRoot.
CreateHeaderElement()Create a TaggedContent instance for a new (potentially untagged) document. Ensures the document has MarkInfo and StructTreeRoot. Creates an in-memory root element that does not depend on the PDF reader.
CreateIndexElement()Calls CreateIndexElement on this TaggedContent instance.
CreateLinkElement()Calls CreateLinkElement on this TaggedContent instance.
CreateListElement()Calls CreateListElement on this TaggedContent instance.
CreateListLBodyElement()Calls CreateListLBodyElement on this TaggedContent instance.
CreateListLIElement()Calls CreateListLIElement on this TaggedContent instance.
CreateListLblElement()Calls CreateListLblElement on this TaggedContent instance.
CreateNonStructElement()Calls CreateNonStructElement on this TaggedContent instance.
CreateNoteElement()Calls CreateNoteElement on this TaggedContent instance.
CreateParagraphElement()Calls CreateParagraphElement on this TaggedContent instance.
CreatePartElement()Calls CreatePartElement on this TaggedContent instance.
CreatePrivateElement()Calls CreatePrivateElement on this TaggedContent instance.
CreateQuoteElement()Calls CreateQuoteElement on this TaggedContent instance.
CreateReferenceElement()Calls CreateReferenceElement on this TaggedContent instance.
CreateRubyElement()Calls CreateRubyElement on this TaggedContent instance.
CreateSectElement()Calls CreateSectElement on this TaggedContent instance.
CreateSpanElement()Calls CreateSpanElement on this TaggedContent instance.
CreateTOCElement()Calls CreateTOCElement on this TaggedContent instance.
CreateTOCIElement()Calls CreateTOCIElement on this TaggedContent instance.
CreateTableElement()Calls CreateTableElement on this TaggedContent instance.
CreateTableTBodyElement()Calls CreateTableTBodyElement on this TaggedContent instance.
CreateTableTDElement()Calls CreateTableTDElement on this TaggedContent instance.
CreateTableTFootElement()Calls CreateTableTFootElement on this TaggedContent instance.
CreateTableTHElement()Calls CreateTableTHElement on this TaggedContent instance.
CreateTableTHeadElement()Calls CreateTableTHeadElement on this TaggedContent instance.
CreateTableTRElement()The document title (from the Info dictionary).
CreateWarichuElement()The document title (from the Info dictionary).
PreSave()Prepare the in-memory tree for serialisation.
Save()Flush the in-memory tree to the document’s StructTreeRoot dictionary so the next file save embeds the updated structure.

See Also