|
|
@@ -107,12 +107,12 @@ To print content as PDF, you need to provide the downloadable content as a |
|
|
|
static or a dynamic resource, such as a [classname]#StreamResource#. |
|
|
|
|
|
|
|
You can let the user open the resource using a [classname]#Link# component, or |
|
|
|
some other component with a [classname]#PopupWindowOpener# extension. When such |
|
|
|
some other component with a [classname]#BrowserWindowOpener# extension. When such |
|
|
|
a link or opener is clicked, the browser opens the PDF in the browser, in an |
|
|
|
external viewer (such as Adobe Reader), or lets the user save the document. |
|
|
|
|
|
|
|
It is crucial to notice that clicking a [classname]#Link# or a |
|
|
|
[classname]#PopupWindowOpener# is a client-side operation. If you get the |
|
|
|
[classname]#BrowserWindowOpener# is a client-side operation. If you get the |
|
|
|
content of the dynamic PDF from the same UI state, you can not have the link or |
|
|
|
opener enabled, as then clicking it would not get the current UI content. |
|
|
|
Instead, you have to create the resource object before the link or opener are |