QR-code (or Quick Response code) is a sort of two-dimensional barcode that consists of black squares arranged in a square grid on a white background. QR-code can be read by smartphone camera or specialized devices that are dedicated to QR reading - hand-held scanners, handy terminals, fixed scanners that are used after placing it on a desktop, or embedding it in other devices. Usually QR-codes contain data that points to a website or application, emails, or phone numbers, product identifiers, or trackers. Therefore QR-code application scope extends general marketing and item identification to document management.
How to eSign document with QR-Code signature
GroupDocs.Signature allows to eSign documents with QR-codes of various types that is listed in a table below.
Aztec code
DataMatrix code
GS1 DataMatrix
GS1 QR code
QR
Application
transport and ticketing; in airline industry for electronic boarding passes; in rail for tickets sold online and printed out by customers or displayed on mobile phone screens. Code is scanned by a handheld scanner by on-train staff or at the turnstile to validate the ticket. medicine - patient identification wristbands and labels for unit-of-use medications etc.
printed media such as labels and letters; industrial engineering purposes - marking components etc; food industry - to prevent food products being packaged and dated incorrectly;
Used in Healthcare; Government; Industrial. Encodes item additional information, such as: weight; expiration date; batch number; date of manufacture; etc.
Used in marketing to encode additional item information on the package
Widely used in automotive industry and mobile applications. Useful for encoding large amount of data characters and specific URLs.
Length
3067 alphanumeric, 3832 numeric, 1914 bytes
2335 alphanumeric, 3116 numeric
2335 alphanumeric 3116 numeric, 1556 bytes
7089 alphanumeric 4296 numeric, 2953 bytes
4296 alphanumeric,
7089 numeric, 2953 bytes
Example
While adding QR-code electronic signature to document GroupDocs.Signature the main settings are text to be encoded and QR-code type which should be specified via QrCodeSignOptions class.
Here are the steps to eSign document with QR-code signature:
Create new instance of Signature class and pass source document path as a constructor parameter.
The code snippet below demonstrates how to sign PDF document with QR-code signature.
Signaturesignature=newSignature("sample.pdf");// create QRCode option with predefined QRCode text
QrCodeSignOptionsoptions=newQrCodeSignOptions("JohnSmith");// setup QRCode encoding type
options.setEncodeType(QrCodeTypes.QR);// set signature position
options.setLeft(100);options.setTop(100);// sign document to file
signature.sign("SampleSigned.pdf",options);
More resources
Advanced Usage Topics
To learn more about document eSign features, please refer to the advanced usage section.
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
Along with full-featured .NET library we provide simple, but powerful free Apps. You are welcome to eSign PDF, Word, Excel, PowerPoint documents with free to use online GroupDocs Signature App.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.