API Reference
Class
OfficeDrawingPortableExporter
Projects canonical drawing elements to version 1 portable report drawing JSON.
Inheritance
- Object
- OfficeDrawingPortableExporter
Remarks
This is a bounded projection, not a general drawing serializer. Unsupported paint, layout, fonts or resources reject the entire export; no partial drawing is returned.
Methods
public static Boolean TryExportJson(OfficeDrawing drawing, OfficeDrawingPortableOptions options, out String? json, out IReadOnlyList<OfficeConversionFidelityDiagnostic> diagnostics) #Returns:
BooleanExports an ordered drawing, returning no JSON when any source element cannot be preserved.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- Canonical drawing in points with a local top-left origin.
- options OfficeIMO.Drawing.OfficeDrawingPortableOptions
- Explicit font family and resource budgets.
- json System.String?
- Complete version 1 JSON, or null on unsupported content or exceeded budgets.
- diagnostics System.Collections.Generic.IReadOnlyList<OfficeIMO.OfficeConversionFidelityDiagnostic>
- A stable failure code and source location, or an empty collection on success.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?