From 724298e4fa2c23b9005c30fdc701f591c44af13a Mon Sep 17 00:00:00 2001 From: Hristian Stefanov Date: Mon, 28 Jul 2025 17:00:34 +0300 Subject: [PATCH] docs(PdfViewer): change overview example to live --- components/pdfviewer/form-filling.md | 2 +- components/pdfviewer/overview.md | 26 +------------------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/components/pdfviewer/form-filling.md b/components/pdfviewer/form-filling.md index 4980b3952..5a7c083d9 100644 --- a/components/pdfviewer/form-filling.md +++ b/components/pdfviewer/form-filling.md @@ -25,7 +25,7 @@ The PDFViewer supports the following form field types: >caption Edit form fields and download the updated PDF file - + ## See Also diff --git a/components/pdfviewer/overview.md b/components/pdfviewer/overview.md index 86e2dc562..ff241d91f 100644 --- a/components/pdfviewer/overview.md +++ b/components/pdfviewer/overview.md @@ -25,31 +25,7 @@ To use a Telerik [Blazor PDF Viewer](https://demos.telerik.com/blazor-ui/pdfview >caption Basic Blazor PDF Viewer -````RAZOR - - - -@code { - private byte[] PdfSource { get; set; } - - private async Task OnPdfDownload(PdfViewerDownloadEventArgs args) - { - args.FileName = "PDF-Viewer-Download"; - } - - protected override void OnInitialized() - { - PdfSource = Convert.FromBase64String(PdfBase64); - - base.OnInitialized(); - } - - private const string PdfBase64 = "JVBERi0xLjEKMSAwIG9iajw8L1R5cGUvQ2F0YWxvZy9QYWdlcyAyIDAgUj4+ZW5kb2JqCjIgMCBvYmo8PC9UeXBlL1BhZ2VzL0tpZHNbMyAwIFJdL0NvdW50IDEvTWVkaWFCb3ggWy00MCAtNjQgMjYwIDgwXSA+PmVuZG9iagozIDAgb2JqPDwvVHlwZS9QYWdlL1BhcmVudCAyIDAgUi9SZXNvdXJjZXM8PC9Gb250PDwvRjE8PC9UeXBlL0ZvbnQvU3VidHlwZS9UeXBlMS9CYXNlRm9udC9BcmlhbD4+ID4+ID4+L0NvbnRlbnRzIDQgMCBSPj5lbmRvYmoKNCAwIG9iajw8L0xlbmd0aCA1OT4+CnN0cmVhbQpCVAovRjEgMTggVGYKMCAwIFRkCihUZWxlcmlrIFBkZlZpZXdlciBmb3IgQmxhem9yKSBUagpFVAplbmRzdHJlYW0KZW5kb2JqCnhyZWYKMCA1CjAwMDAwMDAwMDAgNjU1MzUgZgowMDAwMDAwMDIxIDAwMDAwIG4KMDAwMDAwMDA4NiAwMDAwMCBuCjAwMDAwMDAxOTUgMDAwMDAgbgowMDAwMDAwNDkwIDAwMDAwIG4KdHJhaWxlciA8PCAgL1Jvb3QgMSAwIFIgL1NpemUgNSA+PgpzdGFydHhyZWYKNjA5CiUlRU9G"; -} -```` - + ## Toolbar