The documentation is designed for a specific purpose to help you to apply the features on your side. What is ByteScout Data Extraction Suite? It is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK. It can help you to read vcard from qr code with barcode reader sdk in your C# application.
These C# code samples for C# guide developers to speed up coding of the application when using ByteScout Data Extraction Suite. IF you want to implement the functionality, just copy and paste this code for C# below into your code editor with your app, compile and run your application. Further improvement of the code will make it more robust.
You can download free trial version of ByteScout Data Extraction Suite from our website with this and other source code samples for C#.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
using System; using System.IO; using Bytescout.BarCodeReader; using Thought.vCards; namespace ReadVCardFromQRCode { /// <summary> /// This example demonstrates reading of QR Code encoded vCard. /// It uses vCard library by David Pinch: /// /// vCard Class Library for .NET (Version 0.4; LGPL license) /// Copyright (c) 2007-2009 David Pinch /// http://www.thoughtproject.com/Libraries/vCard/ /// /// </summary> class Program { static void Main(string[] args) { // Create Bytescout.BarCodeReader.Reader instance using (Reader reader = new Reader()) { // Enable QR Code decoding reader.BarcodeTypesToFind.QRCode = true; /* ----------------------------------------------------------------------- NOTE: We can read barcodes from specific page to increase performance. For sample please refer to "Decoding barcodes from PDF by pages" program. ----------------------------------------------------------------------- */ // Decode QR Code from image FoundBarcode[] barcodes = reader.ReadFrom("sample_vcard.gif"); if (barcodes.Length > 0) { FoundBarcode vcardBarcode = barcodes[0]; // Decode vCard information from barcode value StringReader stringReader = new StringReader(vcardBarcode.Value); vCard vCard = new vCard(stringReader); // Display some decoded info: Console.WriteLine("GivenName: " + vCard.GivenName); Console.WriteLine("FamilyName: " + vCard.FamilyName); Console.WriteLine("Organization: " + vCard.Organization); Console.WriteLine("Title: " + vCard.Title); Console.WriteLine("Phone: " + vCard.Phones[0].FullNumber); Console.WriteLine("EmailAddresses: " + vCard.EmailAddresses[0]); Console.WriteLine("DeliveryAddress: " + vCard.DeliveryAddresses[0].Street + " " + vCard.DeliveryAddresses[0].City + " " + vCard.DeliveryAddresses[0].Region + " " + vCard.DeliveryAddresses[0].PostalCode + " " + vCard.DeliveryAddresses[0].Country); } } Console.WriteLine(); Console.WriteLine("Press any key..."); Console.ReadKey(); } } }
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: