This is a native plugin that uses low level Windows API to print text and images with a lot of customization options.
Useful to print any kind of reports directly from Unity!
The plugin prints silently (without the print dialog) and everything is defined via code.
Tested with Unity 2019.4 and later versions.
Read the Manual for more info and samples.
Note: this plugin works on Windows only.
Main features
- Get the list of installed printers on your system
- Get default printer
- Set page orientation (portrait, landscape)
- Set standard page formats (A4, A3, A5, Letter, etc)
- Set custom page formats
- Set DPI, color/monochrome and number of copies
- Show (optional) printer configuration dialog
- Print text with desired font, size, color and style
- Print single text lines or wrapped text inside a rect
- Print textures (Unity Texture2D)
- Print images from any location on disk
- Create multi-page documents
- Print double-sided pages (duplex)
- Works with Windows 32/64 bit