Members
(static, constant) SupportedSourceFormat
- Description:
Supported source file formats for PDFElectronicSealOperation.
Properties:
Name | Type | Description |
---|---|---|
pdf |
string | Represents "application/pdf" media type. |
Supported source file formats for PDFElectronicSealOperation.
(static, constant) SupportedSealImageFormat
- Description:
Supported seal image media types for PDFElectronicSealOperation.
Properties:
Name | Type | Description |
---|---|---|
pdf |
string | Represents "application/pdf" media type. |
jpeg |
string | Represents "image/jpeg" media type |
png |
string | Represents "image/png" media type |
Supported seal image media types for PDFElectronicSealOperation.
Methods
setInput(inputDocnon-null)
- Description:
Sets the input PDF document.
Parameters:
Name | Type | Description |
---|---|---|
inputDoc |
FileRef | an input file; Cannot be null |
setSealImage(sealImage)
- Description:
Sets the seal image file.
Parameters:
Name | Type | Description |
---|---|---|
sealImage |
FileRef | a seal image file |
(static) createNew(sealOptionsnon-null) → {PDFElectronicSealOperation}
- Description:
Constructs a PDFElectronicSealOperation instance.
Parameters:
Name | Type | Description |
---|---|---|
sealOptions |
SealOptions | options for applying electronic seal on the input PDF document; Cannot be null. |
Returns:
a new PDFElectronicSealOperation instance
execute(contextnon-null) → {Promise.<FileRef>}
- Description:
Executes this operation synchronously using the supplied context and returns a new FileRef instance for the resulting sealed file.
The resulting file may be stored in the system temporary directory (per the os.tempdir(), symlinks are resolved to the actual path). See FileRef for how temporary resources are cleaned up.
Parameters:
Name | Type | Description |
---|---|---|
context |
ExecutionContext | the context in which to execute the operation. |
Throws:
-
-
if an API call results in an error response.
- Type
- ServiceApiError
-
-
-
If service usage limits have been reached or credentials quota has been exhausted.
- Type
- ServiceUsageError
-
Returns:
A promise which resolves to the operation result.
- Type
- Promise.<FileRef>