Cmdlet
Get-OfficePdfDiagnostic
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:
PathGet-OfficePdfDiagnostic
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[-Type <Structure| Preflight| Incremental| Optimization>]
[<CommonParameters>]#Parameter set:
LiteralPathGet-OfficePdfDiagnostic
[-AdvancedLayout]
[-Encoding]
[-FontPath <String>]
[-Source <String>]
-Text <String>
[<CommonParameters>]#Parameter set:
TextExamples
Example 1
Get-OfficePdfDiagnostic -Path @('C:\Path')Example 2
Get-OfficePdfDiagnostic -LiteralPath @('C:\Path')Example 3
Get-OfficePdfDiagnostic -Text 'Value'Parameters
- -IgnorePermissionRestrictions SwitchParameter
- After authentication, explicitly ignore owner-imposed restrictions.
- -LoadOptions PdfLoadOptions
- Native source loading policy.
- -Password SecureString
- Source password.
- -Path String[]
- Input PDF files with wildcard expansion.
- -Type OfficePdfDiagnosticType
- Native report to return for each PDF.
- Possible values:
Structure,Preflight,Incremental,Optimization - -LiteralPath String[]
- Literal input files.
- -AdvancedLayout SwitchParameter
- Return script, direction, mark positioning and line-breaking findings.
- -Encoding SwitchParameter
- Return encoding and glyph coverage findings.
- -FontPath String
- Literal font file for glyph coverage and shaping diagnostics.
- -Source String
- Source label included in text findings.
- -Text String
- 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.