我为Winforms使用了PdfNet (C#)。
我希望能够在文本下划线,所以我创建了这样一个下划线注释:
Annot underlineAnnot = Annot.Create(m_document, Annot.Type.e_Underline, rect)
underlineAnnot.SetFlag(Annot.Flag.e_read_only);根据这个页面,不可能移动只读注释:Flag.htm
但是当我用工具模式e_annot_edit移动它时,它实际上是移动的.
我如何“锁定”注释,使其不对鼠标事件作出反应?
发布于 2016-08-09 00:44:02
当前,查看器并不强制只读。
你可以自己轻松地做这件事。
创建具有下列签名的委托方法。
return false to allow editing, otherwise return true
public bool edit_annot_proc(Annot annot, object obj)
{
return annot.GetFlag(Annot.Flag.e_read_only);
}然后在创建PDFViewCtrl对象时注册回调
mypdfviewctrl.SetAnnotationEditPermissionHandler(edit_annot_proc, null);https://stackoverflow.com/questions/38789967
复制相似问题