{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "pdf-viewer-default",
  "framework": "maui",
  "type": "registry:component",
  "component": "pdf-viewer",
  "variant": "default",
  "dependencies": [
    "Syncfusion.Maui.PdfViewer"
  ],
  "description": "Pdf viewer renders a remote PDF by URL with selection enabled, toolbars, and a fill layout.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 2 (v34.1.29)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/maui/llms.txt",
    "skillPack": "syncfusion/maui-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/maui/pdf-viewer-default.md"
  },
  "files": [
    {
      "target": "src/components/pdf-viewer-default/PdfViewer.xaml",
      "content": "﻿<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<ContentPage xmlns=\"http://schemas.microsoft.com/dotnet/2021/maui\"\n             xmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\"\n             xmlns:syncfusion=\"clr-namespace:Syncfusion.Maui.PdfViewer;assembly=Syncfusion.Maui.PdfViewer\"\n             x:Class=\"MAUI.MainPage\">\n\n    <Grid>\n        <syncfusion:SfPdfViewer x:Name=\"PdfViewer\"\n                            EnableTextSelection=\"True\"\n                            ShowToolbars=\"True\"\n                            HorizontalOptions=\"Fill\"\n                            VerticalOptions=\"Fill\"/>\n    </Grid>\n\n</ContentPage>\n"
    },
    {
      "target": "src/components/pdf-viewer-default/PdfViewer.xaml.cs",
      "content": "﻿namespace MAUI\n{\n    public partial class MainPage : ContentPage\n    {\n        private const string DocumentUrl =\n        \"https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf\";\n        \n        public MainPage()\n        {\n            InitializeComponent();\n            _ = LoadDocumentAsync();\n        }\n\n         private async Task LoadDocumentAsync()\n        {\n            try\n            {\n                using var http = new HttpClient();\n                var bytes = await http.GetByteArrayAsync(DocumentUrl);\n                var stream = new MemoryStream(bytes);\n                PdfViewer.LoadDocument(stream);\n            }\n            catch (Exception ex)\n            {\n                await DisplayAlertAsync(\"Error\", $\"Failed to load document: {ex.Message}\", \"OK\");\n            }   \n    }\n    }\n}\n"
    }
  ]
}