Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeDrawingPortableExporter

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Source revision dce3df7a1b5d with working tree changes
Modifiers static

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: Boolean

Exports an ordered drawing, returning no JSON when any source element cannot be preserved.

Parameters

drawing OfficeIMO.Drawing.OfficeDrawing requiredposition: 0
Canonical drawing in points with a local top-left origin.
options OfficeIMO.Drawing.OfficeDrawingPortableOptions requiredposition: 1
Explicit font family and resource budgets.
json System.String? requiredposition: 2
Complete version 1 JSON, or null on unsupported content or exceeded budgets.
diagnostics System.Collections.Generic.IReadOnlyList<OfficeIMO.OfficeConversionFidelityDiagnostic> requiredposition: 3
A stable failure code and source location, or an empty collection on success.