Socket
Book a DemoInstallSign in
Socket

Viscomsoft.Barcode.x86

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Viscomsoft.Barcode.x86

This SDK for Desktop Windows and ASP.NET Developer to Read 1D and 2D barcodes in images and PDF files in your Web Application or Desktop Application. 1. Read 1D and 2D barcodes in images and PDF files. 2. Custom define scan barcode with different rotation. 3. Enable or disable scan multiple barcode. 4. Supported UPC-A, UPC-E, EAN-8, EAN-13, Code 39, Code 93, Code 128, ITF, Codabar, MSI, RSS-14 (all variants), QR Code, Data Matrix, Aztec and PDF-417. 5. Automatic barcode type detection, Read multiple barcodes at any orientation. 6. Enable/Disable spend more time to try to find a barcode, optimize for accuracy, not speed. 7. Get the Page Count of PDF file. 8. Get the Page Width and Page Height of PDF file. 9. Get the Bitmap for specific page of PDF file. 10. Include ASP.NET c# 2019, ASP.NET c# 2010, VB.NET 2019 , VB.NET 2010 Winform Sample Code. 11. Compatible with any programming language that supports .NET (C#, VB.NET etc). 13. Royalty free distribution of SDK files.

2.0.0
nugetNuGet
Version published
Maintainers
1
Created
Source

.NET Barcode SDK Component

Website: http://www.viscomsoft.com/products/barcode API documentation: http://www.viscomsoft.com/onlinehelp/barcode/Introduction.html Download Samples: https://github.com/Viscomsoft/.NET-Barcode-SDK How to use

  • Launch Visual Studio 2019 or another version of Visual Studio. Select Visual C# or Visual Basic, Select Windows Form Application.

  • Install the latest version of the Viscomsoft.Barcode.x86 package from Manage NuGet Packages.

  • Right-click on Form1.cs in the Solution Explorer and select View Code to display the code behind the form.
    we need to add the ViscomBarcodeWrapper namespace to our Form1.cs file.

using ViscomBarcodeWrapper;

  • Right-click on Form1.cs in the Solution Explorer and select View Code to display the code behind the form. Add the below code to Form load event

     'make sure you change to correct path of your image or pdf file	
     string strFile = "c:\\yourfolder\\yourpdf.pdf";
    
         BarcodeReader reader = new BarcodeReader();
         reader.ScanWithoutRotation = true;
         reader.ScanWith45DegreeClockwiseRotation = true;
         reader.ScanWith45DegreeCounterClockwiseRotation = true;
         reader.ScanWith90DegreeRotation = true;
         reader.TryHard = true;
         reader.ScanMultiple = true;
    
         
      
         string strType =strFile.Substring(strFile.Length-3,3);
    
         int count;
         if (strType.ToLower() == "pdf")
         {
             int iPageCount = reader.GetPDFPageCount(strFile);
    
             if (iPageCount == 0)
             {
                 MessageBox.Show("The PDF page cannot read");
                 return;
             }
             int iMyWidth = 0;
             int iMyHeight = 0;
             bool bResult = reader.GetPDFPage(strFile, 1, out iMyWidth, out iMyHeight);
    
             int iScaledWidth = (int)(iMyWidth * 2.5);
             int iScaledHeight = (int)(iMyHeight * 2.5);
    
    
             Bitmap bitmap = new Bitmap(iScaledWidth, iScaledHeight);
             int width = bitmap.Width;
             int height = bitmap.Height;
             bool bresult = reader.GetPDFBitmap(strFile, 1, bitmap);
    
             count = reader.ReadBarcodeImage(bitmap, 0, 0, width, height);
    
         }
         else
         {
             Bitmap bitmap = new Bitmap(strFile);
    
             int width = bitmap.Width;
             int height = bitmap.Height;
             count = reader.ReadBarcodeImage(bitmap, 0, 0, width, height);
    
    
         }
    
     	
         string text1 = "Total " + count.ToString() + " Barcode found" + "\r\n";
    
         for (int i = 0; i < count; i++)
         {
            
             text1 = text1 + reader.GetBarCodeType(i) + " value:" + reader.GetBarCodeValue(i) + "\r\n";
          
         }
    
         MessageBox.Show(text1);
    
  • Press F5 to Run the project.

Keywords

viscomsoft

FAQs

Package last updated on 05 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.