Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 165
Forks 15
PowerShell Gallery downloads 158,661
Release v3.0.8
Language: C# Updated: 2026-10-12

API Reference

Cmdlet

Send-OfficePdfPrinter

Namespace PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Workflows.PdfPrintSubmission

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

Remarks

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.

PS>


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

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.

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

Parameters

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

Outputs

OfficeIMO.Workflows.PdfPrintSubmission