如何创建“回复”到iText中的便签注释 [英] How to create "reply" to sticky note annotation in iText

查看:190
本文介绍了如何创建“回复”到iText中的便签注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用iText创建对粘滞便笺注释的回复,有没有人知道如何做到这一点?

I trying to create "reply" to sticky note annotation using iText, does anyone know how to do that?

另一个问题:如何修改注释日期?

Another question: how to modify the date of annotation?

推荐答案

看一下这样一个注释的内部结构,我看到以下内容:

Taking a look at the innards of just such an annotation, I see the following:


  1. 带有相同边界框的新文本注释注释

  2. 带有相同边界框的新弹出注释

新文本annot在其字典中有一个IRT(关于?)键,它是对第一个文本注释的间接引用。

The new text annot has an IRT (in regards to?) key in its dictionary that is an indirect reference to the first text annotation.

创建日期存储在CreationDate键中,修改日期存储在M下。显示回复1的文本显示在T键中。

The creation date is stored in the "CreationDate" key, the modification date is stored under "M". The text displayed where you see "Reply 1" is in the "T" key.

所有这些都需要您通过它继承的方法直接操作注释 PdfDictionary 特别是put()

All this stuff requires that you directly manipulate the annotation via the methods it inherits from PdfDictionary, put() in particular.

你'我需要阅读 PDF参考很多,特别是第7章第3节和第12章第5节。

You'll need to read the PDF Reference a lot, particularly chapter 7 section 3, and chapter 12 section 5.

好狩猎。

这篇关于如何创建“回复”到iText中的便签注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆