This topic contains 4 replies, has 3 voices, and was last updated by  jerrade 5 months, 1 week ago.

  • Author
    Posts
  • Participant
    jerrade
    Newbie
    Member since: 01.12.2017
    Number of posts: 6

    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("test@email.com")
                            .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?

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1419

    Score

    0

    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.


    Haris Haidary
    eSignLive Technical Evangelist
    Participant
    DougExner
    Newbie
    Member since: 03.09.2015
    Number of posts: 6
    Approved answer

    Score

    0

    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:

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1419

    Score

    0

    You are correct Doug. Hence your code should simply be:

     .WithDocument(DocumentBuilder.NewDocumentNamed("SLPEval")
                        .EnableExtraction()
                        .WithExtractionType(ExtractionType.TEXT_TAGS_ONLY)
                        .FromStream(ms, DocumentType.PDF)
                    )

    Haris Haidary
    eSignLive Technical Evangelist
    Participant
    jerrade
    Newbie
    Member since: 01.12.2017
    Number of posts: 6

    Score

    0

    Got it. Thanks!

You must be logged in to reply to this topic.