Interface SaveAsPdfCallback

All Superinterfaces:
AsyncCallback<SaveAsPdfCallback.Params,SaveAsPdfCallback.Action>, BrowserAsyncCallback<SaveAsPdfCallback.Params,SaveAsPdfCallback.Action>, BrowserCallback, Callback
All Known Implementing Classes:
DefaultSaveAsPdfCallback, DefaultSaveAsPdfCallback, DefaultSaveAsPdfCallback

public interface SaveAsPdfCallback extends BrowserAsyncCallback<SaveAsPdfCallback.Params,SaveAsPdfCallback.Action>
This callback is invoked when the browser requests to display a file chooser dialog to save content as PDF. You can use this callback to show the save dialog, or provide the full file path without displaying any dialogs.

Use the SaveAsPdfCallback.Action.save(Path) method to provide the selected file to the engine.

Use the SaveAsPdfCallback.Action.cancel() method to cancel the dialog.

If the callback throws an exception, the SaveAsPdfCallback.Action.cancel() method will be invoked.