When the user exports from the viewer, the export settings can be adjusted on the server through the onBeginExportReport event.

Change file name and format settings.
def beginExportReport(args: StiExportEventArgs):
    args.fileName = 'MyExportedFileName.' + args.fileExtension
    if args.format == StiExportFormat.PDF:
        settings: StiPdfExportSettings = args.settings
        settings.creatorString = 'My Company Name (c) YEAR'
        settings.embeddedFonts = False

viewer.onBeginExportReport += beginExportReport

How it works. The event runs on the server, so export options are applied centrally regardless of what the user clicks in the viewer.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.