/** * Creates a new instance of PdfStructureElement. * @param parent the parent of this node * @param structureType the type of structure. It may be a standard type or a user type mapped by the role map */ public PdfStructureElement(PdfStructureElement parent, PdfName structureType) { top = parent.top; Init(parent, structureType); this.parent = parent; Put(PdfName.P, parent.reference); }
/** * Creates a new instance of PdfStructureElement. * @param parent the parent of this node * @param structureType the type of structure. It may be a standard type or a user type mapped by the role map */ public PdfStructureElement(PdfStructureTreeRoot parent, PdfName structureType) { top = parent; Init(parent, structureType); Put(PdfName.P, parent.Reference); }