pdfformfields.c.patch

Joël Brogniart, 04/07/2020 01:03 pm

Download (917 Bytes)

 
pdfformfields.c 2020-04-07 12:48:06.000000000 +0200
123 123
    for (int id_page = 0; id_page < poppler_document_get_n_pages(document); id_page++) {
124 124
        GList *list = poppler_page_get_form_field_mapping(poppler_document_get_page(document,id_page));
125 125
        for (int i=0; i<g_list_length(list); i++) {
126
            if (i > 0) printf("---\n");
127 126

  
128 127
            PopplerFormFieldMapping *f = g_list_nth_data(list, i);
129 128
            // printf("field found, id: %d, name: %s\n",poppler_form_field_get_id(f->field),poppler_form_field_get_name(f->field));
......
173 172
                printf("FieldValue: %s\n", poppler_form_field_button_get_state(f->field) ? "Yes" : "Off");
174 173
                printf("FieldStateOption: Off\nFieldStateOption: Yes\n");
175 174
            }
175
            printf("---\n");
176 176
            count++;
177 177
        }
178 178
    }