Form.ExportJson
طريقة Form.ExportJson
تصدر محتويات جميع الحقول في الوثيقة إلى تدفق JSON. قيم حقول الأزرار لا يتم تصديرها.
public void ExportJson(Stream outputJsonStream, bool indented = true)
المعامل | النوع | الوصف |
---|---|---|
outputJsonStream | Stream | تدفق JSON الناتج حيث سيتم كتابة بيانات حقول الوثيقة. |
indented | Boolean | اختياري. يحدد ما إذا كان يجب تنسيق مخرجات JSON بشكل متداخل لتحسين القراءة. القيمة الافتراضية هي true. |
أمثلة
Form form = new Form("PdfForm.pdf");
FileStream fs = new FileStream("export.json", FileMode.Create, FileAccess.Write);
form.ExportJson(fs);
fs.Close();
انظر أيضًا
- class Form
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF