# Add-OfficePdfImage

Adds a raster image or reusable native visual to PDF content.

Cmdlet 

Aliases: PdfImage

**Module**

`PSWriteOffice`

**Aliases**

`PdfImage`

**Inputs**

`System.Object`

**Outputs**

`OfficeIMO.Pdf.PdfDocument`

**Source**

[AddOfficePdfImageCommand.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/AddOfficePdfImageCommand.cs#L16) 

Adds a raster image or reusable native visual to PDF content.

## Syntax

```
Add-OfficePdfImage
[-Alignment <OfficeAlignment>]
[-AlternativeText <String>]
[-Height <OfficeLength>]
[-Link <String>]
[-LinkContents <String>]
[-Path] <String>
[-Width <OfficeLength>]
[<CommonParameters>]
```

[#](#method-add-officepdfimage-officealignment-string-officelength-string-string-string-officelength)

Parameter set: `Path`

```
Add-OfficePdfImage
[-Alignment <OfficeAlignment>]
[-AlternativeText <String>]
-Document <PdfDocument>
[-Height <OfficeLength>]
[-Link <String>]
[-LinkContents <String>]
[-PassThru]
[-Path] <String>
[-Width <OfficeLength>]
[<CommonParameters>]
```

[#](#method-add-officepdfimage-officealignment-string-pdfdocument-officelength-string-string-switchparameter-string-officelength)

Parameter set: `DocumentPath`

```
Add-OfficePdfImage
[-Alignment <OfficeAlignment>]
[-AlternativeText <String>]
[-Height <OfficeLength>]
[-Id <String>]
-InputObject <Object>
[-Link <String>]
[-LinkContents <String>]
[-MaximumSvgElements <Int32>]
[-MaximumSvgViewportDimension <Double>]
[-MaximumSvgViewportPixelCount <Int64>]
[-PointsPerPixel <Double>]
[-SpacingAfter <OfficeLength>]
[-SpacingBefore <OfficeLength>]
[-SvgPolicy <PreserveVector|RasterizeWhenNeeded|RequireVector>]
[-Title <String>]
[-Width <OfficeLength>]
[<CommonParameters>]
```

[#](#method-add-officepdfimage-officealignment-string-officelength-string-object-string-string-int32-double-int64-double-officelength-officelength-officevisualsvgpolicy-string-officelength)

Parameter set: `InputObject`

```
Add-OfficePdfImage
[-Alignment <OfficeAlignment>]
[-AlternativeText <String>]
-Document <PdfDocument>
[-Height <OfficeLength>]
[-Id <String>]
-InputObject <Object>
[-Link <String>]
[-LinkContents <String>]
[-MaximumSvgElements <Int32>]
[-MaximumSvgViewportDimension <Double>]
[-MaximumSvgViewportPixelCount <Int64>]
[-PassThru]
[-PointsPerPixel <Double>]
[-SpacingAfter <OfficeLength>]
[-SpacingBefore <OfficeLength>]
[-SvgPolicy <PreserveVector|RasterizeWhenNeeded|RequireVector>]
[-Title <String>]
[-Width <OfficeLength>]
[<CommonParameters>]
```

[#](#member-5c2c4c575bdab556d5cde0f0)

Parameter set: `DocumentInputObject`

## Examples

### Example 1

```powershell
Add-OfficePdfImage -Path 'C:\Path'
```

### Example 2

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

### Example 3

```powershell
Add-OfficePdfImage -Path 'C:\Path' -Document 'Value'
```

## Parameters

**-Alignment OfficeAlignment optional**

Alignment for this content.

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

**-AlternativeText String optional**

AlternativeText for this content.

**-Height OfficeLength optional**

Optional output height; numbers mean points and unit suffixes are accepted.

**-Link String optional**

Link for this content.

**-LinkContents String optional**

LinkContents for this content.

**-Path String requiredposition: 0sets: Path, DocumentPath**

Path for this content.

**-Width OfficeLength optional**

Optional output width; numbers mean points and unit suffixes are accepted.

**-Document PdfDocument requiredsets: DocumentPath, DocumentInputObject**

Document for this content.

**-PassThru SwitchParameter optionalsets: DocumentPath, DocumentInputObject**

PassThru for this content.

**-Id String optionalsets: InputObject, DocumentInputObject**

Id for a reusable visual input.

**-InputObject Object requiredpipeline: True (ByValue)sets: InputObject, DocumentInputObject**

InputObject for this content.

**-MaximumSvgElements Int32 optionalsets: InputObject, DocumentInputObject**

MaximumSvgElements for a reusable visual input.

**-MaximumSvgViewportDimension Double optionalsets: InputObject, DocumentInputObject**

MaximumSvgViewportDimension for a reusable visual input.

**-MaximumSvgViewportPixelCount Int64 optionalsets: InputObject, DocumentInputObject**

MaximumSvgViewportPixelCount for a reusable visual input.

**-PointsPerPixel Double optionalsets: InputObject, DocumentInputObject**

PointsPerPixel for a reusable visual input.

**-SpacingAfter OfficeLength optionalsets: InputObject, DocumentInputObject**

SpacingAfter for this content.

**-SpacingBefore OfficeLength optionalsets: InputObject, DocumentInputObject**

SpacingBefore for this content.

**-SvgPolicy OfficeVisualSvgPolicy optionalsets: InputObject, DocumentInputObject**

SvgPolicy for a reusable visual input.

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

**-Title String optionalsets: InputObject, DocumentInputObject**

Title for a reusable visual input.

## 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).

<!-- PowerForge markdown artifact sha256:9955BBEC729D47DE2DA7DD90A533FFDD199EA14741C040D2068C6BB42ED2CA17 -->
