Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

New-OfficePdfSignature

Module
PSWriteOffice
Inputs
System.String[]
Outputs
System.IO.FileInfo OfficeIMO.Pdf.PdfExternalSignaturePreparation

Prepare external PDF signature using native byte-range and signature-placeholder operations.

Syntax

New-OfficePdfSignature
[-ContactInfo <String>]
[-FieldName <String>]
[-Filter <String>]
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Location <String>]
[-Name <String>]
-OutputPath <String>
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
[-Reason <String>]
[-ReservedSize <Int32>]
[-SubFilter <DetachedCms|CadesDetached|DocumentTimestamp>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: Path
New-OfficePdfSignature
[-ContactInfo <String>]
[-FieldName <String>]
[-Filter <String>]
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Location <String>]
[-Name <String>]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
[-Path] <String[]>
[-Reason <String>]
[-ReservedSize <Int32>]
[-SubFilter <DetachedCms|CadesDetached|DocumentTimestamp>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: PathDirectory
New-OfficePdfSignature
[-ContactInfo <String>]
[-FieldName <String>]
[-Filter <String>]
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Location <String>]
[-Name <String>]
-OutputPath <String>
[-PassThru]
[-Password <SecureString>]
[-Reason <String>]
[-ReservedSize <Int32>]
[-SubFilter <DetachedCms|CadesDetached|DocumentTimestamp>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: LiteralPath
New-OfficePdfSignature
[-ContactInfo <String>]
[-FieldName <String>]
[-Filter <String>]
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Location <String>]
[-Name <String>]
-OutputDirectory <String>
[-PassThru]
[-Password <SecureString>]
[-Reason <String>]
[-ReservedSize <Int32>]
[-SubFilter <DetachedCms|CadesDetached|DocumentTimestamp>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: LiteralPathDirectory

Description

Confirmation precedes loading, native mutation and output creation. This command does not obtain certificates or private keys.

Examples

Example 1

New-OfficePdfSignature -Path @('C:\Path') -OutputPath 'C:\Path'

Example 2

New-OfficePdfSignature -OutputPath 'C:\Path' -LiteralPath @('C:\Path')

Example 3

New-OfficePdfSignature -OutputDirectory 'Value' -LiteralPath @('C:\Path')

Parameters

-ContactInfo String optional
ContactInfo setting.
-FieldName String optional
FieldName setting.
-Filter String optional
Filter setting.
-IgnorePermissionRestrictions SwitchParameter optional
IgnorePermissionRestrictions setting.
-LoadOptions PdfLoadOptions optional
Native parsing, authentication and resource policy.
-Location String optional
Location setting.
-Name String optional
Name setting.
-OutputPath String requiredsets: Path, LiteralPath
Single-file destination.
-PassThru SwitchParameter optional
Return native annotation edit reports.
-Password SecureString optional
Password setting.
-Path String[] requiredposition: 0sets: Path, PathDirectory
Input PDF paths with wildcard expansion.
-Reason String optional
Reason setting.
-ReservedSize Int32 optional
ReservedSize setting.
-SubFilter PdfExternalSignatureSubFilter optional
SubFilter setting.
Possible values: DetachedCms, CadesDetached, DocumentTimestamp
-WhatIf SwitchParameter optional
Shows what would happen if the command runs.
-Confirm SwitchParameter optional
Prompts for confirmation before running the command.
-OutputDirectory String requiredsets: PathDirectory, LiteralPathDirectory
Batch destination retaining source names.
-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath, LiteralPathDirectory
Literal input PDF paths; accepts FileInfo.FullName.

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.