Form.ImportFromJson

ImportFromJson(Stream)

تستورد حقول نموذج PDF من تنسيق JSON المقدم في الدفق.

public IEnumerable<FieldSerializationResult> ImportFromJson(Stream stream)
ParameterTypeDescription
streamStreamالدفق لقراءة مدخلات JSON منه.

Return Value

مجموعة من FieldSerializationResult تشير إلى نتيجة عملية الاستيراد لكل حقل نموذج.

Examples

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

See Also


ImportFromJson(string)

تستورد حقول نموذج PDF من تنسيق JSON المقدم في الملف المحدد.

public IEnumerable<FieldSerializationResult> ImportFromJson(string fileName)
ParameterTypeDescription
fileNameStringاسم الملف لقراءة مدخلات JSON منه.

Return Value

مجموعة من FieldSerializationResult تشير إلى نتيجة عملية الاستيراد لكل حقل نموذج.

Examples

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

See Also