Default File Name

3 posts, 0 answers
  1. Peter
    Peter avatar
    27 posts
    Member since:
    Jul 2019

    Posted 31 Jul 2019 Link to this post

    When downloading the pdf from the viewer, the file name is showing as Document.pdf.   Is there anyway to customize that?

    Thanks

    Peter

     

                    @(Html.Kendo().PDFViewer()
                                .Name("pdfviewer")
                                .PdfjsProcessing(config => config.File(file => file.Data(Model.PdfInformation.PDFBase64)))
                                .Height(1200)
                    )

  2. Eyup
    Admin
    Eyup avatar
    4073 posts

    Posted 01 Aug 2019 Link to this post

    Hello Peter,

    Yes, this is provided built-in. You can use the following property to achieve that:
    https://docs.telerik.com/kendo-ui/api/javascript/ui/pdfviewer/configuration/messages.defaultfilename

    I hope this will prove helpful.

    Regards,
    Eyup
    Progress Telerik

  3. Peter
    Peter avatar
    27 posts
    Member since:
    Jul 2019

    Posted 01 Aug 2019 in reply to Eyup Link to this post

    Thanks, that works great.
Back to Top