jerrade | Posts: 12

Text Extraction is creating an extra signature field

0 votes
I'm trying to send a document for signature using text extraction. It's working, but it's putting an extra signature field in the document that I don't want. My code looks like:
    .WithDocument(DocumentBuilder.NewDocumentNamed("SLPEval")
                    .EnableExtraction()
                    .WithExtractionType(ExtractionType.TEXT_TAGS_ONLY)
                    .FromStream(ms, DocumentType.PDF)
                    .WithSignature(SignatureBuilder.SignatureFor("[email protected]")
                        .WithId(new SignatureId("signer1"))
                        .WithStyle(SignatureStyle.HAND_DRAWN)
                    )
                )
and I have the text
{{esl:signer1:capture:size(200,50)}}
in my pdf. The document ends up with a signature field in the correct place, but it also puts an unwanted signature field in the upper left corner of the document. Any idea why that would be happening?

Approved Answer
DougExner | Posts: 6

Reply to: Text Extraction is creating an extra signature field

0 votes
It is acting as it should. You are using text tag extraction, which creates fields based on what is defined in the document, and you are also defining a signature in your code with .WithSignature(...) Instead of .WithSignature, you should be using WithSigner to define the signer, and leave the signature definition to the Text Tags in the document. e.g. something like what is in the Text Tag feature guide:

harishaidary | Posts: 1812

Reply to: Text Extraction is creating an extra signature field

0 votes
Hello, I'm experiencing the same issue on my end as well. I will create a ticket with our maintenance team to investigate. Sorry for the inconvenience.

harishaidary | Posts: 1812

Reply to: Text Extraction is creating an extra signature field

0 votes
You are correct Doug. Hence your code should simply be:
 .WithDocument(DocumentBuilder.NewDocumentNamed("SLPEval")
                    .EnableExtraction()
                    .WithExtractionType(ExtractionType.TEXT_TAGS_ONLY)
                    .FromStream(ms, DocumentType.PDF)
                )

jerrade | Posts: 12

Reply to: Text Extraction is creating an extra signature field

0 votes
Got it. Thanks!

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