Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatic PDF form filling - iOS #106

Merged
merged 3 commits into from
Aug 2, 2018
Merged

Programmatic PDF form filling - iOS #106

merged 3 commits into from
Aug 2, 2018

Conversation

radazzouz
Copy link
Contributor

@radazzouz radazzouz commented Aug 1, 2018

Details

iOS implementation of #70

recording

Acceptance Criteria

  • Add getFormFieldValue(fullyQualifiedName) and setFormFieldValue(value, fullyQualifiedName) API.
  • Add 'Programmatic Form Filling' Catalog example.

Copy link
Contributor

@irgendeinich irgendeinich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

index.js Outdated
* @param fullyQualifiedName The fully qualified name of the form element.
*
* Returns a promise resolving a dictionary with the following structure:
* {'formElement' : value} or ['error' : Failied to get the form field value.]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should update the docs, since it's now {'value' : value}
Also error should be an object not an array
{'error' : 'Failed to get the form field value.'}

}
}

return @{@"error": @"Failied to get the form field value."};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in Failied -> Failed

{
name: 'Programmatic Form Filling',
description:
'Shows how to get and add new annotations using Instant JSON.',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description should be updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! Copy/paste 🤦‍♂️

Copy link
Contributor

@steviki steviki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! 👍

- (void)saveCurrentDocument;

///Anotations
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misses a space.

@radazzouz radazzouz merged commit 9b9dfb9 into master Aug 2, 2018
@radazzouz radazzouz deleted the rad/form-filling branch August 2, 2018 12:26
* @param fullyQualifiedName The fully qualified name of the form element.
*
* Returns a promise resolving a dictionary with the following structure:
* {'value' : value} or ['error' : Failed to get the form field value.]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

['error' : Failed to get the form field value.] is still shown as an array literal, while it should be an object.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Fixed in e709bf1

@radazzouz radazzouz mentioned this pull request Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants