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