# New-OfficePdfVisualComparisonOptions

Creates native PDF comparison settings and independent bounded policies for both inputs.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`PSWriteOffice.Services.Comparison.OfficePdfVisualComparisonOptions`

**Source**

[NewOfficePdfVisualComparisonOptionsCommand.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/NewOfficePdfVisualComparisonOptionsCommand.cs#L12) 

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>]
```

[#](#method-new-officepdfvisualcomparisonoptions-pdfvisualpagealignment-double-officecolor-int32-pdfloadoptions-switchparameter-switchparameter-int64-int64-int32-int64-pdfloadoptions-double)

Parameter set: `Default`

## Examples

### Example 1

```powershell
New-OfficePdfVisualComparisonOptions -Alignment 'Value'
```

## Parameters

**-Alignment PdfVisualPageAlignment optional**

Native page-image alignment.

Possible values: `TopLeft`, `Center`

**-AllowedDifferenceRatio Double optional**

Maximum differing-pixel ratio accepted as equal.

**-BackgroundColor OfficeColor optional**

Raster background.

**-ChannelTolerance Int32 optional**

Maximum per-channel difference treated as equal.

**-DifferenceLoadOptions PdfLoadOptions optional**

Bounded policy for the difference input.

**-IgnoreDifferencePermissionRestrictions SwitchParameter optional**

Explicitly ignore authenticated owner-imposed restrictions on the difference PDF.

**-IgnorePermissionRestrictions SwitchParameter optional**

Explicitly ignore authenticated owner-imposed restrictions on the reference PDF.

**-MaximumPixelCountPerImage Int64 optional**

Maximum pixels in one expected, actual or difference image.

**-MaximumTotalPixelCount Int64 optional**

Maximum aggregate raster pixels.

**-MaxPages Int32 optional**

Maximum pages on either side.

**-MaxTotalOutputBytes Int64 optional**

Maximum retained PNG bytes.

**-ReferenceLoadOptions PdfLoadOptions optional**

Bounded policy for the reference input.

**-Scale Double optional**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

## Outputs

PSWriteOffice.Services.Comparison.OfficePdfVisualComparisonOptions: Native comparison settings and distinct bounded input policies for the two PDF roles.

<!-- PowerForge markdown artifact sha256:F10E398A7B051326EE0C2D9EC9D1468ADF198C8D2AFE680EA055931CA45F88D1 -->
