.NET 용 인보이스 텍스트 변환

.NET 용 인보이스 텍스트 변환 소개

.NET 용 인보이스 텍스트 변환은 개발자가 인보이스에서 텍스트를 추출하고 편집 가능한 형식으로 변환할 수 있는 플러그인입니다. 이 가이드에서는 사용 가능한 기능, 시작 방법 및 C#의 코드 예제에 대해 설명합니다.

지원되는 파일 형식

플러그인은 다양한 이미지 및 문서 파일 형식에서 텍스트를 추출하는 것을 지원하며, 다음과 같은 형식이 포함됩니다:

  • JPEG
  • PNG
  • GIF
  • BMP
  • TIFF

인보이스에서 텍스트 추출

인보이스에서 텍스트를 추출하려면 다음 코드 예제를 사용할 수 있습니다:

Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// 이미지 추가
Aspose.OCR.OcrInput input = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
input.Add("source1.png");
input.Add("source2.jpg");
// 인식 언어 설정
Aspose.OCR.InvoiceRecognitionSettings recognitionSettings = new Aspose.OCR.InvoiceRecognitionSettings();
recognitionSettings.Language = Aspose.OCR.Language.Latin;
// 이미지 인식
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.RecognizeInvoice(input, recognitionSettings);
foreach(Aspose.OCR.RecognitionResult result in results)
{
    Console.WriteLine(result.RecognitionText);
}
// 파일로 저장
results[0].Save("result.txt", Aspose.OCR.SaveFormat.Text);
// 또는
Aspose.OCR.AsposeOcr.SaveMultipageDocument("result.pdf", Aspose.OCR.SaveFormat.Pdf, results);

API 참조

사용 가능한 클래스, 메서드 및 속성에 대한 자세한 정보는 API 참조 문서를 참조하십시오.

 한국어