# OfficeDrawingPortableExporter

Projects canonical drawing elements to version 1 portable report drawing JSON.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[OfficeDrawingPortableExporter.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Core/OfficeDrawingPortableExporter.cs#L14)

**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.

Filter members 

Show inherited

## Methods

`public static bool TryExportJson(OfficeDrawing drawing, OfficeDrawingPortableOptions options, out string? json, out IReadOnlyList<OfficeDiagnostic> diagnostics)` [#](#method-tryexportjson-officeimo-drawing-officedrawing-officeimo-drawing-officedrawingportableoptions-string-collections-generic-ireadonlylist-officeimo-officediagnostic)

[OfficeDrawingPortableExporter.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Core/OfficeDrawingPortableExporter.cs#L14)

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

Parameters

**drawing OfficeIMO.Drawing.OfficeDrawing required**

Canonical drawing in points with a local top-left origin.

**options OfficeIMO.Drawing.OfficeDrawingPortableOptions required**

Explicit font family and resource budgets.

**json string? required**

Complete version 1 JSON, or null on unsupported content or exceeded budgets.

**diagnostics System.Collections.Generic.IReadOnlyList<OfficeIMO.OfficeDiagnostic> required**

A stable failure code and source location, or an empty collection on success.

Returns

`bool`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:81C11D416E79978C06BAD1AC35D01DDD48D922B1F1AE29854829A5D426A48844 -->
