API Reference
Cmdlet
New-OfficeTextPdfOptions
Creates literal text decoding and PDF layout settings for Export-OfficeDocumentPdf.
Remarks
Creates literal text decoding and PDF layout settings for Export-OfficeDocumentPdf.
Examples
Read UTF-16 text with four-column tabs.
PS>
$options = New-OfficeTextPdfOptions -EncodingName utf-16 -TabSize 4
Export-OfficeDocumentPdf -InputPath .\Report.txt -Path .\Report.pdf -TextOptions $options
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.
Syntax
New-OfficeTextPdfOptions [-EncodingName <String>] [-MaximumCharacters <Int32>] [-MaximumPages <Int32>] [-PdfOptions <PdfOptions>] [-TabSize <Int32>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- EncodingName String
- Explicit encoding; otherwise use a Unicode BOM or strict UTF-8.
- MaximumCharacters Int32
- Maximum decoded and expanded characters.
- MaximumPages Int32
- Maximum generated pages.
- PdfOptions PdfOptions
- PDF fonts and page geometry; default is ten-point Courier.
- TabSize Int32
- Source columns per tab stop.
Outputs
OfficeIMO.Pdf.PdfPlainTextOptions