C# and VB.NET code samples


Automatically rotate pages of a multipage TIFF file using OCR and C#

Learn how to use Tesseract OCR to automatically rotate multipage TIFF files and save them efficiently. Includes a C# code example for implementation.
C#

Saving images into folders based on their barcode

Learn how to sort image files and save them as TIFFs in folders based on detected barcode types using C#. Optimize your workflow with this code exampl...

Convert PDFs, MS Office, and images to TIFF in C#

Discover Nutrient .NET SDK’s (formerly GdPicture.NET) `GdpictureDocumentConverter` for seamless conversion of more than 100 document and image formats...

Generate a multipage TIFF file using a compression mode per page in C#

Learn to create multipage TIFF files using C#. This guide covers generating TIFFs with specific compression modes for each page efficiently.

Converting a Microsoft Word binary file document (DOC) to a Microsoft Word OpenXML document (DOCX) in C#

Learn to use Nutrient .NET SDK’s (formerly GdPicture.NET) `GdPictureDocumentConverter` for seamless DOC to DOCX conversion and manage document paramet...

Using an external OCR engine during PDF/OCR generation

Learn how to use external OCR engines in PDF/OCR generation using the GdPicturePDF class with this C# example. Optimize your document processing today...

Merging two PDF documents by alternating pages from both files in C#

Learn to merge two PDF files by alternating pages using C#. This method is ideal for batch scanning without a duplex scanner option.

Converting a multipage PDF to a multipage TIFF using color detection in C#

Learn how to efficiently convert PDF documents to high-quality multipage TIFF files using a color detection plugin while minimizing file size.

Recompress an existing PDF using color detection in C#

Learn how to efficiently recompress PDF files with images using C#. Follow our example to optimize your scanned documents effectively.

Recompress existing PDFs using MRC compression in C#

Learn how to recompress complex PDF documents using MRC compression to significantly reduce file size while maintaining quality.

Highlight and crop an image in C#

Learn how to capture and create images from highlighted areas in GdViewer using C#. Explore this practical example to enhance your document handling s...

Choosing the appropriate OCR zone in C#

Learn how to effectively choose OCR contexts for precise text recognition on forms, ensuring only relevant data is processed for optimal results.

Highlight a region in a PDF or an image in C#

Learn to draw modifiable highlighted regions on documents using C#. Ideal for anchor and OMR applications. Explore this practical C# code sample!

Saving a bitonal TIFF with photometric 0 (white is 0) and CCITT4 compression in C#

Learn to save bitonal TIFFs using photometric 1 and CCITT4 compression while avoiding display issues with some image viewers.

Convert a multipage TIFF to a multipage JBIG2 in C#

Learn how to convert multipage TIFF files to JBIG2 format using C#. Explore the example code for a seamless file conversion process.