PrintJs

UI Extension

print-js is a tiny JavaScript library for printing from the web, supporting PDFs, HTML, images, and JSON.

Status
Planned
Supported Version
TBD
Licensing
Open Source
Priority
Rank #158
KEY FEATURES
Print PDFs
Print HTML
Print images
Print JSON
Custom headers
Modal support
Framework agnostic
Usage Example

Here's how you'll use PrintJs with Oorian once the extension is available:

Java
// Create and configure PrintJs component
PrintJs component = new PrintJs();
component.setWidth("100%");
component.setHeight("400px");

// Configure component options
component.setEnabled(true);

// Register for events using Oorian's event model
component.registerForEvent(this, PrintJsEvent.class);

// Add to your page
container.addElement(component);

Note: This is a preview of the expected API. The actual implementation may vary slightly when released.