Clarification on the paperSize default for the getExportedReportPdf SAS® Visual Analytics REST API


In the SAS Visual Analytics getExportedReportPdf REST API endpoint, the default value for paperSize is derived from the report’s saved (persisted) export/print settings, not from the API call itself. In other words, if you omit paperSize in the request, SAS Visual Analytics uses the paper size stored with the saved report.

For additional information about getExportedReportPdf, see Export a PDF of a report.

Ensure the Saved Report Settings Are Used as the Default

For the report’s saved paper size (and related export settings) to be picked up automatically when calling getExportedReportPdf, the following must occur:

  1. Run at least one export from the report user interface (UI).

    While viewing the report in SAS Visual Analytics, perform an export (for example, export to PDF). This step initializes the export settings for that report.

  2. Save the report after the export.

    Saving persists the export configuration (including paper size) with the report. Subsequent calls to getExportedReportPdf will then use these saved values when paperSize is not specified in the API request.

Summary

If paperSize is not specified in the API request, the service uses the report’s persisted export settings—but those settings persist only after you perform an export in the UI and save the report.