Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Close-OfficePdf

Module
PSWriteOffice
Inputs
OfficeIMO.Pdf.PdfDocument

Completes a live PDF document's lifetime without saving.

Syntax

Close-OfficePdf
-Document <PdfDocument>
[<CommonParameters>]
#
Parameter set: Document

Examples

Finish using a PDF without writing pending changes.

$pdf | Close-OfficePdf

Parameters

-Document PdfDocument requiredpipeline: True (ByValue)
Live PDF document to close.

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.