NAME
Document::eSign::Docusign::requestSignatureFromDocument - Uses a pdf document to create and send a new envelope.
VERSION
Version 0.02
functions
requestSignatureFromDocument($parent, $vars)
Note that the arrayref of file names. This module tries to "DTRT" and create a multipart post of each document you place in here. However, you may want to consider the number of pages and resolution of what you are sending. Scanned documents will be larger and therefore slower. If you have native PDF documents the upload will be faster. (Not to mention a better presentation to the end signer.) The preceding path to the documents will be stripped and docusign will only receive the resulting filename.
my $response = $ds->requestSignatureFromTemplate(
{
emailSubject => 'Hello Signer World!',
emailBlurb => 'Please sign my document.',
documents => [
{
documentId => 1,
name => '/path/to/some/file.pdf'
},
{
documentId => 2,
name => '/path/to/some/otherfile.pdf'
}
],
recipients => {
signers => [
{
email => 'somebody@somedomain.org',
name => 'Joe Somebody',
recipientId => '1',
tabs => {
signHereTabs => [
{
xPosition => "100",
yPosition => "100",
documentId => 1,
pageNumber => 1
}
]
}
}
]
},
status => 'sent'
}
);
print "Got envelopeId: " . $response->{envelopeId} . "\n";
For more complicated examples, refer to Docusign's API Documentation.