# Save-OfficePdf

Saves an OfficeIMO.Pdf document. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

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

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Pdf.PdfDocument`

**Outputs**

`OfficeIMO.Pdf.PdfDocument`

**Source**

[SaveOfficePdfCommand.cs:23](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/SaveOfficePdfCommand.cs#L23) 

Saves an OfficeIMO.Pdf document.

## Syntax

```
Save-OfficePdf
[-Document] <PdfDocument>
[-Open]
[-OwnerPassword <String>]
[-PassThru]
[-Password <String>]
[-Path] <String>
[-Permission <Int32>]
[<CommonParameters>]
```

[#](#method-save-officepdf-pdfdocument-switchparameter-string-switchparameter-string-string-int32)

Parameter set: `All Parameter Sets`

## Description

Use this command when a PDF is built in memory and saved later, or when a pipeline should continue with the saved file. The document is saved through the normal OfficeIMO.Pdf save path.

## Examples

### Build a PDF in memory and save it later.

```powershell
$pdf = New-OfficePdf { PdfHeading 'Queued report'; PdfParagraph 'Generated in memory.' }
$pdf | Save-OfficePdf -Path .\QueuedReport.pdf
```

Creates a PDF document object first, then saves it to disk.

## Parameters

**-Document PdfDocument requiredposition: 0pipeline: True (ByValue)**

PDF document to save.

**-Open SwitchParameter optionalaliases: Show**

Open the PDF after saving.

**-OwnerPassword String optional**

Optional owner password for the generated encrypted PDF.

**-PassThru SwitchParameter optional**

Emit the document for further processing.

**-Password String optionalaliases: UserPassword**

Password required to open the generated PDF.

**-Path String requiredposition: 1aliases: FilePath**

Destination PDF path.

**-Permission Int32 optionalaliases: Permissions**

Raw PDF Standard security permission bit mask. Defaults to allowing all standard operations.

## 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:DEC2EF0A8B1C7A41E6E40F77491C14E81A54F0ADD21F46A5133E3A0DAD323A96 -->
