Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics

I am attmepting to use a VisualForce page that was created as the template for the signing document. I added the text tags: {{esl:SellerSign1:Signature1,size(80,20)}}

Replies Created

Reply to: Use Visualforce Page as PDF for Signing Document

0 votes

Sorry, I left a line out. 

After creating the PageReference pr = ....

I use an Apex method pr.getContent() to get the pdf from the page as a blob. That blob is what is sent through to the sdk.CreatePackage. 


Reply to:

0 votes

Hi Duo_Liang, thanks for getting back to me. I updated the text tags. Thanks for finding that. 

1 - Error 303 - See OTeher is the response I get back fomr the Apex SDK OneSpanRestAPIHelper.doPost(String resourceUrl, Blob requestBody) method.

 - I'm pretty sure its coming back from OneSpan.

2 - I cannot use a static resource because the visualforce page has some dynamic content rendered inside of it and we can't get the same level of automation through the AutoFields, as far as I can tell.

3- Visualforce page is being rendered as pdf.

4- role name matches the text tags.

I'm using the apex sdk unmanaged package, and the error is thrown from the OneSpanRestAPIHelper.doPost(String resourceUrl, Blob requestBody)

 

The call stack would be:

OneSpanRestAPIHelper.doPost(String resourceUrl, Blob requestBody)

OneSpanRestAPIHelper.createPackageWithBinaries(Blob multipartFormData)

OneSpanSDK.createPackageWithBinaries(OneSpanAPIObjects.Package_x pkg, Map<String,Blob> documentMap)

OneSpanSDK.public String createPackage(OneSpanAPIObjects.Package_x pkg, Map<String,Blob> documentBlobMap)
which is being called from my code where I create the Pagereference as a pdf and pass it along with the package into that method.

 

 

I changed the code to create the package first and then use the package to create the document, and the package is successfully created, but the document fails.

 

Attached is the code for creating the roles, and the code for creating the package, and the pdf that was generated and sent through the SDK to OneSpan.

 


Reply to: Use Visualforce Page as PDF for Signing Document

0 votes

I made some changes, and I don't know what other changes I made, but I am finally able to successfully create the package and document. Once the document is created does that automatically send an email to the signers?

 


Reply to: Use Visualforce Page as PDF for Signing Document

0 votes

It doesn't seem to recognize the text tags. I had to add a signature in from the onespansign dashboard @ sandbox.esignlive.com

 

Here is what it looked like when I got the email before i signed, notice I added the tags in through the UI on EsignLive website, but the date and name fields still show the text tags. 


Attachments

Reply to:

0 votes

Duo_Lingo

 

I'm definitely missing some pieces here. If I add the text tags into the pdf, do I still need to add some code for the approvals or signature fields when I'm creating the package?

I have attached the relevant code for the pdf and the code that I am using to create the package and document. Sorry for so many back and forth's, I just feel like I've almost got this finished and hoping to finish it in the next few days

 


Attachments

Subscriptions

Topics Replies Freshness Views Users

I am attmepting to use a VisualForce page that was created as the template for the signing document. I added the text tags: {{esl:SellerSign1:Signature1,size(80,20)}}

10 3 years 8 months ago 131
Profile picture for user Duo_Liang

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.