c# - 在 PAC 2.0 中,iTextSharp 表格单元格不会通过 ScreenReader 查看器换行
问题描述
我使用 iTextSharp 创建 PDF 文档。添加了表格。通过 PAC 2.0 检查 PDF 的可访问性。当我通过 PAC 工具的“ScreenReader Preview”选项阅读文档时,表格单元格没有被包装。PDF 文档按预期生成表格。在下面的代码中使用。
PdfPTable table = new PdfPTable(3);
table.TotalWidth = 500f;
table.LockedWidth = true;
float[] widths = new float[] { 20f, 60f, 60f};
table.SetWidths(widths);
PdfPCell cell = new PdfPCell(new Phrase("text 1", times));
table.AddCell(cell);
cell = new PdfPCell(new Phrase("text 2", times));
table.AddCell(cell);
cell = new PdfPCell(new Phrase("text 3", times));
table.AddCell(cell);
我该如何解决这个问题?
谢谢
解决方案
推荐阅读
- java - 为什么我们不需要初始化实例变量
- javascript - 如何按键排序对象数组?无法正确处理
- php - 在 php 和 sql 中创建访客结帐
- javascript - 触摸/单击和输入事件侦听器未触发 iOS
- python - 如何在 Pandas Dataframe 中向 datetime64 对象添加分钟
- ruby-on-rails - 一个模型在另一个模型中的 CRUD
- react-native - 尽管样式表中的样式,但文本未居中
- linux - 如何使用 ssh-add 从代理中删除身份(pem 文件)
- java - 将整数值添加到数据库表错误
- javascript - 为什么我的 javascript 代码不起作用,即使它在网站 JSFiddle 上工作?文本框的按钮编辑值