Skip to content

Commit aa51201

Browse files
committed
DEVDOCS-8415 add the PDF Portfolio option to eSign7
1 parent f58216b commit aa51201

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/eSignature/controllers/eg006EnvelopeDocs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ eg006EnvelopeDocs.createController = async (req, res) => {
6868
//
6969
const standardDocItems = [
7070
{name: 'Combined' , type: 'content', documentId: 'combined'},
71-
{name: 'Zip archive', type: 'zip', documentId: 'archive'}]
71+
{name: 'Zip archive', type: 'zip', documentId: 'archive'},
72+
{name: 'PDF Portfolio', type: 'portfolio', documentId: 'portfolio'}]
7273
// The certificate of completion is named "summary".
7374
// We give it a better name below.
7475
const envelopeDocItems = results.envelopeDocuments.map( doc =>

lib/eSignature/examples/envelopeGetDoc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ const getDocument = async (args) => {
4747
docName += ".pdf";
4848
pdfFile = true;
4949
}
50+
if (docItem.type === 'portfolio') {
51+
docName += ".pdf";
52+
pdfFile = true;
53+
}
5054
// Add .zip as appropriate
5155
if (docItem.type === "zip") {
5256
docName += ".zip";

0 commit comments

Comments
 (0)