private PdfStructElem GetCurrentElemEnsureIndirect()
        {
            PdfStructElem currentStructElem = GetCurrentStructElem();

            if (currentStructElem.GetPdfObject().GetIndirectReference() == null)
            {
                currentStructElem.MakeIndirect(GetDocument());
            }
            return(currentStructElem);
        }
Exemple #2
0
 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);
 }