Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Test-OfficePdfRewrite

Module
PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Pdf.PdfRewritePreservationReport

Creates a proof report for user-visible signals preserved by a PDF rewrite.

Syntax

Test-OfficePdfRewrite
[-DifferencePassword <SecureString>]
[-DifferencePath] <String>
[-FailOnLoss]
[-IgnoreDifferencePermissionRestrictions]
[-IgnorePermissionRestrictions]
[-Options <Object[]>]
[-Password <SecureString>]
[-ReferencePath] <String>
[<CommonParameters>]
#
Parameter set: Path

Examples

Example 1

Test-OfficePdfRewrite -ReferencePath 'C:\Path' -DifferencePath 'C:\Path'

Parameters

-DifferencePassword SecureString optional
Password used to authenticate the rewritten PDF.
-DifferencePath String requiredposition: 1
Rewritten PDF path.
-FailOnLoss SwitchParameter optional
Throw when preservation checks find a mismatch.
-IgnoreDifferencePermissionRestrictions SwitchParameter optional
After authentication, explicitly ignore restrictions on the rewritten PDF.
-IgnorePermissionRestrictions SwitchParameter optional
After authentication, explicitly ignore restrictions on the original PDF.
-Options Object[] optional
Optional required preservation signals and limits.
-Password SecureString optional
Password used to authenticate the original PDF.
-ReferencePath String requiredposition: 0
Original PDF path.

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.