Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

New-OfficePdfInteractionOptions

Module
PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Pdf.PdfPageInteractionOptions

Creates native region limits and invisible-text policy for Get-OfficePdfInteractionMap.

Syntax

New-OfficePdfInteractionOptions
[-IncludeInvisibleText]
[-MaxImageRegions <Int32>]
[-MaxTextRegions <Int32>]
[<CommonParameters>]
#
Parameter set: Default

Examples

Include an existing OCR text layer in the interaction map.

$options = New-OfficePdfInteractionOptions -IncludeInvisibleText -MaxTextRegions 50000
Get-OfficePdfInteractionMap -Path ./Scanned.pdf -Options $options

Parameters

-IncludeInvisibleText SwitchParameter optional
Include invisible extracted text such as an OCR layer.
-MaxImageRegions Int32 optional
Maximum image-placement regions emitted for a page.
-MaxTextRegions Int32 optional
Maximum text-element regions emitted for a page.

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.