Ejemplo n.º 1
0
        internal virtual void ThrowExceptionIfRoleIsInvalid(AccessibilityProperties properties, PdfNamespace pointerCurrentNamespace
                                                            )
        {
            PdfNamespace @namespace = properties.GetNamespace();

            if (@namespace == null)
            {
                @namespace = pointerCurrentNamespace;
            }
            ThrowExceptionIfRoleIsInvalid(properties.GetRole(), @namespace);
        }
Ejemplo n.º 2
0
        private PdfStructElem AddNewKid(AccessibilityProperties properties)
        {
            PdfStructElem kid = new PdfStructElem(GetDocument(), PdfStructTreeRoot.ConvertRoleToPdfName(properties.GetRole
                                                                                                            ()));

            AccessibilityPropertiesToStructElem.Apply(properties, kid);
            ProcessKidNamespace(kid);
            return(AddNewKid(kid));
        }