Cmdlet
New-OfficePdfRewriteOptions
Creates native PDF rewrite preservation checks for Test-OfficePdfRewrite.
Syntax
New-OfficePdfRewriteOptions
[-FormWidgetActions]
[-NoAnnotations]
[-NoCatalogActions]
[-NoCatalogViewSettings]
[-NoDocumentVersionState]
[-NoEmbeddedFiles]
[-NoForms]
[-NoLinkAnnotations]
[-NoMetadata]
[-NoNamedDestinations]
[-NoOpenAction]
[-NoOptionalContent]
[-NoOutlines]
[-NoOutputIntents]
[-NoPageActions]
[-NoPageCount]
[-NoPageGeometry]
[-NoPageLabels]
[-NoRevisionStructure]
[-NoSecurityState]
[-NoTaggedContent]
[-NoViewerPreferences]
[-NoXmpMetadata]
[<CommonParameters>]#Parameter set:
DefaultExamples
Permit a rewrite to update document metadata.
$options = New-OfficePdfRewriteOptions -NoMetadata -NoXmpMetadata
Test-OfficePdfRewrite -ReferencePath ./Original.pdf -DifferencePath ./Updated.pdf -Options $options -FailOnLossParameters
- -FormWidgetActions SwitchParameter
- Require preservation of form field and widget actions.
- -NoAnnotations SwitchParameter
- Exclude annotations from preservation checks.
- -NoCatalogActions SwitchParameter
- Exclude catalog actions from preservation checks.
- -NoCatalogViewSettings SwitchParameter
- Exclude catalog view settings from preservation checks.
- -NoDocumentVersionState SwitchParameter
- Exclude document version state from preservation checks.
- -NoEmbeddedFiles SwitchParameter
- Exclude embedded files from preservation checks.
- -NoForms SwitchParameter
- Exclude forms from preservation checks.
- -NoLinkAnnotations SwitchParameter
- Exclude link annotations from preservation checks.
- -NoMetadata SwitchParameter
- Exclude metadata from preservation checks.
- -NoNamedDestinations SwitchParameter
- Exclude named destinations from preservation checks.
- -NoOpenAction SwitchParameter
- Exclude open action from preservation checks.
- -NoOptionalContent SwitchParameter
- Exclude optional content from preservation checks.
- -NoOutlines SwitchParameter
- Exclude outlines from preservation checks.
- -NoOutputIntents SwitchParameter
- Exclude output intents from preservation checks.
- -NoPageActions SwitchParameter
- Exclude page actions from preservation checks.
- -NoPageCount SwitchParameter
- Exclude page count from preservation checks.
- -NoPageGeometry SwitchParameter
- Exclude page geometry from preservation checks.
- -NoPageLabels SwitchParameter
- Exclude page labels from preservation checks.
- -NoRevisionStructure SwitchParameter
- Exclude revision structure from preservation checks.
- -NoSecurityState SwitchParameter
- Exclude security state from preservation checks.
- -NoTaggedContent SwitchParameter
- Exclude tagged content from preservation checks.
- -NoViewerPreferences SwitchParameter
- Exclude viewer preferences from preservation checks.
- -NoXmpMetadata SwitchParameter
- Exclude xmp metadata from preservation checks.
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.