private PdfStructElem GetCurrentElemEnsureIndirect() { PdfStructElem currentStructElem = GetCurrentStructElem(); if (currentStructElem.GetPdfObject().GetIndirectReference() == null) { currentStructElem.MakeIndirect(GetDocument()); } return(currentStructElem); }
internal virtual PdfStructElem MakeSingleStandardRootTag(IList <IStructureNode> rootKids) { document.GetStructTreeRoot().MakeIndirect(document); if (rootTagElement == null) { CreateNewRootTag(); } else { rootTagElement.MakeIndirect(document); document.GetStructTreeRoot().AddKid(rootTagElement); EnsureExistingRootTagIsDocument(); } AddStructTreeRootKidsToTheRootTag(rootKids); return(rootTagElement); }