De JSON Converter

De Sheetize JSON Converter voor .NET biedt een stevige functionaliteit voor het converteren van documenten naar en uit het jSON-formaat, waardoor gemakkelijke integratie in webapplicaties en gegevensverwerking werkstromen mogelijk is.

De sleutelfuncties

Document naar JSON Conversie

Convert documenten (bijvoorbeeld PDF, DOCX) naar JSON-formaat om inhoud in een gestructureerd formaat te extraheren voor verdere analyse of integratie.

JSON naar Document Conversion

Transformeren van JSON-gegevens in documentformaten zoals PDF of DOCX, waardoor het gemakkelijk is om verslagen te genereren of documenten te automatiseren.

Gedetailleerde gids

Document converteren naar JSON

Om een document te converteren naar JSON:

  • Initialiseren van de Converter : Creëren van een JsonConverter.
  • Set Conversion Opties : Gebruik DocumentToJsonOptions om te configureren hoe het document wordt weergegeven in JSON.
  • Defineer Input en Output Paths : Set paths for the input document and output JSON file.
  • Uitvoeren van de conversie : Call the Process methode om het document te converteren.

Voorbeeld: Convert PDF naar 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);

Beschikbare opties voor Document naar JSON Conversie

  • IncludeMetadata : Bepaal of documentmetadata in de JSON-uitgang moet worden opgenomen.
  • FormatOutput : Selecteer of je de JSON moet formateren voor leesbaarheid.

Conversie van JSON naar document

Om JSON-gegevens te converteren naar een document:

  • Initialiseren van de Converter : Creëren van een JsonConverter.
  • Set Conversion Opties : Gebruik JsonToDocumentOptions om het doeldocument formaat en layout te definiëren.
  • Specificeer Paths : Set input JSON en output document bestandpaden.
  • Uitvoeren van de conversie : Call the Process Methode om het document te genereren.

Voorbeeld: Convert JSON naar 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);

Aanvullende opties voor JSON naar Document Conversion

  • DocumentFormat : Bepaal het doelformaat (Pdf, Docxen enz.)
  • PageLayoutOption : Definieer de pagina layout voor het resulterende document (Portrait, Landscape).

Deze converter biedt krachtige mogelijkheden voor het integreren van documentinhoud met webdiensten en andere op data gebaseerde toepassingen. Of het nu gegevens uit documenten extract of dokumenten uit gestructureerde gegevens genereert, de Sheetize JSON Converter is een ideale oplossing voor moderne documentwerkstromen.

 Nederlands