TimestampServer class
Represent a timestamp to add in PDF document
//Creates a new PDF document
PdfDocument document = PdfDocument();
//Adds a new page
PdfPage page = document.pages.add();
//Creates a digital signature and sets signature information
PdfSignatureField field = PdfSignatureField(page, 'signature',
bounds: Rect.fromLTWH(0, 0, 200, 100),
signature: PdfSignature(
//Creates a certificate instance from the PFX file with a private key
certificate: PdfCertificate(
File('D:/PDF.pfx').readAsBytesSync(), 'syncfusion'),
contactInfo: 'johndoe@owned.us',
locationInfo: 'Honolulu, Hawaii',
reason: 'I am author of this document.',
//Create a new PDF time stamp server
timestampServer:
TimestampServer(Uri.parse('http://syncfusion.digistamp.com'))));
//Add a signature field to the form
document.form.fields.add(field);
//Save and dispose the PDF document
File('Output.pdf').writeAsBytes(await document.save());
document.dispose();
Constructors
- TimestampServer(Uri uri, {String? userName, String? password, Duration? timeOut})
- Initialize a new instance of the TimestampServer class with timestamp server url.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isValid
→ Future<
bool> -
Gets a value indicating whether the time stamp url is valid.
no setter
- password ↔ String?
-
Gets or set the password.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeOut ↔ Duration?
-
Gets or set the time out duration.
getter/setter pair
- uri ↔ Uri
-
Gets or set the server uri.
getter/setter pair
- userName ↔ String?
-
Gets or set the user name.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited