DEV Community

Cover image for eSigning - Barcode signature
Atir Tahir
Atir Tahir

Posted on

1

eSigning - Barcode signature

In this post, we'll explore an eSigning API that allows to add barcode signature(s) within a document.
Supported Barcode Types

  • Codabar
  • Code128
  • Code39Standard
  • Interleaved2of5
  • DutchKIX
  • DotCode
  • EAN8

Please have a look at this full list of supported barcode types.
To specify different options for Barcode signature, GroupDocs.Signature API provides BarcodeSignOptions class.
So, basically you have to specify Encode type and text. Please have a look at the following code snippet:

using (Signature signature = new Signature("sample.pdf"))
{
    BarcodeSignOptions options = new BarcodeSignOptions("JohnSmith")
    {
        // setup Barcode encoding type
        EncodeType = BarcodeTypes.Code128,
        // set signature position
        Left = 100,
        Top = 100
    };
    signature.Sign("SampleSigned.pdf", options);
}
Enter fullscreen mode Exit fullscreen mode

This is how output will look like and you can get the encoded information just by scanning the Barcode.
Alt Text

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay