# Add-OfficePdfVisual

Adds a ChartForgeX artifact, portable SVG, or converted Office visual to PDF flow content.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: PdfVisual

**Module**

`PSWriteOffice`

**Aliases**

`PdfVisual`

**Inputs**

`OfficeIMO.Pdf.PdfDocument` `System.Object`

**Outputs**

`OfficeIMO.Pdf.PdfDocument`

**Source**

[AddOfficePdfVisualCommand.cs:13](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/AddOfficePdfVisualCommand.cs#L13) 

Adds a ChartForgeX artifact, portable SVG, or converted Office visual to PDF flow content.

## Syntax

```
Add-OfficePdfVisual
[-Align <Left|Center|Right|Justify>]
[-AlternativeText <String>]
[-Height <Double>]
[-Id <String>]
[-InputObject] <Object>
[-MaximumSvgElements <Int32>]
[-MaximumSvgViewportDimension <Double>]
[-MaximumSvgViewportPixels <Double>]
[-PassThru]
[-PointsPerPixel <Double>]
[-SpacingAfter <Double>]
[-SpacingBefore <Double>]
[-SvgPolicy <PreserveVector|RasterizeWhenNeeded|RequireVector>]
[-Title <String>]
[-Width <Double>]
[<CommonParameters>]
```

[#](#method-add-officepdfvisual-pdfalign-string-double-string-object-int32-double-double-switchparameter-double-double-double-officevisualsvgpolicy-string-double)

Parameter set: `Context`

```
Add-OfficePdfVisual
[-Align <Left|Center|Right|Justify>]
[-AlternativeText <String>]
-Document <PdfDocument>
[-Height <Double>]
[-Id <String>]
[-InputObject] <Object>
[-MaximumSvgElements <Int32>]
[-MaximumSvgViewportDimension <Double>]
[-MaximumSvgViewportPixels <Double>]
[-PassThru]
[-PointsPerPixel <Double>]
[-SpacingAfter <Double>]
[-SpacingBefore <Double>]
[-SvgPolicy <PreserveVector|RasterizeWhenNeeded|RequireVector>]
[-Title <String>]
[-Width <Double>]
[<CommonParameters>]
```

[#](#method-add-officepdfvisual-pdfalign-string-pdfdocument-double-string-object-int32-double-double-switchparameter-double-double-double-officevisualsvgpolicy-string-double)

Parameter set: `Document`

```
Add-OfficePdfVisual
[-Align <Left|Center|Right|Justify>]
[-AlternativeText <String>]
-Document <PdfDocument>
[-Height <Double>]
[-Id <String>]
[-InputObject] <Object>
[-MaximumSvgElements <Int32>]
[-MaximumSvgViewportDimension <Double>]
[-MaximumSvgViewportPixels <Double>]
[-PassThru]
[-PointsPerPixel <Double>]
[-SpacingAfter <Double>]
[-SpacingBefore <Double>]
[-SvgPolicy <PreserveVector|RasterizeWhenNeeded|RequireVector>]
[-Title <String>]
[-Width <Double>]
[<CommonParameters>]
```

[#](#method-add-officepdfvisual-pdfalign-string-pdfdocument-double-string-object-int32-double-double-switchparameter-double-double-double-officevisualsvgpolicy-string-double-2)

Parameter set: `PipelineDocument`

## Examples

### Example 1

```powershell
Add-OfficePdfVisual -InputObject 'Value'
```

### Example 2

```powershell
Add-OfficePdfVisual -InputObject 'Value' -Document 'Value'
```

## Parameters

**-Align PdfAlign optional**

Horizontal alignment in PDF flow.

Possible values: `Left`, `Center`, `Right`, `Justify`

**-AlternativeText String optional**

Optional accessible description for an SVG file input.

**-Height Double optional**

Optional output height in Office points.

**-Id String optional**

Optional stable identifier for an SVG file input.

**-InputObject Object requiredposition: 0pipeline: True (ByValue)**

ChartForgeX VisualArtifact, OfficeVisualSource, OfficeVisualConversionResult, or SVG file path.

**-MaximumSvgElements Int32 optional**

Optional OfficeIMO SVG import element limit.

**-MaximumSvgViewportDimension Double optional**

Optional maximum SVG viewport width or height. Increase the safe default only for trusted input.

**-MaximumSvgViewportPixels Double optional**

Optional maximum SVG viewport area in pixels. Increase the safe default only for trusted input.

**-PassThru SwitchParameter optional**

Emit the updated PDF document.

**-PointsPerPixel Double optional**

Conversion factor from ChartForgeX pixels to Office points.

**-SpacingAfter Double optional**

Spacing after the visual in points.

**-SpacingBefore Double optional**

Spacing before the visual in points.

**-SvgPolicy OfficeVisualSvgPolicy optional**

SVG fidelity policy used by OfficeIMO.ChartForgeX.

Possible values: `PreserveVector`, `RasterizeWhenNeeded`, `RequireVector`

**-Title String optional**

Optional title for an SVG file input.

**-Width Double optional**

Optional output width in Office points.

**-Document PdfDocument requiredpipeline: True (ByValue)sets: Document, PipelineDocument**

PDF document to update outside the DSL context.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:86F730C98A9E9A01B3F1B4FFD3D6A625CC8062E82C53C3F3BC09130F9BE9578F -->
