The Write-Pdf function creates an unformatted PDF file out of plain text input.
Pros:
- Super fast compared with implementations that automate a virtual PDF printer.
- Avoids any overhead of graphics because this is for plain text only.
Cons:
- Not Unicode-compliant. Only characters contained in the Windows-1252 charset are supported.
- Only the default monospaced font is supported. The font size is set for the whole document. No further formatting possible.
- No compression in place. The implementation performs only a PDF 1.1 compliant decoration. (This is a somewhat comparable with RTF or LaTeX markup.)