Use Export to PDF Technical Objects
As an application designer or story developer, you can use Export to PDF technical objects and related APIs to let viewers export an analytic application or story to a PDF file.
Context
Only visible contents can be exported to PDF. Therefore, the following invisible elements won't be exported:
-
Invisible part in scrollable charts, tables or containers including tab strips, panels, flow layout panels and page books
-
Collapsed table cells
-
Lazy rendered widgets
-
Lazy loaded data source
-
Comments on invisible data cells
Besides these invisible elements, web page widgets aren't exported.
For R visualizations, static plots are exported. However, R visualizations written in RHTML (iFrame) aren't fully supported, for example, the ones with pictures from external sources.
Widgets might not keep all CSS styling settings when exported to PDF, for example, text decoration and opacity.
Custom widgets support PDF export now. However, to make sure that all the defined elements can be exported to PDF, custom widget developers need to be aware of the export restrictions and test first and then set supportsExport to true in the custom widget JSON file.
If your image's hyperlink is an external URL, you can add a parameter to it to ensure that certified users can export this image to PDF.
Parameter | Options |
---|---|
imageCrossOrigin Controls users’ access to the hyperlink of the image to be exported to PDF. By default users are anonymous to the URL if you don’t add this parameter. |
|
Procedure
Results
First, (for analytic applications) in the Styling panel of Canvas or (for optimized stories) from Global Settings in Outline, under Schedule Publication Settings, select Manually generate PDF export via API.
If (Application.isRunBySchedulePublication()) { Scheduling.publish(); }