Пример #1
0
 internal RootTagNormalizer(TagStructureContext context, PdfStructElem rootTagElement, PdfDocument document
                            )
 {
     this.context        = context;
     this.rootTagElement = rootTagElement;
     this.document       = document;
 }
Пример #2
0
 /// <summary>
 /// Creates
 /// <c>TagTreePointer</c>
 /// instance. After creation
 /// <c>TagTreePointer</c>
 /// points at the root tag.
 /// <p>
 /// The
 /// <see cref="iText.Kernel.Pdf.Tagging.PdfNamespace"/>
 /// for the new tags, which don't explicitly define namespace by the means of
 /// <see cref="DefaultAccessibilityProperties.SetNamespace(iText.Kernel.Pdf.Tagging.PdfNamespace)"/>
 /// , is set to the value returned by
 /// <see cref="TagStructureContext.GetDocumentDefaultNamespace()"/>
 /// on
 /// <see cref="TagTreePointer"/>
 /// creation.
 /// See also
 /// <see cref="SetNamespaceForNewTags(iText.Kernel.Pdf.Tagging.PdfNamespace)"/>
 /// .
 /// </p>
 /// </summary>
 /// <param name="document">the document, at which tag structure this instance will point.</param>
 public TagTreePointer(PdfDocument document)
 {
     // '-1' value of this field means that next new kid will be the last element in the kids array
     tagStructureContext = document.GetTagStructureContext();
     SetCurrentStructElem(tagStructureContext.GetRootTag());
     SetNamespaceForNewTags(tagStructureContext.GetDocumentDefaultNamespace());
 }
Пример #3
0
 /// <summary>A copy constructor.</summary>
 /// <param name="tagPointer">
 /// the
 /// <c>TagTreePointer</c>
 /// from which current position and page are copied.
 /// </param>
 public TagTreePointer(iText.Kernel.Pdf.Tagutils.TagTreePointer tagPointer)
 {
     this.tagStructureContext = tagPointer.tagStructureContext;
     SetCurrentStructElem(tagPointer.GetCurrentStructElem());
     this.currentPage   = tagPointer.currentPage;
     this.contentStream = tagPointer.contentStream;
 }
Пример #4
0
 internal TagTreePointer(PdfStructElem structElem, PdfDocument document)
 {
     tagStructureContext = document.GetTagStructureContext();
     SetCurrentStructElem(structElem);
 }
Пример #5
0
 /// <summary>
 /// Creates
 /// <c>TagTreePointer</c>
 /// instance.
 /// </summary>
 /// <remarks>
 /// Creates
 /// <c>TagTreePointer</c>
 /// instance. After creation
 /// <c>TagTreePointer</c>
 /// points at the root tag.
 /// <para />
 /// The
 /// <see cref="iText.Kernel.Pdf.Tagging.PdfNamespace"/>
 /// for the new tags, which don't explicitly define namespace by the means of
 /// <see cref="DefaultAccessibilityProperties.SetNamespace(iText.Kernel.Pdf.Tagging.PdfNamespace)"/>
 /// , is set to the value returned by
 /// <see cref="TagStructureContext.GetDocumentDefaultNamespace()"/>
 /// on
 /// <see cref="TagTreePointer"/>
 /// creation.
 /// See also
 /// <see cref="SetNamespaceForNewTags(iText.Kernel.Pdf.Tagging.PdfNamespace)"/>.
 /// </remarks>
 /// <param name="document">the document, at which tag structure this instance will point.</param>
 public TagTreePointer(PdfDocument document)
 {
     tagStructureContext = document.GetTagStructureContext();
     SetCurrentStructElem(tagStructureContext.GetRootTag());
     SetNamespaceForNewTags(tagStructureContext.GetDocumentDefaultNamespace());
 }