PSPDFSignedFormElementViewController
Objective-C
@interface PSPDFSignedFormElementViewController
: PSPDFBaseTableViewController <PSPDFOverridable>
Swift
class SignedFormElementViewController : BaseTableViewController, Overridable
Shows the current signature state of a PSPDFSignatureFormElement.
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
PSPDF_EMPTY_INIT_UNAVAILABLE
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
PSPDF_EMPTY_INIT_UNAVAILABLE
-
Inits the signed view controller with a signature form element. Using this initializer will the allow removal of signatures. Use
-initWithSignatureFormElement:allowRemovingSignature:
initializer to control the removal of digital signatures if needed.Declaration
Objective-C
- (nonnull instancetype)initWithSignatureFormElement: (nonnull PSPDFSignatureFormElement *)element;
Swift
convenience init(signatureFormElement element: PSPDFSignatureFormElement)
Parameters
element
Element which contains the signature. Should not be nil.
-
Initializes the signed view controller with the signature form element and whether the digital signature can be removed from the element.
Declaration
Objective-C
- (nonnull instancetype) initWithSignatureFormElement:(nonnull PSPDFSignatureFormElement *)element allowRemovingSignature:(BOOL)allowRemovingSignature;
Swift
init(signatureFormElement element: PSPDFSignatureFormElement, allowRemovingSignature: Bool)
Parameters
element
Element which contains the signature. Should not be nil.
allowRemovingSignature
Removing digital signatures is allowed or not.
-
The signature form element the controller was initialized with.
Declaration
Objective-C
@property (nonatomic, strong, readonly) PSPDFSignatureFormElement *_Nonnull formElement;
Swift
var formElement: PSPDFSignatureFormElement { get }
-
Verifies the signature of the
formElement
set.Declaration
Objective-C
- (nullable PSPDFSignatureStatus *) verifySignatureWithTrustedCertificates: (nullable NSArray<PSPDFX509 *> *)trustedCertificates error:(NSError *_Nullable *_Nullable)error;
Swift
func verifySignature(withTrustedCertificates trustedCertificates: [PSPDFX509]?) throws -> PDFSignatureStatus
Parameters
trustedCertificates
Optional. Uses the default shared state if not set.
-
The signed form element view controller delegate
Declaration
Objective-C
@property (nonatomic, weak) id<PSPDFSignedFormElementViewControllerDelegate> _Nullable delegate;
Swift
@IBOutlet weak var delegate: SignedFormElementViewControllerDelegate? { get set }