Cmdlet
New-OfficePdfVisualComparisonOptions
Creates native PDF comparison settings and independent bounded policies for both inputs.
Syntax
New-OfficePdfVisualComparisonOptions
[-Alignment <TopLeft| Center>]
[-AllowedDifferenceRatio <Double>]
[-BackgroundColor <OfficeColor>]
[-ChannelTolerance <Int32>]
[-DifferenceLoadOptions <PdfLoadOptions>]
[-IgnoreDifferencePermissionRestrictions]
[-IgnorePermissionRestrictions]
[-MaximumPixelCountPerImage <Int64>]
[-MaximumTotalPixelCount <Int64>]
[-MaxPages <Int32>]
[-MaxTotalOutputBytes <Int64>]
[-ReferenceLoadOptions <PdfLoadOptions>]
[-Scale <Double>]
[<CommonParameters>]#Parameter set:
DefaultExamples
Example 1
New-OfficePdfVisualComparisonOptions -Alignment 'Value'Parameters
- -Alignment PdfVisualPageAlignment
- Native page-image alignment.
- Possible values:
TopLeft,Center - -AllowedDifferenceRatio Double
- Maximum differing-pixel ratio accepted as equal.
- -BackgroundColor OfficeColor
- Raster background.
- -ChannelTolerance Int32
- Maximum per-channel difference treated as equal.
- -DifferenceLoadOptions PdfLoadOptions
- Bounded policy for the difference input.
- -IgnoreDifferencePermissionRestrictions SwitchParameter
- Explicitly ignore authenticated owner-imposed restrictions on the difference PDF.
- -IgnorePermissionRestrictions SwitchParameter
- Explicitly ignore authenticated owner-imposed restrictions on the reference PDF.
- -MaximumPixelCountPerImage Int64
- Maximum pixels in one expected, actual or difference image.
- -MaximumTotalPixelCount Int64
- Maximum aggregate raster pixels.
- -MaxPages Int32
- Maximum pages on either side.
- -MaxTotalOutputBytes Int64
- Maximum retained PNG bytes.
- -ReferenceLoadOptions PdfLoadOptions
- Bounded policy for the reference input.
- -Scale Double
- Native render scale.
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.
Outputs
PSWriteOffice.Services.Comparison.OfficePdfVisualComparisonOptions: Native comparison settings and distinct bounded input policies for the two PDF roles.