Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Send-OfficePdfPrinter

Module PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Workflows.PdfPrintSubmission

Prepares PDF sheets and submits them to an explicitly named printer. Requires PowerShell 7.4 or newer.

Syntax

Send-OfficePdfPrinter [-Copies <Int32>] [-Dpi <Double>] [-Duplex <PrinterDefault|SingleSided|LongEdge|ShortEdge>] [-Margin <Double>] [-Orientation <Automatic|Portrait|Landscape>] [-OutputFilePath <String>] [-Pages <String>] [-PagesPerSheet <1|2|4>] [-PaperSize <PageSize>] [-PaperSourceId <String>] [-Password <String>] [-Path] <String> -PrinterName <String> [-ScaleMode <Fit|ActualSize|Fill>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

The returned receipt proves queue acceptance. It does not prove physical delivery. Check the queue after an interrupted submission before retrying.

Examples

Authored help example

Print selected PDF pages as two pages per sheet.

Send-OfficePdfPrinter -Path .\Report.pdf -PrinterName 'Office printer' -Pages '1-3' -PagesPerSheet 2 -Duplex LongEdge

Parameters

-Copies Int32 optional
Copies submitted to the queue.
-Dpi Double optional
Prepared sheet resolution.
-Duplex String optional
Duplex setting.
Possible values: PrinterDefault, SingleSided, LongEdge, ShortEdge
-Margin Double optional
Printable margin in points.
-Orientation String optional
Paper orientation.
Possible values: Automatic, Portrait, Landscape
-OutputFilePath String optional
New destination file for a Windows file printer.
-Pages String optional
Page selection such as 1-3,last.
-PagesPerSheet Int32 optional
Source pages per sheet.
Possible values: 1, 2, 4
-PaperSize PageSize optional
PDF paper size, default A4.
-PaperSourceId String optional
Paper source identifier reported for this queue.
-Password String optional
Password for an encrypted PDF; printing permissions remain enforced.
-Path String requiredposition: 0
Local PDF source.
-PrinterName String required
Installed queue from Get-OfficePrinter.
-ScaleMode String optional
Scaling of source pages.
Possible values: Fit, ActualSize, Fill

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.