Saving from the PDF Viewer Component

At the moment we generate pdf reports using the Report Viewer component. Users can then view these reports via the PDF viewer component. Is there any similar function in the PDF viewer component similar to the ‘getBytesPDF’ function in the Report Viewer component, such that a user can save a file locally to their hard drive?

Or is there any other easier way to save these reports locally if they are available via the Servers URL address?


The PDF viewer does not have that function. However, you can use the bytes = system.file.readFileAsBytes(filename)to get the bytes from a file.