PDF Viewer Download Not Using name

I am passing a object to a PDF viewer as JS for PDF source; the JSON provided includes a correct name in the "name" field, however when I click on the download button on the viewer toolbar, it just names the file "file".

I can't see anywhere on the PDF Viewer control to set the file name programmatically. From reading other posts, I tried adding "filename" to the JSON I pass into the viewer, but that was ignored as well.

1 Like

Hi there @klautier,

In your PDF viewer, go to the Add-ons section and add "Title". You can reference your json where your name is, and this will update your file's title when downloading, see below screenshot:

Best,
Miguel

1 Like

Worked like a charm

1 Like