Form.ExportJson

طريقة Form.ExportJson

تصدر محتويات جميع الحقول في الوثيقة إلى تدفق JSON. قيم حقول الأزرار لا يتم تصديرها.

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

أمثلة

Form form = new Form("PdfForm.pdf");
FileStream fs = new FileStream("export.json", FileMode.Create, FileAccess.Write);
form.ExportJson(fs);
fs.Close();

انظر أيضًا