Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.

All readonly fields are editable

More
IP: 192.168.0.71 8 years 7 months ago #12671 by dpetrov
Hi!

I have made a pdf form where some acro fields are read only, but when I open this pdf with a radaee plugin for cordova - all of the acro fields are editable.
Is it possible to make only non-readonly fields editable?
More
IP: 192.168.0.71 8 years 7 months ago #12719 by emanuele
Hi,

you can check if the annotation is readonly with [PDFAnnot isReadonly].
In PDFView class, you can edit the onSingleTap method where it checks if the annotation is an edit text:
Code:
NSString *nuri = [m_annot getEditText]; if (nuri) { if (m_delegate) { CGRect annotRect; annotRect.origin.x = m_annot_rect.left / m_scale; annotRect.origin.y = m_annot_rect.top / m_scale; annotRect.size.width = (m_annot_rect.right - m_annot_rect.left)/m_scale; annotRect.size.height = (m_annot_rect.bottom - m_annot_rect.top)/m_scale; [m_delegate OnAnnotEditBox :annotRect : nuri]; } return; }
and add the readonly check:
Code:
NSString *nuri = [m_annot getEditText]; if (nuri) { if (m_delegate && ![m_annot isReadonly]) { // <-- Here is the readonly check CGRect annotRect; annotRect.origin.x = m_annot_rect.left / m_scale; annotRect.origin.y = m_annot_rect.top / m_scale; annotRect.size.width = (m_annot_rect.right - m_annot_rect.left)/m_scale; annotRect.size.height = (m_annot_rect.bottom - m_annot_rect.top)/m_scale; [m_delegate OnAnnotEditBox :annotRect : nuri]; } return; }
Time to create page: 0.378 seconds
Powered by Kunena Forum