Field.ExportValueToJson

طريقة Field.ExportValueToJson

تصدر محتوى الحقل المحدد إلى تدفق JSON. لا يتم تصدير قيمة حقل الزر.

public void ExportValueToJson(Stream outputJsonStream, bool indented = true)
المعاملالنوعالوصف
outputJsonStreamStreamتدفق JSON الناتج حيث سيتم كتابة بيانات الحقل.
indentedBooleanاختياري. يحدد ما إذا كان يجب تنسيق مخرجات JSON بشكل متداخل لتحسين القراءة. القيمة الافتراضية هي true.

أمثلة

Document document = new Document("PdfDoc.pdf");
FileStream fs = new FileStream("export.json", FileMode.Create, FileAccess.Write);
Field field = document.Form.Fields[0];
field.ExportValueToJson(fs);
fs.Close();

انظر أيضًا