Scanning QR Code
Contents
[
Hide
]
Scanning QR Code in C#
GroupDocs.Parser (which is a part of Conholdate.Total for .NET) allows to scan QR Code from PDF, MS Word (DOC, DOCX), MS PowerPoint (PPT, PPTX), LibreOffice formats and many others.
GroupDocs.Parser’s QR Code scanner is easy to use and powerful at the same time. Our sophisticated algorithms allow to read even damaged barcodes.
This article demonstrates how to implement QR Code reader from any supported format.
How to scan QR Code in .Net with GroupDocs.Parser
Scan QR Code from your document by calling GetBarcodes method:
IEnumerable<PageBarcodeArea> GetBarcodes();
This method returns a collection of PageBarcodeArea objects.
Here are the steps to extract a QR Code from file:
- Instantiate Parser object for the initial file;
- Check if the file supports barcodes extraction;
- Call GetBarcodes method and obtain collection of PageBarcodeArea objects;
- Iterate through the collection and get a barcode value.
The following example shows how to scan barcode: