Hi,
When using "[annotation SetFlag:e_ptannot_read_only value:YES]" on an annotation, the annotation still editable.
I have the same behavior for "e_ptprint_annot"
Any suggestions ?
Hi,
When using "[annotation SetFlag:e_ptannot_read_only value:YES]" on an annotation, the annotation still editable.
I have the same behavior for "e_ptprint_annot"
Any suggestions ?
You would modify the PanTool.m file, in particular the locations where nextToolType = [AnnotEditTool class]; is called.
Note that the read_only flag doesn’t apply to Widget (fields) annotation types.
If this doesn’t help, please clarify your objective, and why read_only is important for you.
Thanks for your reply.
We don’t have access to your .m, we use your SDK.
We need read_only to lock annotations that already exist on the document.
I faced it up by overriding PDFViewCtrl and check if there is a server id for the selected annotation :
`
CGPoint point = [gestureRecognizer locationInView:self];
PTAnnot* annot = [self annotFromPoint:point]
if ([annot IsValid]) {
if ([annot customId]) {
[super handleTap:gestureRecognizer];
NSLog(@“Valid Annotation with Custom ID : %@”, [annot customId]);
}
}
`
Le samedi 25 février 2017 02:03:58 UTC+1, Ryan a écrit :
You would modify the PanTool.m file, in particular the locations where nextToolType = [AnnotEditTool class]; is called.
Note that the read_only flag doesn’t apply to Widget (fields) annotation types.
If this doesn’t help, please clarify your objective, and why read_only is important for you.