惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
P
Proofpoint News Feed
量子位
K
Kaspersky official blog
S
SegmentFault 最新的问题
博客园 - 叶小钗
博客园 - 司徒正美
酷 壳 – CoolShell
酷 壳 – CoolShell
Hugging Face - Blog
Hugging Face - Blog
博客园 - Franky
F
Fortinet All Blogs
Scott Helme
Scott Helme
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cisco Blogs
T
Tenable Blog
U
Unit 42
S
Schneier on Security
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
C
Cybersecurity and Infrastructure Security Agency CISA
V
Visual Studio Blog
The Hacker News
The Hacker News
Jina AI
Jina AI
Stack Overflow Blog
Stack Overflow Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
I
Intezer
Cyberwarzone
Cyberwarzone
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
L
LINUX DO - 热门话题
Spread Privacy
Spread Privacy
T
The Exploit Database - CXSecurity.com
V
V2EX
Help Net Security
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
www.infosecurity-magazine.com
www.infosecurity-magazine.com
PCI Perspectives
PCI Perspectives
腾讯CDC
Webroot Blog
Webroot Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News | PayPal Newsroom
Recorded Future
Recorded Future
D
DataBreaches.Net
阮一峰的网络日志
阮一峰的网络日志
C
Check Point Blog

Inside Nutrient

A guide to the invisible work behind documents Introducing Nutrient Documents for Salesforce: Native document generation and signing Document AI vs. traditional OCR: Choosing between OCR, AI, and hybrid pipelines PDF SDK compliance and security evaluation checklist for enterprise teams (2026) Invariant Corp replaces paper processes with Nutrient Workflow and scales without limits What is process mapping? A complete guide Nutrient vs. Conga Composer for Salesforce document generation (2026) Document routing: How to automate document distribution The CTO’s AI playbook: Why accountability architecture beats orchestration Compliance workflow automation: Why built-in compliance is table stakes Workflow diagrams: Examples, symbols, and how to build one that actually runs Digital forms: Replace paper forms with automated workflows Approval workflow software: How to automate approvals Why document-centric automation is different The CEO’s AI playbook: Why decision architecture beats model selection Nutrient SDK product updates for Q1 2026 PDF redaction verification: How to prove sensitive data is permanently removed What is a VPAT? The complete guide to accessibility conformance reports What is PDF/UA? The accessible PDF standard explained Salesforce eSignatures: Generate, sign, and track documents in one flow Online document viewer: Options, tradeoffs, and how to embed one Document viewer for web apps: React, Vue, Angular (2026) Best document viewers in 2026: A buyer’s guide How to edit a PDF in Python: Add text, images, and annotations Nutrient advances Workflow platform with agentic AI for enterprise-grade speed and consistency in document-heavy operations How to create a Salesforce quote template from opportunity data The business case for accessibility: Five ways it drives enterprise value Python PDF library comparison (2026): 7 libraries for developers Why your AI agent hallucinates PDF table data PDF.js limitations: When to upgrade to a commercial PDF SDK How Subject scaled 5× with Nutrient’s PDF SDK without rebuilding its document layer I replaced our sales training with an AI coach that runs in Slack — here’s what broke Redirecting to: https://securitybuzz.com/cybersecurity-news/why-enterprise-permissions-are-ais-most-dangerous-inheritance/ Nutrient .NET SDK vs. iText Core: Complete comparison for .NET developers DocuVieware: Support’s most frequently asked setup questions Introducing Nutrient Workflow How to convert PDF to Word in C# (.NET) When email and spreadsheets stop working: Work order approval workflows for field teams on the move Compliance with confidence: Why document-centric automation is the foundation of your mission Nutrient expands AI Assistant, automating multistep document workflows inside any application What is document generation? A developer’s guide to PDF generation Document Converter data flow and how real-time watermarks skip the queue PDF/UA compliance guide: Requirements, standards, and best practices Computers still can’t understand you How Athena Intelligence built AI agents for regulated enterprises with Nutrient’s document infrastructure How to convert HTML to PDF (2026): 4 methods from browser print to SDK How to build a document extraction pipeline with Nutrient Vision API OCR vs. intelligent document processing: Choosing the right document extraction engine Beyond OCR: How document intelligence eliminates manual processing in regulated industries Nutrient vs. IronPDF: Complete comparison for .NET developers Nutrient vs. Aspose.PDF: Complete comparison for .NET developers Redirecting to: https://fortune.com/2026/02/19/openclaw-who-is-peter-steinberger-openai-sam-altman-anthropic-moltbook/ Lufthansa Systems uses Nutrient to deliver reliable, scalable PDF rendering for pilots worldwide Nutrient vs. Syncfusion: Complete comparison for .NET developers React’s useTransition: The hook you’re probably using wrong First City Monument Bank streamlines banking processes with Nutrient Workflow Redirecting to: https://www.sdcexec.com/warehousing/automation/article/22957364/nutrient-workflow-automation-the-missing-link-in-supply-chain-efficiency The complete guide to digital signatures: PAdES, CAdES, and XAdES explained Nutrient Python SDK: Production-grade document processing for Python Introducing agentic document editing for web applications with AI Assistant Nutrient vs. QuestPDF: Complete comparison for .NET developers How we fixed the GdPicture license expiration (and what to do if you’re affected) Red team security testing with agentic AI The future of healthcare document automation Best healthcare workflow software compared Nutrient SDK product updates for Q4 2025 How Harvey scaled legal document workflows 50 percent MoM without rebuilding infrastructure HIPAA-compliant document management in hospitals How we optimized rendering performance while handling thousands of annotations in React — Part 2 Automated PII removal with Nutrient API Redirecting to: https://www.devopsdigest.com/2026-low-code-no-code-predictions Redirecting to: https://www.kmworld.com/Articles/Editorial/ViewPoints/Leaders-predict-AI-to-continue-permeating-all-aspects-of-KM-in-2026-172594.aspx What are deep agents and how do they solve complex problems? Whipping up document magic: Your easy-bake recipe for Vue and Nutrient Web SDK 🧁 What I’ve learned about product iteration planning while building SDKs Passwordless document signing: Three-layer security guide New zip folder functionality streamlines file management in Document Automation Server The keyboard shortcuts playbook: Taking control of keyboard events in Nutrient Web SDK From experienced engineer to AI beginner: My unexpected journey AI-assisted manual testing: Handling Safari’s PDF rendering and UI quirks How to keep a 20-year-old SDK up to date How we optimized rendering performance while handling thousands of annotations in React — Part 1 Nutrient announces new executive hires to accelerate next phase of growth High performance UI using web workers Automate document conversion at scale with Python and Nutrient DCS From curiosity to PLG (and AI): My journey to understanding product-led growth Prost to progress: One year as Nutrient Pigeon usage at Nutrient: Bridging native SDKs to Flutter Modernizing CI build servers: How to migrate from Chef to Ansible Unix man pages: AI-friendly documentation since 1971 Consistent hashing for even load distribution Best AI redaction APIs: Complete comparison guide for 2025 Why AI document redaction matters for modern security From coding to coordinating: How AI transformed my workflow What is intelligent document processing (IDP)? A complete guide Enterprise PDF SDKs: Best PSPDFKit (now Nutrient) alternatives Nutrient SDK product updates for Q3 2025 GdPicture support best practices Redacting sensitive data with Nutrient AI redaction API How AI is transforming the customer experience at Nutrient: From instant answers to intelligent support
How to build a .NET WinUI3 PDF viewer with Nutrient Web SDK
Shantanu Methikar · 2024-11-04 · via Inside Nutrient

Table of contents

    How to build a .NET WinUI3 PDF viewer with Nutrient Web SDK

    In this post, you’ll learn how to build a .NET WinUI3 PDF viewer with Nutrient Web SDK.

    WinUI 3(opens in a new tab) is the native UI platform component that ships with the Windows App SDK(opens in a new tab), which is completely decoupled from Windows SDKs. The Windows App SDK provides a unified set of APIs and tools that can be used to create production desktop apps that target Windows 10 and later and can be published to the Microsoft Store.

    You can use similar steps to build a PDF viewer using Nutrient on other .NET platforms like WPF(opens in a new tab), WinForms(opens in a new tab), and anything else that supports WebView2(opens in a new tab).

    Prerequisites

    windows application development component

    Follow the steps outlined below to build a WinUI3 PDF viewer with Nutrient Web SDK.

    Step 1 - Creating a new project

    1. Open Visual Studio.
    2. Choose Create New Project.
    3. Choose Blank App, Packaged (WinUI 3 in Desktop) from the list. project type
    4. Click Next.
    5. Under Project name, enter PSPDFKitWinUI3Example. Then, press Create.
    6. Once the new solution is created, the project tree will look like what’s shown in the following image. initial project structure

    Step 2 - Adding Nutrient

    1. Download the latest Nutrient Web SDK(opens in a new tab).
    2. Extract the ZIP file and copy the contents of package/dist to the Assets folder.

    Step 3 - Displaying a PDF in WinUI3

    1. Add the PDF document you want to display, e.g. document.pdf, in the Assets folder.

    2. Add the index.html file to the Assets folder, and add the following code to the index.html file:

      <!DOCTYPE html>

      <html>

      <head>

      <meta charset="UTF-8" />

      <meta

      name="viewport"

      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"

      />

      <title>Nutrient Example App</title>

      <style>

      html,

      body {

      margin: 0;

      padding: 0;

      background: #f6f7fa;

      }

      header {

      display: none;

      }

      #root {

      width: 100vw;

      height: 100vh;

      }

      </style>

      </head>

      <body>

      <header></header>

      <div id="root"></div>

      <script src="./pspdfkit.js"></script>

      <script type="module">

      let instance = null;

      async function load(document) {

      if (instance) {

      PSPDFKit.unload(instance);

      hasUnsavedAnnotations = false;

      instance = null;

      }

      const configuration = {

      document,

      container: '#root',

      // Add when using a license key.

      // licenseKey: "LICENSE KEY GOES HERE",

      };

      instance = await PSPDFKit.load(configuration);

      }

      window.onload = () => load('./document.pdf');

      </script>

      </body>

      </html>

    3. Double-click the project name to access the project file (PSPDFKitWinUI3Example.csproj) and replace the following:

      <ItemGroup>

      <Content Include="Assets\SplashScreen.scale-200.png" />

      <Content Include="Assets\LockScreenLogo.scale-200.png" />

      <Content Include="Assets\Square150x150Logo.scale-200.png" />

      <Content Include="Assets\Square44x44Logo.scale-200.png" />

      <Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />

      <Content Include="Assets\StoreLogo.png" />

      <Content Include="Assets\Wide310x150Logo.scale-200.png" />

      </ItemGroup>

      With this:

      <ItemGroup>

      <Content Include="Assets\**\*" />

      </ItemGroup>

    4. Replace the contents of the MainPage Window with:

      <WebView2 x:Name="WebView" Loaded="WebView_Loaded" />

    5. Add the Loaded event handler in the MainPage.xaml.cs file to open index.html and display the PDF:

      private async void WebView_Loaded(object sender, RoutedEventArgs e)

      {

      await WebView.EnsureCoreWebView2Async();

      // Set the virtual host for the assets folder.

      WebView.CoreWebView2.SetVirtualHostNameToFolderMapping(

      "pspdfkit-example",

      "Assets",

      Microsoft.Web.WebView2.Core.CoreWebView2HostResourceAccessKind.Deny);

      WebView.CoreWebView2.Navigate("https://pspdfkit-example/index.html");

      }

    Step 4 - Running the application

    1. Press F5 to run the application.
    2. The application will open with the PDF document displayed in the WebView2 control.

    PDF displayed in WebView2 control

    Step 5 - Sample code

    The code for the example in this post can be found in our PSPDFKit-labs GitHub repository(opens in a new tab).

    Conclusion

    In this post, you learned how to build a WinUI3 PDF viewer with Nutrient Web SDK. You can use similar steps to build a PDF viewer using Nutrient on other .NET platforms like WPF(opens in a new tab) and WinForms(opens in a new tab), or anything that supports WebView2(opens in a new tab).

    Explore related topics

    Try for free Ready to get started?

    Related SDK articles

    Explore more