예제 #1
0
        private PdfStructElem AddNewKid(AccessibilityProperties properties)
        {
            PdfStructElem kid = new PdfStructElem(GetDocument(), PdfStructTreeRoot.ConvertRoleToPdfName(properties.GetRole
                                                                                                            ()));

            AccessibilityPropertiesToStructElem.Apply(properties, kid);
            ProcessKidNamespace(kid);
            return(AddNewKid(kid));
        }
예제 #2
0
        public override AccessibilityProperties AddAttributes(int index, PdfStructureAttributes attributes)
        {
            if (attributes == null)
            {
                return(this);
            }
            PdfObject attributesObject   = GetBackingElem().GetAttributes(false);
            PdfObject combinedAttributes = AccessibilityPropertiesToStructElem.CombineAttributesList(attributesObject,
                                                                                                     index, JavaCollectionsUtil.SingletonList(attributes), GetBackingElem().GetPdfObject().GetAsNumber(PdfName
                                                                                                                                                                                                       .R));

            GetBackingElem().SetAttributes(combinedAttributes);
            return(this);
        }