Priyanka9960 | Posts: 1

Create Package without signature

0 votes

Hello,

I want to create a package without a signature.
So Users can only view the document and download it.

 

Thanks


Duo_Liang | Posts: 3776

Reply to: Create Package without signature

0 votes

Hi Priyanka9960,

 

If a recipient was required to review and download the package without actually signing, then this recipient is called "Reviewer" in OneSpan Sign. However, you CANNOT create a completely review-only package, which is to say, at least one signer (or the sender him/herself) needs to sign.

It's very straightforward to add a reviewer to a package - add the signer, but don't assign any signatures to the person:

               .WithSigner(SignerBuilder.NewSignerWithEmail("[email protected]")
                       .WithFirstName("John")
                       .WithLastName("Smith")

                       .WithCustomId("reviewer1"))

 

But as stated above, you need at least one signature, in which case, one of the options you can follow is to assign accept-only signatures to the sender, and progrommatically sign on behalf of the sender (guide here):

DocumentPackage package = PackageBuilder.NewPackageNamed("Test Package")

           .WithSigner(SignerBuilder.NewSignerWithEmail("[email protected]")
                       .WithFirstName("sender first")
                       .WithLastName("sender last")

                       .WithCustomId("sender"))

               .WithSigner(SignerBuilder.NewSignerWithEmail("[email protected]")
                       .WithFirstName("John")
                       .WithLastName("Smith")

                       .WithCustomId("reviewer1"))

               .WithSigner(SignerBuilder.NewSignerWithEmail("[email protected]")
                       .WithFirstName("Mary")
                       .WithLastName("Smith")

                       .WithCustomId("reviewer2"))

           .WithDocument(DocumentBuilder.NewDocumentNamed("Document1")
                                     .FromFile("your_file_path")
                                     .WithId("Document1")
                                     .WithSignature(SignatureBuilder.AcceptanceFor("[email protected]"))
           )

          ......

         .Build();
PackageId packageId = eslClient.CreatePackage(package);
eslClient.SendPackage(packageId);

//sign all documents for sender
eslClient.signDocuments(packageId);

As always, you need to be aware that progrommatically signing means the audit trail recorded it's your application that signed the documents, not the actual signer.

 

Duo


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off