C# Barcode Generator Library
Quick to Start Using XImage.Barcode Generator

To Have a Quick Evaluation of XImage.Barcode Generator in Visual C# Console Application

As a leading professional third-party SDK supplier in the field of image and document management, RasterEdge has always been devoted to providing various effective and fully-functional barcode imaging solutions for developers who are working on different .NET developing applications.

Related .net document control helps:
asp.net sharepoint document viewer free: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net mvc pdf editor control: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net view excel in browser: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
powerpoint viewer asp.net mvc: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
asp.net view text file: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
document viewer asp.net c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...

This C#.NET barcode generation toolkit, RasterEdge XImage.Barcode Generator SDK for .NET is one of the most strongly-featured and mature document imaging library toolkits on the market, which is designed to help developers implement barcode-related tasks in their C#.NET applications.

Using this C#.NET barcode generation control, you can easily and quickly complete both 1d and 2d barcode creating on images. tiff files, PDF documents, Word documents, Excel files and PPT files in any type of a 32-bit or 64-bit .NET application, including ASP.NET web service and Windows Forms for any .NET Framework version from 2.0 to 4.5.

As you know, there're various reliable barcode generation features that can be implemented in C#.NET programming. And you may want to have a quick testing on RasterEdge XImage.Barcode Generator after downloading its free trial package online.  To meet your requirement, on this quick to start page, we will tell how to create a C# console application, and create Code 39 on PDF in C#.NET.

Create a C# Console Application

Open Visual Studio and click "New" from toolbar. Note, Visual Studio 2005 and above versions are available;

Choose "C# Language" and "Console Application" respectively to create a project.

Sample C# Code for Creating Code 39 on PDF Page

By following steps below, your C# project are able to create Code on PDF page.

Choose "C# Language" and "Console Application" respectively to create a project.










Use namespace "RasterEdge.XDoc.PDF";

Use namespace "RasterEdge.XImage.BarcodeCreator";

Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:


       If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.


       If using x86, the platform target should be x86.

Copy of the following C# sample code to your application.

private static void AddBarcodeToPDF(Linear barcode)
            PDFDocument docx = new PDFDocument(inputDirectory + "Sample.pdf");
            BasePage page = docx.GetPage(0);
            REImage image = new REImage(barcode.ToImage());
            page.AddImage(image, new PointF(100F, 100F));
            docx.Save(outputDirectory + "Sample_Barcode.pdf");