Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficePdfDiagnostic

Module
PSWriteOffice
Inputs
System.String System.String[]

Returns native PDF structure, preflight, incremental, optimization or generated-text diagnostics.

Syntax

Get-OfficePdfDiagnostic
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[-Path] <String[]>
[-Type <Structure|Preflight|Incremental|Optimization>]
[<CommonParameters>]
#
Parameter set: Path
Get-OfficePdfDiagnostic
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[-Type <Structure|Preflight|Incremental|Optimization>]
[<CommonParameters>]
#
Parameter set: LiteralPath
Get-OfficePdfDiagnostic
[-AdvancedLayout]
[-Encoding]
[-FontPath <String>]
[-Source <String>]
-Text <String>
[<CommonParameters>]
#
Parameter set: Text

Examples

Example 1

Get-OfficePdfDiagnostic -Path @('C:\Path')

Example 2

Get-OfficePdfDiagnostic -LiteralPath @('C:\Path')

Example 3

Get-OfficePdfDiagnostic -Text 'Value'

Parameters

-IgnorePermissionRestrictions SwitchParameter optionalsets: Path, LiteralPath
After authentication, explicitly ignore owner-imposed restrictions.
-LoadOptions PdfLoadOptions optionalsets: Path, LiteralPath
Native source loading policy.
-Password SecureString optionalsets: Path, LiteralPath
Source password.
-Path String[] requiredposition: 0sets: Path
Input PDF files with wildcard expansion.
-Type OfficePdfDiagnosticType optionalsets: Path, LiteralPath
Native report to return for each PDF.
Possible values: Structure, Preflight, Incremental, Optimization
-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath
Literal input files.
-AdvancedLayout SwitchParameter optionalsets: Text
Return script, direction, mark positioning and line-breaking findings.
-Encoding SwitchParameter optionalsets: Text
Return encoding and glyph coverage findings.
-FontPath String optionalsets: Text
Literal font file for glyph coverage and shaping diagnostics.
-Source String optionalsets: Text
Source label included in text findings.
-Text String requiredpipeline: True (ByValue)sets: Text
Generated text to diagnose before rendering.

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.