-
Notifications
You must be signed in to change notification settings - Fork 73
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
Conversation
…lue, fullyQualifiedName)` API
There was a problem hiding this 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.] |
There was a problem hiding this comment.
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.'}
ios/RCTPSPDFKit/RCTPSPDFKitView.m
Outdated
} | ||
} | ||
|
||
return @{@"error": @"Failied to get the form field value."}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in Failied
-> Failed
samples/Catalog/Catalog.ios.js
Outdated
{ | ||
name: 'Programmatic Form Filling', | ||
description: | ||
'Shows how to get and add new annotations using Instant JSON.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description should be updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! Copy/paste 🤦♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! 👍
ios/RCTPSPDFKit/RCTPSPDFKitView.h
Outdated
- (void)saveCurrentDocument; | ||
|
||
///Anotations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Misses a space.
* @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.] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Details
iOS implementation of #70
Acceptance Criteria
getFormFieldValue(fullyQualifiedName)
andsetFormFieldValue(value, fullyQualifiedName)
API.