Index: glib/poppler-form-field.cc =================================================================== RCS file: /cvs/poppler/poppler/glib/poppler-form-field.cc,v retrieving revision 1.1 diff -u -p -r1.1 poppler-form-field.cc --- glib/poppler-form-field.cc 30 Jun 2007 08:25:16 -0000 1.1 +++ glib/poppler-form-field.cc 2 Jul 2007 11:10:11 -0000 @@ -111,6 +111,14 @@ poppler_form_field_get_font_size (Popple return field->widget->getFontSize (); } +gboolean +poppler_form_field_is_read_only (PopplerFormField *field) +{ + g_return_val_if_fail (POPPLER_IS_FORM_FIELD (field), 0); + + return field->widget->isReadOnly (); +} + /* Button Field */ gboolean poppler_form_field_button_get_state (PopplerFormField *field) Index: glib/poppler-form-field.h =================================================================== RCS file: /cvs/poppler/poppler/glib/poppler-form-field.h,v retrieving revision 1.1 diff -u -p -r1.1 poppler-form-field.h --- glib/poppler-form-field.h 30 Jun 2007 08:25:16 -0000 1.1 +++ glib/poppler-form-field.h 2 Jul 2007 11:10:11 -0000 @@ -57,6 +57,7 @@ GType poppler_form_field PopplerFormFieldType poppler_form_field_get_field_type (PopplerFormField *field); gint poppler_form_field_get_id (PopplerFormField *field); gdouble poppler_form_field_get_font_size (PopplerFormField *field); +gboolean poppler_form_field_is_read_only (PopplerFormField *field); /* Button Field */ gboolean poppler_form_field_button_get_state (PopplerFormField *field); Index: glib/test-poppler-glib.c =================================================================== RCS file: /cvs/poppler/poppler/glib/test-poppler-glib.c,v retrieving revision 1.23 diff -u -p -r1.23 test-poppler-glib.c --- glib/test-poppler-glib.c 30 Jun 2007 08:25:16 -0000 1.23 +++ glib/test-poppler-glib.c 2 Jul 2007 11:10:11 -0000 @@ -397,6 +397,8 @@ int main (int argc, char *argv[]) mapping->area.y1, mapping->area.x2, mapping->area.y2); + printf ("\t\tReadOnly:\t%s\n", + poppler_form_field_is_read_only (mapping->field) ? "Yes" : "No"); form_field_print (mapping->field); } poppler_page_free_form_field_mapping (list);