Form.ExportToJson
Contenuti
[
Nascondere
]ExportToJson(Stream, ExportFieldsToJsonOptions)
Esporta i campi del modulo PDF in formato JSON e scrive il risultato nello stream fornito.
public IEnumerable<FieldSerializationResult> ExportToJson(Stream stream,
ExportFieldsToJsonOptions options = null)
| Parameter | Type | Description |
|---|---|---|
| stream | Stream | Lo stream su cui scrivere l’output JSON. |
| options | ExportFieldsToJsonOptions | Impostazioni opzionali per esportare i campi del modulo in JSON. |
Return Value
Una collezione di FieldSerializationResult che indica il risultato dell’operazione di esportazione per ciascun campo del modulo.
Examples
Document document = new Document("PdfDoc.pdf");
FileStream fs = new FileStream("export.json", FileMode.Create, FileAccess.Write);
document.Form.ExportFormFieldsToJson(fs);
fs.Close();
See Also
- class FieldSerializationResult
- class ExportFieldsToJsonOptions
- class Form
- namespace Aspose.Pdf.Forms
- assembly Aspose.PDF
ExportToJson(string, ExportFieldsToJsonOptions)
Esporta i campi del modulo PDF in formato JSON e scrive il risultato nel file specificato.
public IEnumerable<FieldSerializationResult> ExportToJson(string fileName,
ExportFieldsToJsonOptions options = null)
| Parameter | Type | Description |
|---|---|---|
| fileName | String | Il nome del file su cui scrivere l’output JSON. |
| options | ExportFieldsToJsonOptions | Impostazioni opzionali per esportare i campi del modulo in JSON. |
Return Value
Una collezione di FieldSerializationResult che indica il risultato dell’operazione di esportazione per ciascun campo del modulo.
Examples
Document document = new Document("PdfDoc.pdf");
string jsonPath = "export.json";
document.Form..ExportFormFieldsToJson(jsonPath);
See Also
- class FieldSerializationResult
- class ExportFieldsToJsonOptions
- class Form
- namespace Aspose.Pdf.Forms
- assembly Aspose.PDF