Form.ImportFromJson

ImportFromJson(Stream)

Importe les champs de formulaire PDF à partir du format JSON fourni dans le flux.

public IEnumerable<FieldSerializationResult> ImportFromJson(Stream stream)
ParamètreTypeDescription
streamStreamLe flux à partir duquel lire l’entrée JSON.

Valeur de retour

Une collection de FieldSerializationResult indiquant le résultat de l’opération d’importation pour chaque champ de formulaire.

Exemples

Document document = new Document("PdfDoc.pdf");
FileStream fs = new FileStream("import.json", FileMode.Open, FileAccess.Read);
document.Form.ImportFormFieldsFromJson(fs);
fs.Close();
document.Save();

Voir aussi


ImportFromJson(string)

Importe les champs de formulaire PDF à partir du format JSON fourni dans le fichier spécifié.

public IEnumerable<FieldSerializationResult> ImportFromJson(string fileName)
ParamètreTypeDescription
fileNameStringLe nom du fichier à partir duquel lire l’entrée JSON.

Valeur de retour

Une collection de FieldSerializationResult indiquant le résultat de l’opération d’importation pour chaque champ de formulaire.

Exemples

Document document = new Document("PdfDoc.pdf");
string jsonPath = "import.json";
document.Form.ImportFormFieldsFromJson(jsonPath);
document.Save();

Voir aussi