Forum Discussion

hamsolo's avatar
hamsolo
Cloud Apps
01-20-2025
Solved

API exporting dashboard as PDF paper Format

Hi,

Recently upgraded to Sisense Linux which required updating some syntax of API calls. Managed to get the exporting call working, however, having an issue with the "paperFormat" parameter. Pre-upgrade I was able to use "paperFormat": "letter" to export a dashboard in US Letter format. Now it's returning an error code that it doesn't recognize this value. I've tried "Letter" and "US Letter" returning a similar issue.

Seems to work fine when "paperFormat": "A4". Or exporting "Letter" via the UI.

Is there a list of valid values that is parameter can accept? Or what is the correct value of "letter" that the API accepts.

Thanks,

  • Hey hamsolo ,

    The Paper format supports the following enum options: [A0, A1, A2, A3, A4, A5, LEGAL, LETTER, TABLOID].
    Using "paperFormat": "Letter" in the API results in the error: "No enum match for: Letter", as the value is case-sensitive and must be in uppercase. To resolve this issue, use "paperFormat": "LETTER" in the endpoint body.

    Best regards

4 Replies

  • AssafHanina's avatar
    AssafHanina
    Sisense Employee

    Hey hamsolo ,

    The Paper format supports the following enum options: [A0, A1, A2, A3, A4, A5, LEGAL, LETTER, TABLOID].
    Using "paperFormat": "Letter" in the API results in the error: "No enum match for: Letter", as the value is case-sensitive and must be in uppercase. To resolve this issue, use "paperFormat": "LETTER" in the endpoint body.

    Best regards

  • Hello hamsolo,

    I’m following up to see if the solution offered by AssafHanina worked for you.

    If so, please click the 'Accept as Solution' button on their post. That way other users with the same questions can find the answer. If not, please let us know so that we can continue to help.

    Thank you.

    • hamsolo's avatar
      hamsolo
      Cloud Apps

      Thanks DRay, that was the answer I needed