WidgetAnnotation.ExportToJson
محتويات
[
يخفي
]ExportToJson(Stream, ExportFieldsToJsonOptions)
تصدر حقل نموذج PDF المحدد إلى تنسيق JSON وتكتب النتيجة إلى الدفق المقدم.
public IEnumerable<FieldSerializationResult> ExportToJson(Stream stream,
ExportFieldsToJsonOptions options = null)
| المعامل | النوع | الوصف |
|---|---|---|
| stream | Stream | الدفق الذي سيتم كتابة مخرجات JSON فيه. |
| options | ExportFieldsToJsonOptions | إعدادات اختيارية لتصدير حقل النموذج إلى JSON. |
قيمة الإرجاع
مجموعة من FieldSerializationResult تشير إلى نتيجة عملية التصدير للحقل المحدد وعناصره الفرعية، إذا كانت موجودة.
أمثلة
Document document = new Document("PdfDoc.pdf");
FileStream fs = new FileStream("export.json", FileMode.Create, FileAccess.Write);
WidgetAnnotation annotation = document.Form[1];
annotation.ExportToJson(fs);
fs.Close();
انظر أيضًا
- class FieldSerializationResult
- class ExportFieldsToJsonOptions
- class WidgetAnnotation
- namespace Aspose.Pdf.Annotations
- assembly Aspose.PDF
ExportToJson(string, ExportFieldsToJsonOptions)
تصدر حقل نموذج PDF المحدد إلى تنسيق JSON وتكتب النتيجة إلى الملف المحدد.
public IEnumerable<FieldSerializationResult> ExportToJson(string fileName,
ExportFieldsToJsonOptions options = null)
| المعامل | النوع | الوصف |
|---|---|---|
| fileName | String | اسم الملف الذي سيتم كتابة مخرجات JSON فيه. |
| options | ExportFieldsToJsonOptions | إعدادات اختيارية لتصدير حقل النموذج إلى JSON. |
قيمة الإرجاع
مجموعة من FieldSerializationResult تشير إلى نتيجة عملية التصدير للحقل المحدد وعناصره الفرعية، إذا كانت موجودة.
أمثلة
Document document = new Document("PdfDoc.pdf");
string jsonPath = "export.json";
WidgetAnnotation annotation = document.Form[1];
annotation.ExportToJson(jsonPath);
انظر أيضًا
- class FieldSerializationResult
- class ExportFieldsToJsonOptions
- class WidgetAnnotation
- namespace Aspose.Pdf.Annotations
- assembly Aspose.PDF