Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7056 Reply

    Radek Zmeskal

    Hi I am trying programmatically fill PDF document wit Form Fields without opening. But function fields for PlugPDFDocument returns me 0 fields. Can you help me?

    My code:

    PlugPDFDocument *document = [[PlugPDFDocument alloc] initWithPath:path password:@””];
    if (!document)
    {
    NSLog(@”Error load file”);
    return;
    }
    for ( int i=0; i<[document pageCount]; i++)
    {
    for (PlugPDFBaseField *field in [document fields:i])
    {
    if ([field isMemberOfClass: PlugPDFTextField.class])
    {
    PlugPDFTextField *textField = (PlugPDFTextField*)field;

    if ([[textField title] isEqualToString:@”field_name”])
    {
    [textField setValue:@”text”];
    }
    }
    }
    }

    #7067 Reply

    Dr. Plug
    Moderator

    Hi Radek

    Same phenomenon occurs in our project.
    We are Sorry about that.
    We’ll find out what the problem it is as soon as possible.

    Best Regards
    Dr Plug

    #7069 Reply

    Dr. Plug
    Moderator

    Hi Radek
    there is same problem during our test. (We’ll fix that as soon as possible)
    So How about using like this?

    Best Regards
    Dr Plug

    • This reply was modified 1 year, 8 months ago by  Dr. Plug.
    • This reply was modified 1 year, 8 months ago by  Dr. Plug.
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Fill programatically Form Fields
Your information: