JSON Converter

Sheetize JSON Converter for .NET는 문서를 JSON 형식으로 변환하고 이를 다시 문서 형식으로 변환하는 강력한 기능을 제공하여 웹 애플리케이션 및 데이터 처리 워크플로우에 쉽게 통합할 수 있게 합니다.

주요 기능

문서에서 JSON으로 변환

문서(예: PDF, DOCX)를 JSON 형식으로 변환하여 구조화된 형식으로 콘텐츠를 추출하고 추가 분석 또는 통합에 사용할 수 있습니다.

JSON에서 문서로 변환

JSON 데이터를 PDF나 DOCX와 같은 문서 형식으로 변환하여 보고서 생성이나 문서 자동화를 용이하게 합니다.


자세한 가이드

문서를 JSON으로 변환하기

문서를 JSON으로 변환하려면:

  1. 변환기 초기화: JsonConverter의 인스턴스를 만듭니다.
  2. 변환 옵션 설정: DocumentToJsonOptions를 사용하여 문서가 JSON에서 어떻게 표현되는지를 구성합니다.
  3. 입력 및 출력 경로 정의: 입력 문서와 출력 JSON 파일의 경로를 설정합니다.
  4. 변환 실행: Process 메서드를 호출하여 문서를 변환합니다.

예제: PDF를 JSON으로 변환

// Step 1: Initialize the JSON Converter
var converter = new JsonConverter();

// Step 2: Configure options for Document to JSON conversion
var options = new DocumentToJsonOptions();
options.IncludeMetadata = true; // Include metadata in the JSON output
options.FormatOutput = true; // Format the JSON output for readability

// Step 3: Set file paths
options.AddInput(new FileDataSource("input.pdf"));
options.AddOutput(new FileDataSource("output.json"));

// Step 4: Run the conversion
converter.Process(options);

문서에서 JSON으로 변환할 때 사용 가능한 옵션

  • IncludeMetadata: JSON 출력에 문서 메타데이터를 포함할지 여부를 지정합니다.
  • FormatOutput: 가독성을 위해 JSON을 형식화할지 여부를 선택합니다.

JSON에서 문서로 변환하기

JSON 데이터를 문서로 변환하려면:

  1. 변환기 초기화: JsonConverter의 인스턴스를 만듭니다.
  2. 변환 옵션 설정: JsonToDocumentOptions를 사용하여 대상 문서 형식 및 레이아웃을 정의합니다.
  3. 경로 지정: 입력 JSON 및 출력 문서 파일 경로를 설정합니다.
  4. 변환 실행: Process 메서드를 호출하여 문서를 생성합니다.

예제: JSON을 PDF로 변환

// Step 1: Initialize the JSON Converter
var converter = new JsonConverter();

// Step 2: Configure options for JSON to Document conversion
var options = new JsonToDocumentOptions(DocumentFormat.Pdf);
options.PageLayoutOption = PageLayoutOption.Portrait;

// Step 3: Set file paths
options.AddInput(new FileDataSource("input.json"));
options.AddOutput(new FileDataSource("output.pdf"));

// Step 4: Execute the conversion
converter.Process(options);

JSON에서 문서로 변환할 때 추가 옵션

  • DocumentFormat: 대상 형식(Pdf, Docx 등)을 지정합니다.
  • PageLayoutOption: 생성된 문서의 페이지 레이아웃을 정의합니다(Portrait, Landscape).

이 변환기는 웹 서비스 및 기타 데이터 기반 애플리케이션과 문서 콘텐츠를 통합하기 위한 강력한 기능을 제공합니다. 문서에서 데이터를 추출하든 구조화된 데이터에서 문서를 생성하든, Sheetize JSON Converter는 현대 문서 워크플로에 이상적인 솔루션입니다.

 한국어