Cmdlet
Set-OfficePdfSignature
Injects externally produced CMS, CAdES, or timestamp signature bytes into a prepared PDF signature placeholder.
Syntax
Set-OfficePdfSignature [-IgnorePermissionRestrictions] [-OutputPath] <String> [-PassThru] [-PassThruReport] [-Password <String>] [-Path] <String> [-SignaturePath] <String> [<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Inject a detached CMS signature into a prepared PDF.
Set-OfficePdfSignature -Path .\Prepared.pdf -SignaturePath .\signature.der -OutputPath .\Signed.pdf
Get-OfficePdfSignature -Path .\Signed.pdfWrites a PDF with the reserved /Contents hex slot patched in place.
Parameters
- -IgnorePermissionRestrictions SwitchParameter
- After successful password authentication, explicitly ignore owner-imposed signature restrictions.
- -OutputPath String
- Output signed PDF path.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -PassThruReport SwitchParameter
- Return a signature validation report for the written PDF instead of only the output file.
- -Password String
- Password used to authenticate an encrypted prepared PDF.
- -Path String
- Prepared PDF path.
- -SignaturePath String
- DER/CMS/CAdES/TSA response bytes to inject into the reserved /Contents slot.
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.