ImageGear .NET - Updated
Samples
User Guide > Getting Started > Samples

ImageGear .NET has the following samples (organized by category):

ASP.NET

Before using an ASP.NET sample, you must edit the sample’s web.config file with the proper path to your binaries and Office Core folder. The settings are:
<appSettings>
  <add key="igSolutionName" value="Accusoft" />
  <add key="igSolutionKey" value="" />
  <add key="igLicenseKey" value="" />
  <add key="igComponent" value="~/bin/ImageGear24.Web.ImageDataProcessor.dll" />
  <add key="igPdfResources" value="" />
  <add key="igOfficeCoreDir" value="" />
  <add key="igBinaries" value="" />
  <add key="maxThreadsPerControl" value="4" />
  <add key="igVerifyDocuments" value="true" />
  <add key="igDisableFormats" value="dcraw, dcrawHeaderless" />
</appSettings>

Samples Location: $INSTALLDIR\Samples\Source Code\ASP.NET\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

CSharp > HTML5Viewer HTML5 Viewer How to display and navigate documents. C#, ASP.NET VS2010
VS2015

CSharp > IsisScanningUsingASP.NET

WebForms

Scanning capabilities using ImageGear web components.

C#, ASP.NET

VS2010

CSharp > Tutorial_ASP.NET WebForms Basic usage of the ImageGear .NET ASP.NET capabilities. C#, ASP.NET VS2010
CSharp > WebDemo WebForms How to display and annotate images. C#, ASP.NET VS2010
VS2015

jQuerySamples > ImGearPluginSample

WebForms

The use of ImageGear web components using jQuery. A set of instructions is provided in the Default file in order to help configure this sample for running it using  HTTP or HTTPS.

jQuery

VS2010

ART Annotations

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\ART\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

AddWatermarkToImage WinForms How to apply watermark to raster page. C#, VB.NET VS2010
VS2015
VS2017

AddWatermarkToPDFPage

WinForms

Watermarking a PDF document by adding:

  • A translucent PDF FreeText annotation that says "DRAFT" across the top of the page.
  • A PNG image placed in the center of the page.

Images that support alpha channel transparency may be used.

C#, VB.NET

VS2010
VS2015
VS2017

AnnotateImageAndPDF_WPF WPF How to annotate images and PDF with ART marks. C#, VB.NET VS2010
VS2015
VS2017

CAD

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\CAD\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

CADViewer

WinForms

How to view and manipulate a CAD file and export it to other supported formats.

C#, VB.NET

VS2010
VS2015
VS2017

ConvertCADtoPDF WinForms How to open a CAD file and export it as a 2D or 3D PDF file. C#, VB.NET VS2010
VS2015
VS2017
CreateCADEntity WinForms How to create a blank CAD file and add entities to it. C#, VB.NET VS2010
VS2015
VS2017

Conversion

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\Conversion\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

ConvertImage

WinForms

How to convert an image to a target format by setting compression, color space, bit-depth, and other saving options.

C#, VB.NET

VS2010
VS2015
VS2017

Image Processing and Cleanup

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\ImageProcessing\...

For convenience, we added identical sample projects created with different versions of Visual Studio.

Name

GUI

This Sample Demonstrates...

Languages

IDEs

ImageProcessingAndCleanup

WinForms

How to display and then manipulate an image in different ways.

C#, VB.NET

VS2010
VS2015
VS2017

Image Properties and Metadata

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\Viewing\...

For convenience, we added identical sample projects created with different versions of Visual Studio.

Name

GUI

This Sample Demonstrates...

Languages

IDEs

ViewImagePropertiesAndMetadata

WinForms

How to view an image's metadata and properties such as dimensions, bit depth, color space, and resolution.

C#, VB.NET

VS2010
VS2015
VS2017

Medical

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\Medical\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

MedicalAndDICOM_WPF WPF A sample viewer for medical images and is intended for demonstration purposes ONLY. C#, VB.NET VS2010
VS2015
VS2017

Microsoft Office

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

ConvertOfficeToPDF

WinForms

How to load and convert a Microsoft Office file to PDF.

C#, VB.NET

VS2010
VS2015
VS2017

OCR

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\OCR\...

For convenience, we added identical sample projects created with different versions of Visual Studio.

Name

GUI

This Sample Demonstrates...

Languages

IDEs

ImageOCRtoFile WinForms

How to perform OCR on an image file and output the resulting text to either a PDF, an Image Over Text PDF using MRC, or a TXT file.

C#, VB.NET VS2010
VS2015
VS2017
OCRUsingZones WinForms

How to perform OCR using zones and output the recognized text to a textbox.

C#, VB.NET VS2010
VS2015
VS2017
OCRLanguageSelection WinForms

How to enable / disable languages before performing OCR and sending the resulting data to a text box.

C#, VB.NET VS2010
VS2015
VS2017

PDF and PostScript

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\PDF\...

For convenience, we added identical sample projects created with different versions of Visual Studio.

Name

GUI

This Sample Demonstrates...

Languages

IDEs

AddImageToPDF WinForms How to add images to a PDF document with varying locations and opacity. C#, VB.NET VS2010
VS2015
VS2017
AddAndVerifyPDFSignatures Console How to add and verify digital signatures on a PDF document. C#, VB.NET VS2010
VS2015
VS2017

ConvertDOCXtoPDF

WinForms

How to read a DOCX document page and save it as a PDF file.  

C#, VB.NET

VS2010
VS2015
VS2017

ConvertPDFtoSVG

WinForms

How to convert a PDF document to a SVG using Accusoft's API.  

C#, VB.NET

VS2010
VS2015
VS2017

CreatePDFForm Console How to create and populate form fields on a new PDF. C#, VB.NET

VS2010
VS2015
VS2017

EditFormFieldAppearances

WinForms

How to modify the visual appearance of fields and their annotations, such as, border color, style, and text color.

C#, VB.NET

VS2010
VS2015
VS2017

ExtractTextFromPDF

WinForms

How to extract the text content from a PDF document and save it as a text file.

C#, VB.NET

VS2010
VS2015
VS2017

ManipulatePDFAcroForms

WinForms

How to read, write, create, and remove AcroForm fields on a PDF document.

C#, VB.NET

VS2010
VS2015
VS2017

PDFMerge

WinForms

How to merge two PDF documents into a one PDF document.

C#, VB.NET

VS2010
VS2015
VS2017

PDFSecurity

WinForms

How to manage PDF security three ways:

  • Open a password-protected PDF file
  • Write an encrypted password-protected PDF file
  • Remove the encryption and password from a PDF file

C#, VB.NET

VS2010
VS2015
VS2017

SaveCompressedPDF

Console

How to save a compressed PDF document.

C#, VB.NET

VS2010
VS2015
VS2017

SavePDFtoImageGUI

WinForms

How to read a PDF document page by page, index, rasterize a page, and store the raster page as JPEG file.   

C#, VB.NET

VS2010
VS2015
VS2017

SplitPDFUsingMultipleThreads

Console

How to split PDFs using multiple threads.

C#, VB.NET

VS2010
VS2015
VS2017

VerifyAndConvertToPDFA

WinForms

How to convert a PDF document into a PDFA standard and how to verify compliance with ISO-standard PDFA-1a.

C#, VB.NET

VS2010
VS2015
VS2017

SavePDFtoMultiPageTIF.WPF

WPF

Converting a PDF into a multi-page TIF using WPF controls.

C#, VB.NET

VS2010
VS2015
VS2017

Scanning

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\TWAIN\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

TWAINScanning WinForms How to scan a document with or without the TWAIN scanner's UI, view the document, then save as a PDF, TIFF, or JPG.

C#, VB.NET

VS2010
VS2015
VS2017

Viewing

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\Viewing\...

For convenience, we added identical sample projects created with different versions of Visual Studio.

Name

GUI

This Sample Demonstrates...

Languages

IDEs

DisplayUsingWinForms

WinForms

How to display, navigate, zoom, rotate, and align documents.

C#, VB.NET

VS2010
VS2015
VS2017