iText7 508表格摘要 [英] iText7 508 Table Summary
本文介绍了iText7 508表格摘要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们正在使用iText 7创建一个大表,几乎可以解决508个投诉,但是我们缺少表摘要规则.
We are creating a large table using iText 7 we are almost fully 508 complaint however we are missing the table summary rule.
有没有一种方法可以在创建时使用iText 7添加表摘要?
Is there a way to add the table summary at creation time using iText 7?
我已附上我要寻找的照片.
I have attached a picture of what I am looking for.
推荐答案
可以将AccessibilityProperties添加到Table对象本身.该摘要需要通过PdfDictionary添加.
It is possible to add AccessibilityProperties to the Table object itself. The Summary needs to be added through a PdfDictionary
PdfDictionary attr = new PdfDictionary();
attr.put(new PdfName("Summary"), new PdfString("Info about the table"));
table.getAccessibilityProperties().addAttributes(new PdfStructureAttributes(attr));
可以在此处找到ApiDocs
这篇关于iText7 508表格摘要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文