Convert JP2 to TXT

JPEG 2000 (JP2) is an image coding system and state-of-the-art image compression standard. Designed, using wavelet technology JPEG 2000 can code lossless content in any quality at once. Moreover, without any substantial penalty in coding efficiency, JPEG 2000 have the capability to access and decode the same content efficaciously into a variety of other resolutions and qualities. The code streams in JPEG 2000 is significantly scalable having regions of interest that provide the facility for spatial random access. Possessing Up to 16384 diverse components with the dimensions in terapixels, and precision that can be high as 38 bits/sample.

Steps to convert JP2 to TXT in C#

GroupDocs.Conversion allows developers to convert the JP2 file to TXT format in an easy and intuitive way just using a few lines of code as described below:

  • Create an instance of Converter class and pass source JP2 file path as a constructor parameter. You may specify absolute or relative file path as per your requirements.
  • Create an instance of WordProcessingConvertOptions class and set Format property to GroupDocs.Conversion.FileTypes.WordProcessingFileType.Txt.
  • Call Converter class Convert method and pass the filename for the converted TXT file and the WordProcessingConvertOptions object from the previous step as parameters.
// Load the source JP2 file
using (var converter = new GroupDocs.Conversion.Converter("sample.jp2"))
{
    // Set the convert options for TXT format
   var options = new WordProcessingConvertOptions { Format = GroupDocs.Conversion.FileTypes.WordProcessingFileType.Txt };
    // Convert to TXT format
    converter.Convert("converted.txt", options);
}

Code Examples

Please find more use-cases and complete C# sources of our backend and frontend examples and try them for free!

JP2 to TXT Live Demo

GroupDocs.Conversion for .NET provides an online JP2 to TXT converter, which allows you to try it for free and check conversion quality and accuracy.

“Convert JP2 to TXT”