Printing a PDF in MAUI
Nutrient’s rendering engine can be used for high-fidelity PDF printing. We offer a beautiful user interface (UI) for printing, as well as access to JavaScript APIs for programmatic printing.
These APIs will be further enhanced and translated into native APIs in future updates.
Printing currently only works on Windows. We’re working on implementing the functionality on other platforms. If you need help or have questions, reach out to our Support team.
Printing using the UI
By default, the print button is added to the main toolbar.
After pressing the toolbar button, the SDK will prepare an open document for printing. This is also indicated by a popup.
Once the document is ready for printing, the print dialog will appear on the screen. In this dialog, the user can configure the print settings and press the Print button to start printing.
Printing programmatically
To print a document programmatically, use the print()
method of the currentDocument
object, which is available via JavaScript APIs. If you’d like to bridge these APIs with your MAUI app, refer to our guide that explains how to bridge web APIs.