<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Syncfusion, Inc.</title>
    <description>The latest articles on DEV Community by Syncfusion, Inc. (syncfusion).</description>
    <link>https://dev.to/syncfusion</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F771%2F21df7034-5069-4e05-9f54-2c881bb9ebb7.png</url>
      <title>DEV Community: Syncfusion, Inc.</title>
      <link>https://dev.to/syncfusion</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/syncfusion"/>
    <language>en</language>
    <item>
      <title>Introducing the Syncfusion PPTX Editor SDK: View PowerPoint Presentations in Web Apps</title>
      <dc:creator>Jollen Moyani</dc:creator>
      <pubDate>Wed, 18 Nov 2026 15:00:00 +0000</pubDate>
      <link>https://dev.to/syncfusion/introducing-the-syncfusion-pptx-editor-sdk-view-powerpoint-presentations-in-web-apps-19bp</link>
      <guid>https://dev.to/syncfusion/introducing-the-syncfusion-pptx-editor-sdk-view-powerpoint-presentations-in-web-apps-19bp</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;em&gt;Meet the new **Syncfusion PPTX Editor SDK&lt;/em&gt;&lt;em&gt;, built to bring PowerPoint viewing, navigation, presenting, and printing directly into web applications. The initial release focuses on presentation viewing, with features such as slide thumbnails, zoom, slideshow mode, speaker notes, presenter view, and printing. **Presentation editing capabilities are planned as the SDK evolves.&lt;/em&gt;**&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Bring PowerPoint presentations directly into your web apps
&lt;/h2&gt;

&lt;p&gt;PowerPoint presentations are part of many everyday business workflows, from employee training and sales pitches to project reviews, reports, and customer proposals.&lt;/p&gt;

&lt;p&gt;But viewing a presentation from a web application often means asking users to download the file, open another application, review it there, and then return to the original workflow.&lt;/p&gt;

&lt;p&gt;For developers, building an embedded presentation experience from scratch creates a different challenge: rendering slide content, navigation, zooming, presentation modes, notes, and printing all require additional development effort.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://www.syncfusion.com/pptx-editor-sdk/" rel="noopener noreferrer"&gt;Syncfusion® PPTX Editor SDK&lt;/a&gt; provides another option. It brings an interactive PowerPoint viewing experience directly into web applications, allowing users to open, navigate, present, and print supported presentations without leaving the application.&lt;/p&gt;

&lt;p&gt;And importantly, &lt;strong&gt;Microsoft PowerPoint does not need to be installed for the viewing experience&lt;/strong&gt;. The current release focuses on PowerPoint viewing and presenting. It also establishes the foundation for presentation-editing workflows planned for future releases.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why bring PowerPoint viewing into your application?
&lt;/h2&gt;

&lt;p&gt;Embedding presentations inside the application where users already work can simplify several common workflows.&lt;/p&gt;

&lt;p&gt;Consider a learning portal. Instead of requiring learners to download a training deck and open it separately, the application can display the presentation alongside the rest of the course content. Or consider a document management system. Users reviewing proposals or project presentations can open a PPTX file directly from the application, navigate through the slides, inspect content, and review speaker notes without moving between tools.&lt;/p&gt;

&lt;p&gt;The same approach can apply to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Employee training systems.&lt;/li&gt;
&lt;li&gt;Sales enablement portals.&lt;/li&gt;
&lt;li&gt;Customer and partner portals.&lt;/li&gt;
&lt;li&gt;Document management applications.&lt;/li&gt;
&lt;li&gt;Review and approval workflows.&lt;/li&gt;
&lt;li&gt;Business applications.&lt;/li&gt;
&lt;li&gt;Presentation libraries.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is simple: &lt;strong&gt;keep presentation viewing inside the workflow where the presentation is already being used.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Meet the Syncfusion PPTX Editor SDK
&lt;/h2&gt;

&lt;p&gt;The PPTX Editor SDK provides a familiar presentation-viewing interface for web applications.&lt;/p&gt;

&lt;p&gt;Developers can use it to display supported PowerPoint content and give users built-in controls for navigation, zooming, presenting, reviewing notes, and printing.&lt;/p&gt;

&lt;h3&gt;
  
  
  PPTX Editor SDK at a glance
&lt;/h3&gt;

&lt;p&gt;The current release includes capabilities for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Viewing supported PowerPoint presentation content.&lt;/li&gt;
&lt;li&gt;Using a ribbon-based viewer interface.&lt;/li&gt;
&lt;li&gt;Navigating slides with mouse, keyboard, and touch.&lt;/li&gt;
&lt;li&gt;Zooming in and out.&lt;/li&gt;
&lt;li&gt;Browsing slides through thumbnails.&lt;/li&gt;
&lt;li&gt;Handling larger presentations with thumbnail virtualization.&lt;/li&gt;
&lt;li&gt;Presenting slides in full-screen slideshow mode.&lt;/li&gt;
&lt;li&gt;Viewing slide notes.&lt;/li&gt;
&lt;li&gt;Using presenter view with speaker notes.&lt;/li&gt;
&lt;li&gt;Printing presentations.&lt;/li&gt;
&lt;li&gt;Displaying multilingual presentation text.&lt;/li&gt;
&lt;li&gt;Supporting localized and right-to-left application experiences.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s take a closer look at the key viewing capabilities.&lt;/p&gt;

&lt;h2&gt;
  
  
  View common PowerPoint content in the browser
&lt;/h2&gt;

&lt;p&gt;PowerPoint slides are rarely just text. They combine layouts, images, diagrams, tables, charts, formatting, and other visual elements to communicate information.&lt;/p&gt;

&lt;p&gt;The PPTX Editor SDK supports viewing several common presentation elements directly inside your application.&lt;/p&gt;

&lt;h3&gt;
  
  
  Text boxes and placeholders
&lt;/h3&gt;

&lt;p&gt;Display titles, body content, and free-form text stored in presentation text boxes and placeholders.&lt;/p&gt;

&lt;h3&gt;
  
  
  Basic AutoShapes
&lt;/h3&gt;

&lt;p&gt;Render supported basic AutoShapes together with fill and outline formatting. These shapes are commonly used for diagrams, process flows, callouts, and visual layouts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Images
&lt;/h3&gt;

&lt;p&gt;Display images embedded within presentation slides.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tables
&lt;/h3&gt;

&lt;p&gt;Render supported tables while retaining their content and formatting.&lt;/p&gt;

&lt;h3&gt;
  
  
  Charts
&lt;/h3&gt;

&lt;p&gt;Display supported charts used within presentation slides.&lt;/p&gt;

&lt;h3&gt;
  
  
  Paragraph and text formatting
&lt;/h3&gt;

&lt;p&gt;Display basic text and paragraph formatting, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Alignment.&lt;/li&gt;
&lt;li&gt;Indentation.&lt;/li&gt;
&lt;li&gt;Bold.&lt;/li&gt;
&lt;li&gt;Italic.&lt;/li&gt;
&lt;li&gt;Underline.&lt;/li&gt;
&lt;li&gt;Font.&lt;/li&gt;
&lt;li&gt;Font size.&lt;/li&gt;
&lt;li&gt;Text color.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Hyperlinks
&lt;/h3&gt;

&lt;p&gt;Users can interact with supported hyperlinks embedded within presentation content and navigate to their associated targets.&lt;/p&gt;

&lt;h3&gt;
  
  
  Multilingual content
&lt;/h3&gt;

&lt;p&gt;The PPTX Editor can render presentation text written in different languages, helping developers build presentation experiences for global applications.&lt;/p&gt;

&lt;p&gt;Together, these capabilities help retain the structure and visual context of supported presentation content inside the web application.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs4jbtjkw5dzkrgjodimt.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs4jbtjkw5dzkrgjodimt.gif" alt="PPTX Editor SDK Demo" width="720" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Use a familiar ribbon-based viewer
&lt;/h2&gt;

&lt;p&gt;The PPTX Editor SDK provides a basic viewer ribbon with commands organized into familiar tabs such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Home&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Slide Show&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;View&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This gives users a consistent location for common viewing and presentation commands.&lt;/p&gt;

&lt;p&gt;For applications where users already work regularly with PowerPoint presentations, the ribbon-based approach also reduces the need to learn a completely different presentation-viewing interface.&lt;/p&gt;

&lt;h2&gt;
  
  
  Navigate with mouse, keyboard, or touch
&lt;/h2&gt;

&lt;p&gt;Users can move through slides using mouse, keyboard, or touch interactions.&lt;/p&gt;

&lt;p&gt;This is useful when the PPTX Editor is embedded across desktop and touch-enabled application experiences.&lt;/p&gt;

&lt;p&gt;Keyboard support also gives users another option for navigating slides without depending entirely on mouse interaction.&lt;/p&gt;

&lt;h2&gt;
  
  
  Zoom into presentation details
&lt;/h2&gt;

&lt;p&gt;Slides can contain small text, detailed diagrams, charts, or dense tables that are difficult to inspect at their default size.&lt;/p&gt;

&lt;p&gt;Built-in zoom controls let users:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Zoom in to inspect specific slide content.&lt;/li&gt;
&lt;li&gt;Zoom out to see more of the complete slide.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This can be especially useful in technical presentations, reports, dashboards, and training materials.&lt;/p&gt;

&lt;h2&gt;
  
  
  Browse slides with thumbnails
&lt;/h2&gt;

&lt;p&gt;The thumbnail pane provides a visual overview of the presentation.&lt;/p&gt;

&lt;p&gt;Instead of moving through every slide sequentially, users can select a thumbnail to jump directly to the slide they need.&lt;/p&gt;

&lt;p&gt;For presentations containing many slides, thumbnail virtualization helps avoid unnecessarily rendering all thumbnail content at once, supporting a more responsive browsing experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Present slides in full-screen mode
&lt;/h2&gt;

&lt;p&gt;Sometimes users need to do more than review a presentation. They need to deliver it.&lt;/p&gt;

&lt;p&gt;The PPTX Editor SDK includes a slideshow mode for presenting slides in full screen directly from the web application.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2zjejzk1l896y2h8l2o1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2zjejzk1l896y2h8l2o1.webp" alt="PPTX Editor SDK PowerPoint Viewer" width="800" height="477"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This can be useful for scenarios such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Training sessions.&lt;/li&gt;
&lt;li&gt;Sales presentations.&lt;/li&gt;
&lt;li&gt;Product demonstrations.&lt;/li&gt;
&lt;li&gt;Internal project reviews.&lt;/li&gt;
&lt;li&gt;Classroom or learning experiences.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Users can move from reviewing a presentation to presenting it without switching to a separate desktop application.&lt;/p&gt;

&lt;h2&gt;
  
  
  View speaker notes with presenter view
&lt;/h2&gt;

&lt;p&gt;Speaker notes often contain important context that doesn’t appear on the slide itself. Presenters may use them for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Talking points.&lt;/li&gt;
&lt;li&gt;Supporting details.&lt;/li&gt;
&lt;li&gt;Reminders.&lt;/li&gt;
&lt;li&gt;Additional context.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The PPTX Editor SDK supports viewing notes associated with slides and provides presenter-view capabilities for presentation scenarios.&lt;/p&gt;

&lt;p&gt;This allows users to access supporting information while delivering the presentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Print presentations
&lt;/h2&gt;

&lt;p&gt;Users can also print presentations from the viewer using the browser’s printing capabilities and the available print settings.&lt;/p&gt;

&lt;p&gt;This gives applications another way to support presentation workflows without requiring users to download the file simply to produce a printable copy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Supported web platforms
&lt;/h2&gt;

&lt;p&gt;The PPTX Editor SDK is available across commonly used JavaScript and ASP.NET web development stacks.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;PPTX Editor&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;React&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Angular&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Vue&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;JavaScript&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;TypeScript-based applications&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Supported through the applicable JavaScript framework packages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;ASP.NET Core&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;ASP.NET MVC&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This lets teams integrate PowerPoint viewing into their existing web technology stack rather than introducing a separate presentation-viewing application.&lt;/p&gt;

&lt;h2&gt;
  
  
  PPTX Editor SDK vs. JavaScript PowerPoint Library
&lt;/h2&gt;

&lt;p&gt;Syncfusion also provides a &lt;strong&gt;JavaScript PowerPoint Library&lt;/strong&gt; , so developers may wonder when to use each product.&lt;/p&gt;

&lt;p&gt;The two address different requirements.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;PPTX Editor SDK&lt;/th&gt;
&lt;th&gt;JavaScript PowerPoint Library&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Primary purpose&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Interactive presentation experience&lt;/td&gt;
&lt;td&gt;Programmatic PowerPoint processing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;User interface&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Current focus&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;View, navigate, present, and print presentations&lt;/td&gt;
&lt;td&gt;Create, read, modify, and save presentations through code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Typical use&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Embed a PowerPoint viewing experience inside an application&lt;/td&gt;
&lt;td&gt;Generate or manipulate PPTX files programmatically&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;User interaction&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Designed for end users working with presentations&lt;/td&gt;
&lt;td&gt;Designed for developers automating presentation operations&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Use the &lt;a href="https://www.syncfusion.com/pptx-editor-sdk/" rel="noopener noreferrer"&gt;PPTX Editor SDK&lt;/a&gt; when users need an interactive PowerPoint experience inside the application.&lt;/p&gt;

&lt;p&gt;Use the &lt;a href="https://www.syncfusion.com/document-sdk/javascript-powerpoint-library" rel="noopener noreferrer"&gt;JavaScript PowerPoint Library&lt;/a&gt; when the application itself needs to create or modify PPTX files programmatically without requiring an interactive presentation UI.&lt;/p&gt;

&lt;p&gt;The two approaches can serve different parts of a document workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try the PPTX Editor in React
&lt;/h2&gt;

&lt;p&gt;Here’s a short example of getting started with the React PPTX Editor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install the package&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;npm install @syncfusion/ej2-react-pptxeditor --save

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Register your Syncfusion &lt;a href="https://ej2.syncfusion.com/react/documentation/licensing/license-key-registration" rel="noopener noreferrer"&gt;license key&lt;/a&gt; and include the required Syncfusion theme styles for your application.&lt;/p&gt;

&lt;p&gt;Then add the PPTX Editor component.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;PptxEditorComponent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Toolbar&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;ThumbnailView&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Magnification&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Navigation&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Print&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;SlideShow&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Inject&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@syncfusion/ej2-react-pptxeditor'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;App&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;PptxEditorComponent&lt;/span&gt;
      &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"pptx-editor"&lt;/span&gt;
      &lt;span class="n"&gt;documentPath&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://document.syncfusion.com/content/pptxeditor-resources/Sample.pptx"&lt;/span&gt;
    &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Inject&lt;/span&gt;
        &lt;span class="n"&gt;services&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
          &lt;span class="nc"&gt;Toolbar&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nc"&gt;ThumbnailView&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nc"&gt;Magnification&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nc"&gt;Navigation&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nc"&gt;Print&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nc"&gt;SlideShow&lt;/span&gt;
        &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;PptxEditorComponent&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nc"&gt;App&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the application and open it in the browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F73ldiekiuh6ozow02wvn.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F73ldiekiuh6ozow02wvn.webp" alt="PPTX Editor SDK Banner Preview" width="799" height="313"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The presentation loads inside the PPTX Editor with the available viewer controls, thumbnail pane, and slide area.&lt;/p&gt;

&lt;p&gt;For production integration, theme configuration, licensing, and complete setup instructions, refer to the &lt;a href="https://help.syncfusion.com/document-processing/powerpoint/pptx-editor/react/getting-started" rel="noopener noreferrer"&gt;Getting Started with React PPTX Editor&lt;/a&gt; documentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where can you use the PPTX Editor SDK?
&lt;/h2&gt;

&lt;p&gt;Presentation viewing can be useful anywhere PPTX files form part of an application workflow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Training and e-learning portals
&lt;/h3&gt;

&lt;p&gt;Display training decks, lessons, and course presentations directly inside learning platforms.&lt;/p&gt;

&lt;p&gt;Learners can navigate slides, zoom into content, and view supporting presentation information without downloading every file.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sales enablement platforms
&lt;/h3&gt;

&lt;p&gt;Make pitch decks and product presentations available directly through sales, customer, or partner portals.&lt;/p&gt;

&lt;h3&gt;
  
  
  Document management systems
&lt;/h3&gt;

&lt;p&gt;Add an interactive PPTX viewing experience alongside other documents managed within the application.&lt;/p&gt;

&lt;p&gt;Instead of downloading a presentation just to inspect it, users can preview supported presentation content within the existing document workflow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Review and approval workflows
&lt;/h3&gt;

&lt;p&gt;Allow reviewers and stakeholders to inspect presentation slides and associated notes as part of a broader approval process.&lt;/p&gt;

&lt;h3&gt;
  
  
  Business applications
&lt;/h3&gt;

&lt;p&gt;Display proposals, reports, project updates, and other presentation-based content without moving users away from the application.&lt;/p&gt;

&lt;h2&gt;
  
  
  What’s next: Presentation editing
&lt;/h2&gt;

&lt;p&gt;The current PPTX Editor SDK release focuses on &lt;strong&gt;PowerPoint viewing, navigation, presenting, and printing&lt;/strong&gt;. Presentation editing is the next direction for the SDK.&lt;/p&gt;

&lt;p&gt;The underlying architecture provides a foundation for future editing workflows such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Editing presentation content.&lt;/li&gt;
&lt;li&gt;Modifying formatting.&lt;/li&gt;
&lt;li&gt;Manipulating presentation objects.&lt;/li&gt;
&lt;li&gt;Supporting richer presentation-authoring workflows.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These capabilities will expand the PPTX Editor beyond its current viewing experience as the product evolves.&lt;/p&gt;

&lt;p&gt;Because product roadmaps can change, refer to the latest Syncfusion &lt;a href="https://www.syncfusion.com/products/roadmap/pptx-editor-sdk" rel="noopener noreferrer"&gt;PPTX Editor SDK roadmap&lt;/a&gt; for current plans and future capability updates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try the Syncfusion PPTX Editor SDK
&lt;/h2&gt;

&lt;p&gt;If PowerPoint presentations are already part of your application’s workflow, the PPTX Editor SDK lets you bring the viewing experience closer to where your users already work.&lt;/p&gt;

&lt;p&gt;Explore the live demos for your preferred platform:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://document.syncfusion.com/demos/pptx-editor/react/" rel="noopener noreferrer"&gt;React&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://document.syncfusion.com/demos/pptx-editor/angular/" rel="noopener noreferrer"&gt;Angular&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://document.syncfusion.com/demos/pptx-editor/vue/" rel="noopener noreferrer"&gt;Vue&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://document.syncfusion.com/demos/pptx-editor/javascript/" rel="noopener noreferrer"&gt;JavaScript&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://document.syncfusion.com/demos/pptx-editor/javascript-es5/" rel="noopener noreferrer"&gt;JavaScript(ES5)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://document.syncfusion.com/demos/pptx-editor/asp-net-core/pptxeditor/default" rel="noopener noreferrer"&gt;ASP.NET Core&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://document.syncfusion.com/demos/pptx-editor/asp-net-mvc/pptxeditor/default" rel="noopener noreferrer"&gt;ASP.NET MVC&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For API details, configuration options, and complete integration instructions, refer to the Syncfusion &lt;a href="https://help.syncfusion.com/document-processing/powerpoint/pptx-editor/overview" rel="noopener noreferrer"&gt;PPTX Editor SDK&lt;/a&gt; documentation.&lt;/p&gt;

&lt;p&gt;Existing Syncfusion customers can access the latest available release through the &lt;a href="https://www.syncfusion.com/sales/pricing" rel="noopener noreferrer"&gt;License and Downloads&lt;/a&gt; page.&lt;/p&gt;

&lt;p&gt;New users can explore the PPTX Editor SDK with a Syncfusion &lt;a href="https://www.syncfusion.com/downloads/" rel="noopener noreferrer"&gt;free trial&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Q1: What is the Syncfusion PPTX Editor SDK?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Syncfusion PPTX Editor SDK is an interactive component for bringing PowerPoint presentation experiences into web applications.&lt;/p&gt;

&lt;p&gt;The current release focuses on viewing, navigation, presenting, and printing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q2: Can I edit PowerPoint presentations with the PPTX Editor SDK?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not in the current release.&lt;/p&gt;

&lt;p&gt;The initial release focuses on presentation viewing and presentation-related interactions. Editing capabilities are planned as the product evolves.&lt;/p&gt;

&lt;p&gt;Check the latest &lt;a href="https://www.syncfusion.com/products/roadmap/pptx-editor-sdk" rel="noopener noreferrer"&gt;PPTX Editor SDK roadmap&lt;/a&gt; for current plans.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q3: Which presentation elements can the PPTX Editor display?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The current viewer supports several common presentation elements, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Text boxes and placeholders.&lt;/li&gt;
&lt;li&gt;Basic AutoShapes.&lt;/li&gt;
&lt;li&gt;Images.&lt;/li&gt;
&lt;li&gt;Tables.&lt;/li&gt;
&lt;li&gt;Charts.&lt;/li&gt;
&lt;li&gt;Basic paragraph and text formatting.&lt;/li&gt;
&lt;li&gt;Hyperlinks.&lt;/li&gt;
&lt;li&gt;Multilingual text.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Support depends on the presentation content and the capabilities available in the current release.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q4: Can users navigate presentations with a keyboard?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. Slide navigation supports keyboard, mouse, and touch interactions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q5: Does the PPTX Editor support slideshow mode?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. Users can present supported slides in full-screen slideshow mode from the web application.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q6: Can users view speaker notes?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. The PPTX Editor supports viewing slide notes and includes presenter-view capabilities with speaker notes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q7: Can users print presentations?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. The current viewer supports printing presentations using the browser’s printing capabilities and available print settings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q8: Which web platforms are supported?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The PPTX Editor SDK supports web application development with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;React.&lt;/li&gt;
&lt;li&gt;Angular.&lt;/li&gt;
&lt;li&gt;Vue.&lt;/li&gt;
&lt;li&gt;JavaScript.&lt;/li&gt;
&lt;li&gt;ASP.NET Core.&lt;/li&gt;
&lt;li&gt;ASP.NET MVC.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It can also be used in TypeScript-based applications through the applicable JavaScript or framework integration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q9: Do users need Microsoft PowerPoint installed?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No. The PPTX Editor viewing experience works within the web application without requiring Microsoft PowerPoint to be installed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q10: What’s the difference between the PPTX Editor SDK and the JavaScript PowerPoint Library?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The PPTX Editor SDK provides an &lt;strong&gt;interactive user interface&lt;/strong&gt; for working with presentations in web applications.&lt;/p&gt;

&lt;p&gt;The JavaScript PowerPoint Library is a &lt;strong&gt;programmatic API&lt;/strong&gt; for creating, reading, modifying, and saving PowerPoint files through code.&lt;/p&gt;

&lt;p&gt;Choose based on whether your application needs an end-user presentation experience or programmatic PPTX processing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bring PowerPoint viewing into your web application
&lt;/h2&gt;

&lt;p&gt;Displaying a presentation inside a web application shouldn’t require sending users to another application just to inspect the content.&lt;/p&gt;

&lt;p&gt;The new Syncfusion &lt;a href="https://www.syncfusion.com/pptx-editor-sdk/" rel="noopener noreferrer"&gt;PPTX Editor SDK&lt;/a&gt; brings presentation viewing, navigation, zooming, slideshow mode, speaker notes, presenter view, and printing into web applications through a familiar interactive interface.&lt;/p&gt;

&lt;p&gt;For developers building document management systems, learning platforms, business applications, customer portals, and presentation-driven workflows, it provides a ready-made foundation for embedding PowerPoint viewing without building a presentation viewer from scratch.&lt;/p&gt;

&lt;p&gt;And this launch is the starting point. As the PPTX Editor SDK evolves, planned presentation-editing capabilities will extend the experience beyond viewing and into richer presentation workflows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Explore the PPTX Editor SDK &lt;a href="https://document.syncfusion.com/#/pptx-editor-sdk" rel="noopener noreferrer"&gt;demos&lt;/a&gt; and &lt;a href="https://help.syncfusion.com/document-processing/powerpoint/pptx-editor/overview" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; to get started.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Related Blogs&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/syncfusion-powerpoint-library-vs-aspose-slides" rel="noopener noreferrer"&gt;&lt;u&gt;Syncfusion PowerPoint Library vs. Aspose.Slides: Which .NET PowerPoint Library Is Right for You?&lt;/u&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/automate-pptx-generation-csharp" rel="noopener noreferrer"&gt;&lt;u&gt;7 Powerful Ways to Automate PowerPoint Generation in C#&lt;/u&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/document-processing-2026-volume-3-update" rel="noopener noreferrer"&gt;&lt;u&gt;Syncfusion Document SDKs 2026 Volume 3: New JavaScript Libraries and Faster Excel Processing&lt;/u&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/dotnet-pdf-conversion-library" rel="noopener noreferrer"&gt;&lt;u&gt;.NET PDF Conversion Library: Convert Word, Excel, PowerPoint, &amp;amp; More&lt;/u&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>syncfusion</category>
      <category>documentprocessing</category>
      <category>pptxeditorsdk</category>
      <category>powerpointviewer</category>
    </item>
    <item>
      <title>What’s New in .NET MAUI 11: Key Changes and Upgrade Guide</title>
      <dc:creator>Jollen Moyani</dc:creator>
      <pubDate>Tue, 17 Nov 2026 22:30:00 +0000</pubDate>
      <link>https://dev.to/syncfusion/whats-new-in-net-maui-11-key-changes-and-upgrade-guide-3bc1</link>
      <guid>https://dev.to/syncfusion/whats-new-in-net-maui-11-key-changes-and-upgrade-guide-3bc1</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;em&gt;.NET MAUI 11 is primarily a runtime, platform, quality, and migration-focused release. CoreCLR is the supported runtime for .NET 11 Android, iOS, tvOS, and Mac Catalyst projects, while NativeAOT is an optional publishing alternative. Android now requires API 24 or later, Android x86 is unsupported while ARM32 remains supported, and default handlers and navigation lifecycle behavior have changed. Before upgrading, validate Release and publish builds, custom handlers, CollectionView2 behavior, navigation, HybridWebView, maps, trimming, NativeAOT, and the exact third-party package versions used by the application.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;.NET MAUI 11 brings important changes to the runtime, platform requirements, handlers, and development tools. While these updates improve the development experience, they can also affect how existing applications behave after an upgrade.&lt;/p&gt;

&lt;p&gt;The move to CoreCLR, the increased Android minimum API level, and changes to navigation and control handlers are particularly important for teams maintaining production MAUI applications.&lt;/p&gt;

&lt;p&gt;In this guide, we’ll explore the key .NET MAUI 11 features, breaking changes, and compatibility considerations. You’ll also learn how to validate your application, identify potential issues, and follow a practical upgrade workflow before moving to production.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who should read this
&lt;/h2&gt;

&lt;p&gt;This article is for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;developers upgrading an existing .NET MAUI app&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;engineering leads planning a framework migration&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;architects reviewing runtime and platform impact&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;teams using custom handlers, trimming, NativeAOT, HybridWebView, maps, or third-party UI libraries&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;teams validating Syncfusion &lt;a href="https://www.syncfusion.com/maui-controls" rel="noopener noreferrer"&gt;.NET MAUI controls&lt;/a&gt; on .NET 11&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By the end, you should know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;which .NET 11 changes matter most&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;what to test first&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;which app areas are higher risk&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;how to structure a safer upgrade plan&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why .NET 11 matters for MAUI teams
&lt;/h2&gt;

&lt;p&gt;This release updates the runtime model, raises Android requirements, changes default handler behavior, and improves platform APIs and development tools. For existing applications, the primary concern is whether production flows continue to behave correctly in Release and published builds on supported devices.&lt;/p&gt;

&lt;p&gt;Treat .NET 11 as a controlled platform migration. The detailed validation sequence appears in the Practical upgrade workflow section to avoid repeating the same package, build, and testing guidance here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Core runtime changes: CoreCLR is now the default
&lt;/h2&gt;

&lt;p&gt;One of the biggest changes in .NET MAUI 11 is the adoption of CoreCLR as the default runtime.&lt;/p&gt;

&lt;p&gt;More specifically, supported .NET 11 Android, iOS, tvOS, and Mac Catalyst projects use CoreCLR. This change should not be interpreted as identical runtime behavior across every MAUI target because platform packaging, deployment, diagnostics, and operating-system constraints still differ. Windows already uses the .NET desktop runtime model, so mobile-runtime migration checks mainly apply to the supported mobile workloads.&lt;/p&gt;

&lt;p&gt;For projects moving from .NET 10, remove &lt;code&gt;UseMonoRuntime=true&lt;/code&gt;. In a .NET 11 mobile project, that setting causes build error &lt;code&gt;NETSDK1242&lt;/code&gt;. Also review tools or scripts that depend on Mono runtime names, &lt;code&gt;libmonosgen&lt;/code&gt; package files, stack frames, symbols, or diagnostic events, because these now identify CoreCLR.&lt;/p&gt;

&lt;p&gt;Trimming removes unused code during publishing to reduce package size. It can affect reflection, dynamic loading, serialization across unknown types, and third-party libraries that are not trimming-safe. Compare Debug, Release, and production-like publish outputs because these compatibility problems may not appear during a Debug build.&lt;/p&gt;

&lt;h3&gt;
  
  
  NativeAOT is still opt-in
&lt;/h3&gt;

&lt;p&gt;NativeAOT compiles an application directly into native machine code. Depending on the target platform, application architecture, dependency graph, and publishing configuration, it may improve startup time or memory usage. These outcomes are workload-specific and are not guaranteed.&lt;/p&gt;

&lt;p&gt;Evaluate NativeAOT only after establishing a stable CoreCLR baseline, and test it early if the app uses:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;reflection&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;dynamic loading&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;JSON serialization across unknown types&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;JavaScript to .NET interop&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;third-party libraries not designed for aggressive trimming&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Quick decision guide
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Runtime option&lt;/th&gt;
&lt;th&gt;Best fit&lt;/th&gt;
&lt;th&gt;Main caution&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CoreCLR&lt;/td&gt;
&lt;td&gt;Best default for most upgrades&lt;/td&gt;
&lt;td&gt;Still requires Release-build validation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NativeAOT&lt;/td&gt;
&lt;td&gt;Teams optimizing specific publish scenarios&lt;/td&gt;
&lt;td&gt;Trimming and dependency compatibility must be tested early&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If your team is upgrading first and optimizing later, CoreCLR is the safer starting point.&lt;/p&gt;

&lt;h2&gt;
  
  
  New platform test projects
&lt;/h2&gt;

&lt;p&gt;These templates simplify testing in an application-aware environment during migration.&lt;/p&gt;

&lt;p&gt;The available template short names are &lt;code&gt;androidtest&lt;/code&gt;, &lt;code&gt;iostest&lt;/code&gt;, &lt;code&gt;tvostest&lt;/code&gt;, &lt;code&gt;macostest&lt;/code&gt;, and &lt;code&gt;maccatalysttest&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dotnet new androidtest -n MauiUpgradeTests
&lt;span class="nb"&gt;cd&lt;/span&gt; MauiUpgradeTests
dotnet &lt;span class="nb"&gt;test&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Platform test projects complement, rather than replace, unit tests, UI automation, integration tests, and real-device validation.&lt;/p&gt;

&lt;p&gt;For current details, see &lt;a href="https://learn.microsoft.com/en-us/dotnet/maui/whats-new/dotnet-11" rel="noopener noreferrer"&gt;What’s new in .NET MAUI for .NET 11&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Control, handler, and navigation changes to test first
&lt;/h2&gt;

&lt;p&gt;A handler connects a cross-platform control, such as Button or Entry, to its native implementation. A MAUI app may compile successfully but still experience UI regressions at runtime because handlers, theming, layout behavior, or navigation timing changed.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Material 3 behavior on Android
&lt;/h3&gt;

&lt;p&gt;Android handlers for ImageButton, DatePicker, Entry, and Slider now reflect Material 3 styling and behavior. Validate control sizing, spacing, padding, text scaling, accessibility, and consistency with existing themes.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. CollectionView2 on Windows
&lt;/h3&gt;

&lt;p&gt;Windows uses CollectionView2 by default. On collection-heavy screens, test item measurement and layout, grouped data, empty views, headers and footers, selection state, scrolling position, incremental loading, complex templates, and virtualization-sensitive behavior. Also verify keyboard and pointer interaction when the screen depends on desktop input.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Shell, NavigationPage, and TabbedPage handlers
&lt;/h3&gt;

&lt;p&gt;Android Shell apps now use the handler-based architecture by default. Test apps that use custom Shell renderers, route handling, flyout customization, tab behavior, or native navigation modifications.&lt;/p&gt;

&lt;p&gt;On iOS and Mac Catalyst, NavigationPage and TabbedPage use new handlers by default. Their layout, navigation bar, tabs, lifecycle ordering, and custom renderer or handler integrations should be included in regression testing.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Navigation lifecycle assumptions
&lt;/h3&gt;

&lt;p&gt;On iOS and Mac Catalyst, NavigationPage’s &lt;code&gt;Appearing&lt;/code&gt; event now occurs before the page is pushed. Code that assumes the page is already visible should use &lt;code&gt;NavigatedTo&lt;/code&gt; instead. Retest delayed initialization, analytics, focus changes, animation starts, and asynchronous work currently triggered from &lt;code&gt;Appearing&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. HybridWebView and JavaScript interop
&lt;/h3&gt;

&lt;p&gt;For JavaScript-to-.NET invocation, .NET 11 provides a &lt;code&gt;SetInvokeJavaScriptTarget&lt;/code&gt; overload that accepts a source-generated &lt;code&gt;JsonSerializerContext&lt;/code&gt;. Using the source-generated JSON metadata path avoids reflection-based serialization and supports NativeAOT and full trimming when configured correctly. Validate the generated context, analyzer configuration, serialized types, and Release/publish behavior.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. SwipeItem visuals
&lt;/h3&gt;

&lt;p&gt;If your app depends on icons inside swipe actions, verify image tint behavior and set &lt;code&gt;IconColor&lt;/code&gt; explicitly when needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  XAML and tooling improvements
&lt;/h2&gt;

&lt;p&gt;.NET 11 includes several improvements that make MAUI development smoother.&lt;/p&gt;

&lt;p&gt;Notable updates include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Incremental Hot Reload can update existing live page and control instances&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;lazy ResourceDictionary creation when XAML source generation is enabled&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;more trim-safe compiled RelativeSource ancestor bindings&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;implicit XAML namespaces enabled by default&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;compiled binding improvements inside DataTemplate&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;support for &lt;code&gt;x:Code&lt;/code&gt; with preview features enabled&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;improved &lt;code&gt;dotnet run&lt;/code&gt; and &lt;code&gt;dotnet watch&lt;/code&gt; workflows&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These updates are useful, but they should be treated as development-time improvements. They do not replace Release-mode testing or production publish validation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other notable .NET MAUI 11 additions
&lt;/h2&gt;

&lt;p&gt;To support the “What’s New” scope, this section summarizes several prominent additions beyond migration behavior.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;LongPressGestureRecognizer provides built-in long-press handling with duration, movement threshold, state, command, and event support.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;BoxView adds a &lt;code&gt;Fill&lt;/code&gt; property that accepts brushes, including linear and radial gradients.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;TabbedPage supports badges through &lt;code&gt;BadgeText&lt;/code&gt;, &lt;code&gt;BadgeColor&lt;/code&gt;, and &lt;code&gt;BadgeTextColor&lt;/code&gt; attached properties.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SwipeItem adds theme-aware &lt;code&gt;IconColor&lt;/code&gt; and &lt;code&gt;TextColor&lt;/code&gt; properties.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Map adds capabilities such as pin clustering, custom pin icons, map-element events, visibility and Z-order controls, and additional location and region APIs. On Windows, the Map implementation is backed by Azure Maps and requires an Azure Maps subscription key. Map capabilities remain platform-specific, so verify each required feature on every intended target.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  New platform API improvements
&lt;/h2&gt;

&lt;p&gt;.NET 11 also adds or improves passkeys, MediaPicker, &lt;code&gt;Window.StatusBarTheme&lt;/code&gt;, Geolocation, Windows AppInstance activation, and accessibility-related APIs.&lt;/p&gt;

&lt;p&gt;Validate each API against its supported platforms and required permissions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Android and Apple platform requirements
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Android
&lt;/h3&gt;

&lt;p&gt;The minimum supported Android API level is API 24. This value controls the oldest Android version on which the app can run. It is different from the target SDK version, which declares the Android API level against which the app is designed and can affect platform compatibility behavior and store requirements. Do not use the terms interchangeably.&lt;/p&gt;

&lt;p&gt;Android x86 is no longer supported. Android ARM32 remains supported. Review device coverage, emulator images, CI agents, and customer support expectations before migration.&lt;/p&gt;

&lt;p&gt;Example project configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;
&lt;span class="nt"&gt;&amp;lt;PropertyGroup&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;SupportedOSPlatformVersion&lt;/span&gt; &lt;span class="na"&gt;Condition&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;24&lt;span class="nt"&gt;&amp;lt;/SupportedOSPlatformVersion&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/PropertyGroup&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;android:minSdkVersion&lt;/code&gt; is explicitly configured in &lt;code&gt;AndroidManifest.xml&lt;/code&gt;, it must match the project setting. Configure the target SDK separately according to the installed .NET for Android workload, Android tooling, and current store requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  Apple platforms
&lt;/h3&gt;

&lt;p&gt;For Apple targets, verify the supported OS and Xcode requirements for the exact .NET MAUI workload and servicing release used for publication. Also include the new NavigationPage and TabbedPage handlers and the NavigationPage lifecycle timing change in iOS and Mac Catalyst validation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Breaking changes to review before upgrading
&lt;/h2&gt;

&lt;p&gt;Review the following documented changes before upgrading. This table consolidates the previous breaking-change list and risk table.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Change&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Impact&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Recommended action&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CoreCLR replaces Mono for supported .NET 11 mobile workloads&lt;/td&gt;
&lt;td&gt;Runtime names, package files, symbols, diagnostics, tooling, and behavior can change. &lt;code&gt;UseMonoRuntime=true&lt;/code&gt; causes &lt;code&gt;NETSDK1242&lt;/code&gt;.&lt;/td&gt;
&lt;td&gt;Remove &lt;code&gt;UseMonoRuntime=true&lt;/code&gt; and update Mono-dependent tools or scripts.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Android API 24 minimum&lt;/td&gt;
&lt;td&gt;Devices below API 24 are no longer supported.&lt;/td&gt;
&lt;td&gt;Review analytics and support commitments; align &lt;code&gt;SupportedOSPlatformVersion&lt;/code&gt; and any explicit &lt;code&gt;minSdkVersion&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Android x86 removed&lt;/td&gt;
&lt;td&gt;x86 emulator or device targets no longer build or run; ARM32 remains supported.&lt;/td&gt;
&lt;td&gt;Replace x86 emulator and CI coverage with supported architectures.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Android Shell handler enabled by default&lt;/td&gt;
&lt;td&gt;Custom Shell renderers and navigation customizations can regress.&lt;/td&gt;
&lt;td&gt;Test routes, flyout, tabs, navigation customization, and custom integrations.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NavigationPage and TabbedPage handlers on iOS and Mac Catalyst&lt;/td&gt;
&lt;td&gt;Visual behavior and lifecycle ordering can change.&lt;/td&gt;
&lt;td&gt;Test navigation bars, tabs, custom handlers/renderers, and page lifecycle code.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NavigationPage &lt;code&gt;Appearing&lt;/code&gt; timing&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Appearing&lt;/code&gt; occurs before the page is pushed on iOS and Mac Catalyst.&lt;/td&gt;
&lt;td&gt;Use &lt;code&gt;NavigatedTo&lt;/code&gt; for work that assumes the page is visible.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;Microsoft.Maui.Controls.Compatibility&lt;/code&gt; removed&lt;/td&gt;
&lt;td&gt;Projects explicitly referencing the package can fail to restore, build, or run as expected.&lt;/td&gt;
&lt;td&gt;Remove the package reference and migrate remaining compatibility renderers or APIs to handlers and supported APIs.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CollectionView2 default on Windows&lt;/td&gt;
&lt;td&gt;Layout, selection, grouping, scrolling, and virtualization behavior can differ.&lt;/td&gt;
&lt;td&gt;Regression-test complex collection screens and input behavior.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trimming and NativeAOT-sensitive code&lt;/td&gt;
&lt;td&gt;Reflection, dynamic loading, serialization, interop, and incompatible dependencies can fail at publish time or runtime.&lt;/td&gt;
&lt;td&gt;Validate production-like publish output and dependencies early.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obsolete APIs and SwipeItem tint behavior&lt;/td&gt;
&lt;td&gt;Source cleanup or explicit styling may be required.&lt;/td&gt;
&lt;td&gt;Replace obsolete animation APIs and verify SwipeItem &lt;code&gt;IconColor&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What .NET 11 means for Syncfusion .NET MAUI users
&lt;/h2&gt;

&lt;p&gt;Syncfusion® Essential Studio for .NET MAUI &lt;code&gt;v35.1.46&lt;/code&gt; release notes explicitly confirm .NET 11 support across the controls in that release. Use &lt;code&gt;v35.1.46&lt;/code&gt; or another package version whose release documentation explicitly confirms compatibility with the selected .NET 11 workload. Do not assume that every older Syncfusion package version supports .NET 11.&lt;/p&gt;

&lt;p&gt;Review the &lt;a href="https://help.syncfusion.com/maui/release-notes/v35.1.46?type=all" rel="noopener noreferrer"&gt;Syncfusion v35.1.46 release notes&lt;/a&gt; and the &lt;a href="https://help.syncfusion.com/maui/overview" rel="noopener noreferrer"&gt;Syncfusion .NET MAUI controls documentation&lt;/a&gt; for the exact packages and controls used by the application.&lt;/p&gt;

&lt;p&gt;Prioritize these business-critical scenarios:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;DataGrid scrolling, sorting, grouping, selection, editing, and virtualization&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ListView item templates, selection, scrolling, and load-on-demand behavior&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Scheduler appointments, recurrence, navigation, and time-zone behavior&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Charts rendering, labels, legends, selection, zooming, and interaction&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;PDF Viewer loading, navigation, annotations, forms, and large documents&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CollectionView and custom template behavior&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Touch, swipe, drag, keyboard, and accessibility interactions&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Android Material 3 styling and handler-dependent appearance&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;iOS and Mac Catalyst page-lifecycle and navigation behavior&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Release builds, trimming, publishing, and NativeAOT where applicable&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Test the exact Syncfusion package version, .NET MAUI workload, runtime, target platform, device, and production publishing configuration used by the application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical upgrade workflow
&lt;/h2&gt;

&lt;p&gt;Use this sequence for a safer upgrade.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Pin the SDK
&lt;/h3&gt;

&lt;p&gt;Create a migration branch and update the project target frameworks to .NET 11. Include only the platforms supported by the application. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;PropertyGroup&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;TargetFrameworks&amp;gt;&lt;/span&gt;net11.0-android;net11.0-ios;net11.0-maccatalyst&lt;span class="nt"&gt;&amp;lt;/TargetFrameworks&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;TargetFrameworks&lt;/span&gt; &lt;span class="na"&gt;Condition&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"$([MSBuild]::IsOSPlatform('windows'))"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;$(TargetFrameworks);net11.0-windows10.0.19041.0&lt;span class="nt"&gt;&amp;lt;/TargetFrameworks&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;UseMaui&amp;gt;&lt;/span&gt;true&lt;span class="nt"&gt;&amp;lt;/UseMaui&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/PropertyGroup&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add &lt;code&gt;global.json&lt;/code&gt; so the team uses the same installed SDK. The &lt;code&gt;11.0.100&lt;/code&gt; value below is an example only; replace it with the final .NET 11 SDK version installed and approved for the migration.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;{
  "sdk": {
    "version": "11.0.100"
  }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
dotnet --info

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Restore workloads and packages
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet workload list
dotnet workload restore
dotnet restore

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Record all third-party package versions, including Syncfusion packages, and remove any explicit &lt;code&gt;Microsoft.Maui.Controls.Compatibility&lt;/code&gt; reference.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Build every target in Release mode
&lt;/h3&gt;

&lt;p&gt;Use explicit target frameworks so each intended platform is built rather than relying on one host-default target.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet build MyApp.csproj -f net11.0-android -c Release
dotnet build MyApp.csproj -f net11.0-ios -c Release
dotnet build MyApp.csproj -f net11.0-maccatalyst -c Release
dotnet build MyApp.csproj -f net11.0-windows10.0.19041.0 -c Release

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run Apple-target builds on a supported macOS/Xcode environment and Windows-target builds on Windows. Review compile errors, obsolete warnings, trimming warnings, runtime configuration, and platform-specific output.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Publish with production-like settings
&lt;/h3&gt;

&lt;p&gt;Run the publish command with the target framework and runtime identifier used by the production pipeline. For example, an Android ARM64 validation publish can start with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet publish MyApp.csproj -f net11.0-android -c Release -r android-arm64

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Apply the application’s actual signing, store packaging, trimming, NativeAOT, and deployment properties. Use the platform-specific Microsoft publishing guide for the final production command because required properties vary by Android, iOS, Mac Catalyst, and Windows. See the &lt;a href="https://learn.microsoft.com/en-us/dotnet/maui/deployment/" rel="noopener noreferrer"&gt;.NET MAUI deployment documentation&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Run smoke tests on real scenarios
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;app startup and authentication&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Shell, NavigationPage, and TabbedPage flows&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CollectionView2 screens on Windows&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Syncfusion DataGrid, ListView, Scheduler, Charts, and PDF Viewer screens used by the app&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Material 3-affected Android controls&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;maps, including Azure Maps configuration on Windows&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;HybridWebView JavaScript-to-.NET flows&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;file, media, location, and permission flows&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;accessibility and keyboard interaction&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;production-like trimming, publishing, and NativeAOT scenarios where applicable&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  6. Record results by target
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;platform and OS version&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;device, emulator, or simulator&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;runtime and architecture&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;build configuration and trimming mode&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;package versions&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;pass or fail result and evidence&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Common upgrade mistakes to avoid
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;leaving &lt;code&gt;UseMonoRuntime=true&lt;/code&gt; in a .NET 11 mobile project&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;testing only Debug builds or only one target framework&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;using only emulators instead of representative real devices&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;treating minimum Android API level and target SDK version as the same setting&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;assuming older third-party packages are compatible without release-note confirmation&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;enabling NativeAOT before establishing a stable CoreCLR baseline&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;checking build success but not publish and packaged-app behavior&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Start by validating high-risk screens, then gradually expand test coverage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Should your team adopt .NET 11 now?
&lt;/h2&gt;

&lt;p&gt;Adopt .NET 11 for evaluation and migration testing when you need early compatibility results. Move broadly to production only after validating supported devices, exact package versions, production publishing, store submission, monitoring, and rollback.&lt;/p&gt;

&lt;p&gt;The right mindset is not “Can we upgrade?” but “Have we validated the flows that matter?”&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Q1: Does every MAUI app need NativeAOT?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No. CoreCLR is the supported runtime for .NET 11 mobile workloads, while NativeAOT is an optional publishing alternative. Enable it only after validating platform support, trimming, interop, architecture, and dependency compatibility.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q2: What is the main Android migration change?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The minimum supported Android API level is 24, and Android x86 is no longer supported while ARM32 remains supported. Review device coverage, emulator images, CI targets, and the separate target SDK configuration before migration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q3: Should Syncfusion users do anything different?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use Syncfusion &lt;code&gt;v35.1.46&lt;/code&gt; or another version whose release notes explicitly confirm .NET 11 support. Test the exact package versions and business-critical controls under the production runtime, target platform, build, trimming, and publish settings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;.NET MAUI 11 changes the runtime, Android baseline, default handlers, navigation timing, and several publishing-sensitive behaviors. Start by updating the target frameworks and SDK, remove Mono and compatibility-package assumptions, then validate each supported platform in Release and production-like publish configurations.&lt;/p&gt;

&lt;p&gt;If the application uses Syncfusion &lt;a href="https://www.syncfusion.com/maui-controls" rel="noopener noreferrer"&gt;.NET MAUI controls&lt;/a&gt;, select a version whose release notes confirm .NET 11 support and include its business-critical controls in the first compatibility pass. Build success is only the start; complete the migration by validating the packaged application on representative devices and recording the results before rollout.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related Blogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/net-maui-smart-pdf-viewer-with-ai-assistance" rel="noopener noreferrer"&gt;Build AI-Powered PDF Workflows in .NET MAUI with Smart PDF Viewer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/syncfusion-dotnet-maui-2026-volume-3" rel="noopener noreferrer"&gt;What’s New in Syncfusion .NET MAUI 2026 Volume 3: New Controls and Features&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/maui-interactive-viewer-control" rel="noopener noreferrer"&gt;Introducing the .NET MAUI Interactive Viewer Control for Interactive Content&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/fifth-set-open-source-maui-controls" rel="noopener noreferrer"&gt;Introducing the Fifth Set of Open-Source Syncfusion .NET MAUI Controls&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>dotnetmaui</category>
      <category>mobile</category>
      <category>dotnetmauimigration</category>
      <category>crossplatformdevelop</category>
    </item>
    <item>
      <title>How to Test and Debug WebMCP Tools Using Chrome DevTools and TypeScript</title>
      <dc:creator>Rajeshwari Pandinagarajan</dc:creator>
      <pubDate>Mon, 16 Nov 2026 22:30:00 +0000</pubDate>
      <link>https://dev.to/syncfusion/how-to-test-and-debug-webmcp-tools-using-chrome-devtools-and-typescript-56kk</link>
      <guid>https://dev.to/syncfusion/how-to-test-and-debug-webmcp-tools-using-chrome-devtools-and-typescript-56kk</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Learn how to build and debug a TypeScript WebMCP tool using Chrome DevTools. Follow seven lifecycle stages, test registration and execution manually, and use BoldCreate CLI with Chrome DevTools MCP to validate agent discovery and invocation.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A WebMCP tool can look correct in TypeScript but still fail when an AI agent tries to use it. The problem could be tool registration, discovery, input generation, invocation, or result handling.&lt;/p&gt;

&lt;p&gt;These failures can look similar from the outside: a user asks an agent to perform an action, but nothing useful happens. Changing the handler without identifying the actual problem can waste time.&lt;/p&gt;

&lt;p&gt;A better approach is to debug the tool through seven stages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Registration:&lt;/strong&gt; Was the tool registered successfully?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Discovery:&lt;/strong&gt; Can the browser or agent find it?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Selection:&lt;/strong&gt; Did the agent choose the right tool?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Argument generation:&lt;/strong&gt; Did it provide valid input?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Invocation:&lt;/strong&gt; Was the tool called?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Handler execution:&lt;/strong&gt; Did the operation complete?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Result processing:&lt;/strong&gt; Was the output interpreted correctly?&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In this tutorial, you’ll build a simple TypeScript tool, test it in the Chrome DevTools WebMCP panel, and then validate it through an AI coding agent using &lt;a href="https://boldcreate.ai/cli" rel="noopener noreferrer"&gt;BoldCreate CLI&lt;/a&gt; and Chrome DevTools MCP.&lt;/p&gt;

&lt;p&gt;WebMCP is an experimental web capability that allows websites to expose browser-based functionality as structured tools for AI agents. It is not a backend MCP server. The tools run in the browser page and can interact with your application’s client-side functionality.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Prepare your Environment
&lt;/h2&gt;

&lt;p&gt;WebMCP is available through a Chrome origin trial starting with Chrome 149 or later. For local development, you can enable it using Chrome’s testing flag.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open &lt;code&gt;chrome://flags/#enable-webmcp-testing&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set the WebMCP testing flag to Enabled.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Relaunch Chrome.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For the agent-assisted workflow, use a compatible Chrome build with the experimental WebMCP tools enabled in Chrome DevTools MCP.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa677ndmqywg1ffj4enc6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa677ndmqywg1ffj4enc6.png" alt="Enable the WebMCP testing flag in Chrome." width="799" height="404"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Enable the WebMCP testing flag in Chrome&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Compatible Chrome browser and Chrome DevTools.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Node.js and npm.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;TypeScript 5.x.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;webmcp-types&lt;/code&gt; for TypeScript declarations.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;BoldCreate CLI for agent-assisted testing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;chrome-devtools-mcp&lt;/code&gt; for browser connectivity.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Install the required development packages:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install --save-dev typescript webmcp-types

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your TypeScript setup does not automatically include the WebMCP declarations, add them to &lt;code&gt;tsconfig.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"compilerOptions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ES2022"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"module"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ESNext"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"lib"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ES2022"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"DOM"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"types"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"webmcp-types"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"strict"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"noUncheckedIndexedAccess"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run your application from &lt;code&gt;localhost&lt;/code&gt; or a secure HTTPS origin. Remember that &lt;code&gt;document.modelContext&lt;/code&gt; belongs to the browser page, not the Node.js environment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Security note:&lt;/strong&gt; Never expose API secrets in client-side code. Use authenticated backend APIs for protected operations, enforce authorization on the server, and require confirmation for consequential actions.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Build a Working TypeScript WebMCP Tool
&lt;/h2&gt;

&lt;p&gt;Start with a small working example. We’ll create a read-only product lookup tool named &lt;code&gt;find_product&lt;/code&gt;. It accepts a stock-keeping unit (SKU) and returns the matching product from an in-memory catalog.&lt;/p&gt;

&lt;h3&gt;
  
  
  Define the types and sample data
&lt;/h3&gt;

&lt;p&gt;find-product.ts&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;FindProductInput&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;sku&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;Product&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;sku&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;stock&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;FindProductResult&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Product&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;availableSkus&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;catalog&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;readonly&lt;/span&gt; &lt;span class="nc"&gt;Product&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;sku&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"KB-100"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Compact Keyboard"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stock&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;sku&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"MS-200"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Wireless Mouse"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stock&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Validate the received input
&lt;/h3&gt;

&lt;p&gt;TypeScript types do not guarantee that runtime input has the expected structure. Validate the actual value received by the handler.&lt;/p&gt;

&lt;p&gt;find-product.ts&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;isFindProductInput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="nc"&gt;FindProductInput&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="s2"&gt;"object"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;candidate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Register the tool
&lt;/h3&gt;

&lt;p&gt;Current WebMCP examples use &lt;code&gt;document.modelContext&lt;/code&gt;. Older guides may use &lt;code&gt;navigator.modelContext&lt;/code&gt;; update those snippets before testing.&lt;/p&gt;

&lt;p&gt;The application entry point calls the asynchronous registration function from &lt;code&gt;main.ts&lt;/code&gt;. Load &lt;code&gt;main.ts&lt;/code&gt; through an ES module, such as &lt;code&gt;&amp;lt;script type="module" src="https://www.syncfusion.com/src/main.ts"&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The WebMCP Imperative API uses &lt;code&gt;document.modelContext.registerTool()&lt;/code&gt;. Its definition includes a name, description, input schema, and execution handler.&lt;/p&gt;

&lt;p&gt;find-product.ts&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;registerFindProduct&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;AbortSignal&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;modelContext&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"WebMCP is not available in this browser."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;modelContext&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;registerTool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"find_product"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="s2"&gt;"Finds a product in the current catalog by SKU. Use when the user asks for product identity or current stock."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;inputSchema&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"object"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="n"&gt;sku&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;minLength&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Catalog SKU, such as KB-100."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;required&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;additionalProperties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;annotations&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;readOnlyHint&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;inputObject&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;FindProductResult&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nf"&gt;isFindProductInput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;inputObject&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Provide a non-empty SKU string."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;normalizedSku&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;inputObject&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sku&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toUpperCase&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;catalog&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sku&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="n"&gt;normalizedSku&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`No product was found for SKU ${normalizedSku}.`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;availableSkus&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;catalog&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sku&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;signal&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;main.ts&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;registerFindProduct&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"./find-product.js"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;registrationController&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;AbortController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;registerFindProduct&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;registrationController&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'[webmcp] Tool "find_product" registered successfully.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"[webmcp] Registration failed:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The feature check prevents registration attempts when WebMCP is unavailable.&lt;/p&gt;

&lt;p&gt;A few important implementation details:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The tool name and description help agents understand when to use it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The schema defines the expected input.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Runtime validation checks the actual received value.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Structured results make recoverable errors easier to handle.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;readOnlyHint&lt;/code&gt; identifies the tool as read-only.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;AbortController&lt;/code&gt; manages the registration lifecycle.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do not rely on the browser to enforce every schema constraint or apply every default. Validate input inside the handler.&lt;/p&gt;

&lt;h3&gt;
  
  
  Understand cancellation
&lt;/h3&gt;

&lt;p&gt;The registration signal and execution signal have different purposes. Aborting the registration signal removes the tool. It does not automatically cancel an operation already running inside the handler.&lt;/p&gt;

&lt;p&gt;For long-running operations, handle the execution signal separately:&lt;/p&gt;

&lt;p&gt;TypeScript&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;modelContext&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;registerTool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"get_product_details"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Gets product details from the application API."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;inputSchema&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"object"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;sku&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;required&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;sku&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;signal&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="sb"&gt;`/api/products/${encodeURIComponent(sku)}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;signal&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Unable to retrieve product details."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Passing the execution &lt;code&gt;signal&lt;/code&gt; to &lt;code&gt;fetch()&lt;/code&gt; allows the browser to cancel the request when execution is canceled.&lt;/p&gt;

&lt;p&gt;For more details, see the &lt;a href="https://developer.chrome.com/docs/ai/webmcp/imperative-api" rel="noopener noreferrer"&gt;WebMCP Imperative API documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Test the Tool Manually in Chrome DevTools
&lt;/h2&gt;

&lt;p&gt;Test the tool manually before involving an AI agent. This helps determine whether registration and execution work independently of agent behavior.&lt;/p&gt;

&lt;h3&gt;
  
  
  Open the WebMCP panel
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open your application in Chrome.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Launch Chrome DevTools.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select Application.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select &lt;strong&gt;WebMCP&lt;/strong&gt; from the sidebar.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The panel provides two useful views:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Available Tools:&lt;/strong&gt; Shows registered tools, descriptions, and invocation counters.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Invoked Tools:&lt;/strong&gt; Shows tool calls, their status, inputs, outputs, and errors.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvxhx3jtc21pf3xdor40q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvxhx3jtc21pf3xdor40q.png" alt="View the registered find_product tool in Chrome DevTools." width="800" height="425"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;View the registered find_product tool in Chrome DevTools&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Run test cases
&lt;/h3&gt;

&lt;p&gt;Select &lt;code&gt;find_product&lt;/code&gt; under Available Tools, enter an input, and run it.&lt;/p&gt;

&lt;p&gt;Use this test matrix:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Test case&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Input&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Expected result&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Available product&lt;/td&gt;
&lt;td&gt;&lt;code&gt;{"sku":"KB-100"}&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Keyboard record with stock 12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Out-of-stock product&lt;/td&gt;
&lt;td&gt;&lt;code&gt;{"sku":"MS-200"}&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Mouse record with stock 0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unknown product&lt;/td&gt;
&lt;td&gt;&lt;code&gt;{"sku":"XX-999"}&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Completed invocation with ok: false, an explanatory message, and the available SKUs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Normalized input&lt;/td&gt;
&lt;td&gt;&lt;code&gt;{"sku":" kb-100 "}&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Keyboard record after trimming and normalization&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcigkhv4u1xhlkfium6bo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcigkhv4u1xhlkfium6bo.png" alt="Test a successful invocation using KB-100" width="799" height="425"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Test a successful invocation using KB-100&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1v7kpp6y71sex1ro0wh1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1v7kpp6y71sex1ro0wh1.png" alt="Inspect the structured result for the unknown SKU XX-999" width="800" height="425"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Inspect the structured result for the unknown SKU XX-999&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Understand the invocation status
&lt;/h3&gt;

&lt;p&gt;The WebMCP panel displays states such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Completed:&lt;/strong&gt; The handler finished.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Canceled:&lt;/strong&gt; The execution was canceled.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;In Progress:&lt;/strong&gt; The operation is still running.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Error:&lt;/strong&gt; The execution failed.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A Completed status does not always mean the business operation succeeded. For example, an unknown SKU can produce a completed invocation with &lt;code&gt;ok: false&lt;/code&gt;. This is an expected, recoverable result.&lt;/p&gt;

&lt;p&gt;If all manual tests work, move on to agent-assisted testing.&lt;/p&gt;
&lt;h2&gt;
  
  
  4. Debug WebMCP Tools by the First Failing Stage
&lt;/h2&gt;

&lt;p&gt;When a tool fails, inspect the earliest stage that does not behave as expected.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;What to check&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Tool is missing from Available Tools&lt;/td&gt;
&lt;td&gt;Chrome compatibility, WebMCP flag or origin trial, &lt;code&gt;document.modelContext&lt;/code&gt;, registration errors, and aborted registration signal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tool appears, but manual execution fails&lt;/td&gt;
&lt;td&gt;Input structure, runtime validation, application state, exceptions, and rejected promises&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Handler completes, but output is incorrect&lt;/td&gt;
&lt;td&gt;Missing return values, output structure, UI updates, and cancellation handling&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent cannot discover the tool&lt;/td&gt;
&lt;td&gt;MCP server configuration, experimental WebMCP category, browser target, and active page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent discovers but does not execute the tool&lt;/td&gt;
&lt;td&gt;Generated arguments and invocation details&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent skips the tool for natural-language requests&lt;/td&gt;
&lt;td&gt;Tool name, description, parameter descriptions, and overlapping responsibilities&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Example: Debug a handler failure&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The following example intentionally throws an error:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;modelContext&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;registerTool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"find_product_broken_handler"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Finds a product by SKU."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;inputSchema&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"object"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;sku&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;required&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;sku&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;FindProductInput&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`Simulated lookup failure for ${sku}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The invocation will report an execution error.&lt;/p&gt;

&lt;p&gt;For recoverable problems, return structured results instead. For example, an unknown SKU should return an error message and available alternatives. Unexpected programming errors should still be treated as failures rather than being disguised as successful results.&lt;/p&gt;

&lt;p&gt;For tools that update the page, wait until the visible state matches the returned result. Handle canceled asynchronous operations to prevent stale updates.&lt;/p&gt;

&lt;p&gt;If a tool returns external or user-generated content, consider the &lt;code&gt;untrustedContentHint&lt;/code&gt; annotation. For significant or irreversible actions, use &lt;code&gt;consequentialHint&lt;/code&gt; and implement an independent confirmation safeguard. These annotations do not replace authorization or validation.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Connect BoldCreate CLI to Chrome DevTools MCP
&lt;/h2&gt;

&lt;p&gt;Once manual testing succeeds, validate the tool through an MCP-compatible AI agent.&lt;/p&gt;

&lt;p&gt;This tutorial uses &lt;a href="https://boldcreate.ai/cli" rel="noopener noreferrer"&gt;BoldCreate CLI&lt;/a&gt; with Chrome DevTools MCP. The same approach can be used with other compatible agents.&lt;/p&gt;

&lt;p&gt;Add the Chrome DevTools MCP server from your project terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;boldcreate mcp add chrome-devtools -- npx -y chrome-devtools-mcp@latest --categoryExperimentalWebmcp

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;--&lt;/code&gt; separator passes the following command and arguments to the MCP server configuration.&lt;/p&gt;

&lt;p&gt;Verify the server configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;boldcreate mcp list

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For more details, refer to the &lt;a href="https://docs.boldcreate.ai/cli/extensibility/mcp-servers" rel="noopener noreferrer"&gt;Setting Up MCP Servers&lt;/a&gt; guide.&lt;/p&gt;

&lt;p&gt;Start your application in a separate terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run dev

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure the application is open in the Chrome instance accessible to Chrome DevTools MCP. The agent may use a different Chrome profile or page from the one used for manual testing.&lt;/p&gt;

&lt;p&gt;Restart &lt;a href="https://boldcreate.ai/cli" rel="noopener noreferrer"&gt;BoldCreate CLI&lt;/a&gt; after adding the MCP server if it was already running.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Security note:&lt;/strong&gt; Use an isolated test profile rather than a browser session containing sensitive authenticated accounts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Test discovery first
&lt;/h3&gt;

&lt;p&gt;Do not begin with an open-ended request such as “Find the keyboard.” First confirm that the agent can discover the tool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prompt 1:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;List the WebMCP tools exposed by the current page. Confirm whether find_product is present, and summarize its description and input schema. Do not execute the tool.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This checks discovery without involving tool selection.&lt;/p&gt;

&lt;h3&gt;
  
  
  Test explicit invocation
&lt;/h3&gt;

&lt;p&gt;Once discovery succeeds, ask the agent to execute the tool with a known input.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prompt 2:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Execute the exposed find_product WebMCP tool on the selected page with {"sku":"KB-100"}. Use the WebMCP invocation capability rather than reading visible page text. Report the exact input, output, and invocation status.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The expected result is a completed invocation returning the Compact Keyboard record with stock 12.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo3etdf64m8f7uhfo2lvi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo3etdf64m8f7uhfo2lvi.png" alt="Invoke the find_product WebMCP tool using BoldCreate CLI" width="800" height="425"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Invoke the find_product WebMCP tool using BoldCreate CLI&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Test natural-language selection
&lt;/h3&gt;

&lt;p&gt;Finally, check whether the agent selects the tool without being told its name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prompt 3:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Check whether product KB-100 is in stock on this page. Use an available page tool when it is relevant.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the agent does not select &lt;code&gt;find_product&lt;/code&gt;, the tool may still be working correctly. The agent may simply have chosen not to invoke it for that request.&lt;/p&gt;

&lt;p&gt;Repeat the prompt when evaluating selection behavior, and record each run separately. A small number of tests is not enough to establish a general reliability percentage.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Improve Tool Discovery and Selection
&lt;/h2&gt;

&lt;p&gt;If an agent can list a tool but does not choose it, review the information available to it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use focused names.&lt;/strong&gt; Prefer &lt;code&gt;find_product&lt;/code&gt; over vague names such as &lt;code&gt;product_helper&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Write clear descriptions.&lt;/strong&gt; Explain what the tool does and when it should be used.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;description:
"Finds a product in the current catalog by SKU.
Use when the user asks for product identity or current
stock."

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Describe parameters.&lt;/strong&gt; Explain what each argument represents and provide an example.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="n"&gt;sku&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;minLength&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Catalog SKU, such as KB-100."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Register tools in relevant contexts.&lt;/strong&gt; Remove registrations when their associated page or application state is no longer available.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Avoid overlapping responsibilities.&lt;/strong&gt; If &lt;code&gt;find_product&lt;/code&gt;, &lt;code&gt;get_product&lt;/code&gt;, and &lt;code&gt;search_catalog&lt;/code&gt; perform similar tasks, clarify their purpose or consolidate them.&lt;/p&gt;

&lt;p&gt;Keep the schema responsible for types, required properties, enum values, and constraints.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Prevent Common WebMCP Problems
&lt;/h2&gt;

&lt;p&gt;Manual testing is useful, but reliable applications also need automated tests.&lt;/p&gt;

&lt;p&gt;Include checks for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Valid, missing, empty, and incorrect input.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Boundary values and structured error responses.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unavailable application state.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Registration and cleanup during route changes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cancellation of asynchronous operations.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Authorization for state-changing actions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Confirmation for consequential operations.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Safe handling of untrusted output.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Visible UI state after execution.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Keep handler tests separate from agent-selection tests. A unit test can verify the output for &lt;code&gt;KB-100&lt;/code&gt;, but it cannot prove that every AI agent will select the tool for every possible request.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. How does WebMCP fit into React, Angular, or Vue?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Register tools when the required component or route becomes available, and clean them up when it is removed. WebMCP framework integrations can simplify this process.&lt;/p&gt;

&lt;p&gt;For example, React, Angular, and Vue integrations provide lifecycle-aware ways to manage tool registration. Check the current framework integration documentation before adding a dependency.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Can a WebMCP tool call a backend API?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. A WebMCP handler can use &lt;code&gt;fetch()&lt;/code&gt; to access backend data or operations.&lt;/p&gt;

&lt;p&gt;However, the backend must enforce authentication, authorization, input validation, rate limits, and business rules. Never expose privileged API credentials in browser code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. How can a single-page application prevent duplicate registrations?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tie tool registration to the component or route lifecycle. Keep the registration &lt;code&gt;AbortController&lt;/code&gt; and abort its &lt;code&gt;signal&lt;/code&gt; when the tool is no longer needed.&lt;/p&gt;

&lt;p&gt;Test route changes, hot reloads, and development-mode checks to identify stale or duplicate registrations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Can WebMCP tools work inside an iframe?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes, subject to origin and Permissions Policy restrictions.&lt;/p&gt;

&lt;p&gt;Cross-origin iframe access requires the embedding page to delegate the tools permission. The tool must also explicitly expose itself to the permitted origin through the &lt;code&gt;exposedTo&lt;/code&gt; option. Verify current browser support before depending on iframe-based integrations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Is WebMCP ready for production applications?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;WebMCP is still experimental. Provide a non-WebMCP fallback for essential functionality, enforce authorization on the server, and require confirmation for consequential operations.&lt;/p&gt;

&lt;p&gt;Treat WebMCP as a progressive enhancement rather than the only way users can access an essential feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Debugging WebMCP tools becomes easier when you test each lifecycle stage in order.&lt;/p&gt;

&lt;p&gt;First, confirm registration and discovery in Chrome DevTools. Next, validate the handler with controlled inputs. Once manual testing succeeds, use &lt;a href="https://boldcreate.ai/cli" rel="noopener noreferrer"&gt;BoldCreate CLI&lt;/a&gt; with Chrome DevTools MCP to test agent discovery, explicit invocation, and natural-language selection.&lt;/p&gt;

&lt;p&gt;Remember that successful manual execution proves the tool works for the tested input. Agent selection is a separate behavior influenced by the request, tool descriptions, available context, and the agent itself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ready to test your WebMCP tools with an AI coding agent?&lt;/strong&gt; Try &lt;a href="https://boldcreate.ai/cli" rel="noopener noreferrer"&gt;BoldCreate CLI&lt;/a&gt; with the &lt;a href="https://developer.chrome.com/docs/devtools/agents/webmcp-debugging" rel="noopener noreferrer"&gt;Chrome WebMCP debugging guide&lt;/a&gt; and apply the same process to your browser-based tools.&lt;/p&gt;

</description>
      <category>webmcp</category>
      <category>ai</category>
      <category>devtools</category>
      <category>debugging</category>
    </item>
    <item>
      <title>How to Automate Digital Signatures in Word Documents Using C#</title>
      <dc:creator>Jollen Moyani</dc:creator>
      <pubDate>Fri, 13 Nov 2026 15:30:00 +0000</pubDate>
      <link>https://dev.to/syncfusion/how-to-automate-digital-signatures-in-word-documents-using-c-583h</link>
      <guid>https://dev.to/syncfusion/how-to-automate-digital-signatures-in-word-documents-using-c-583h</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;em&gt;Still signing Word documents manually? With the Syncfusion .NET Word Library, you can automate the entire signing process using C#. Learn how to add invisible digital signatures, create visible signature lines, validate signed documents, and manage document revisions without Microsoft Word or Office Interop.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Have you automated Word document generation but still need someone to sign each document manually? This extra step can slow down approvals, create multiple document versions, and make it harder to track signed files.&lt;/p&gt;

&lt;p&gt;What if you could handle the entire process directly in your application?&lt;/p&gt;

&lt;p&gt;The Syncfusion® &lt;a href="https://www.syncfusion.com/document-sdk/net-word-library" rel="noopener noreferrer"&gt;.NET Word Library&lt;/a&gt; introduces &lt;a href="https://www.syncfusion.com/document-sdk/net-word-library/digital-signature-in-word-document" rel="noopener noreferrer"&gt;digital signature&lt;/a&gt; support in Essential Studio &lt;a href="https://help.syncfusion.com/common/essential-studio/release-notes/v35.1.37" rel="noopener noreferrer"&gt;2026 Volume 3&lt;/a&gt;. You can now sign, validate, and manage digital signatures in Word documents using C#, without depending on Microsoft Word or Office Interop.&lt;/p&gt;

&lt;p&gt;With digital signatures built into your document process, you can handle document generation, signing, validation, and delivery in one automated process.&lt;/p&gt;

&lt;p&gt;In this blog, you’ll learn how to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add invisible digital signatures to Word documents.&lt;/li&gt;
&lt;li&gt;Create and sign visible signature lines.&lt;/li&gt;
&lt;li&gt;Validate signed DOCX files.&lt;/li&gt;
&lt;li&gt;Remove signatures before making document changes.&lt;/li&gt;
&lt;li&gt;Apply supported XML digital signature standards.&lt;/li&gt;
&lt;li&gt;Manage multiple signature lines in a document.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why automate digital signatures in Word documents?
&lt;/h2&gt;

&lt;p&gt;Signing a few documents manually may not be a problem. But what happens when your application generates hundreds of offer letters, contracts, or approval documents every day? Managing all those signatures manually can quickly become difficult.&lt;/p&gt;

&lt;p&gt;Automating digital signatures helps applications:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reduce manual approval steps.&lt;/li&gt;
&lt;li&gt;Avoid unnecessary document copies.&lt;/li&gt;
&lt;li&gt;Maintain document integrity.&lt;/li&gt;
&lt;li&gt;Validate signatures before sharing documents.&lt;/li&gt;
&lt;li&gt;Improve document tracking and auditability.&lt;/li&gt;
&lt;li&gt;Simplify approval processes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Consider an HR application that automatically generates offer letters. Without automation, HR teams need to download each document, sign it, upload the signed copy, and keep track of different versions.&lt;/p&gt;

&lt;p&gt;With digital signature automation, the application can sign documents, validate them, and store the approved versions directly within the approval process.&lt;/p&gt;

&lt;p&gt;Here’s how the manual and automated approaches compare:&lt;/p&gt;


&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;
&lt;th&gt;Scenario&lt;/th&gt;
&lt;th&gt;Manual process&lt;/th&gt;
&lt;th&gt;Automated digital signature process&lt;/th&gt;
&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Document signing&lt;/td&gt;
&lt;td&gt;Open and sign documents manually in Word.&lt;/td&gt;
&lt;td&gt;Sign DOCX files automatically using code.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multi-party approvals&lt;/td&gt;
&lt;td&gt;Exchange files between reviewers.&lt;/td&gt;
&lt;td&gt;Add separate signature lines for different signers.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Validation&lt;/td&gt;
&lt;td&gt;Verify signatures manually.&lt;/td&gt;
&lt;td&gt;Validate signatures automatically before delivery.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Document updates&lt;/td&gt;
&lt;td&gt;Track multiple document versions.&lt;/td&gt;
&lt;td&gt;Remove signatures, update documents, and sign them again.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server-side processing&lt;/td&gt;
&lt;td&gt;Requires manual interaction.&lt;/td&gt;
&lt;td&gt;Runs in web applications, cloud services, and background processes.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  How to automate digital signatures in Word documents using C
&lt;/h2&gt;

&lt;p&gt;Let’s see how to add &lt;a href="https://help.syncfusion.com/document-processing/word/word-library/net/working-with-digital-signature" rel="noopener noreferrer"&gt;digital signatures&lt;/a&gt; to Word documents using the Syncfusion &lt;a href="https://help.syncfusion.com/document-processing/word/word-library/net/getting-started" rel="noopener noreferrer"&gt;.NET Word Library (DocIO)&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We’ll walk through loading a document and signing certificate, creating invisible and visible signatures, validating signed documents, and managing document revisions.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;em&gt;The examples in this blog focus on DOCX documents. Digital signature support in DocIO is currently available for DOCX files, not legacy DOC formats.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 1: Install the required NuGet package
&lt;/h3&gt;

&lt;p&gt;First, install the &lt;a href="https://www.nuget.org/packages/Syncfusion.DocIO.Net.Core" rel="noopener noreferrer"&gt;Syncfusion.DocIO.Net.Core&lt;/a&gt; NuGet package in your .NET application.&lt;/p&gt;

&lt;p&gt;Run the following command in the &lt;strong&gt;Package Manager Console&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Install&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Package&lt;/span&gt; &lt;span class="nc"&gt;Syncfusion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DocIO&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Net&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Core&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, import the required namespaces:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;Syncfusion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DocIO&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;Syncfusion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DocIO&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;DLS&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;Syncfusion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Office&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;IO&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These namespaces provide the classes required to load Word documents, configure digital signatures, work with certificates, and save signed files.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Load the document and signing certificate
&lt;/h3&gt;

&lt;p&gt;Before adding a digital signature, you need two things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Word document you want to sign.&lt;/li&gt;
&lt;li&gt;A digital certificate containing the signer’s private key.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The certificate is typically provided as a password-protected &lt;strong&gt;.pfx&lt;/strong&gt; or &lt;strong&gt;.p12&lt;/strong&gt; file.&lt;/p&gt;

&lt;p&gt;You can load the DOCX document using the &lt;strong&gt;WordDocument&lt;/strong&gt; class and the signing certificate using &lt;strong&gt;OfficeDigitalSignatureCertificate&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;WordDocument&lt;/span&gt; &lt;span class="n"&gt;document&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;WordDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"input.docx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;FormatType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Docx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nc"&gt;OfficeDigitalSignatureCertificate&lt;/span&gt; &lt;span class="n"&gt;certificate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;OfficeDigitalSignatureCertificate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s2"&gt;"PrivateKey.pfx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"certificate-password"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Production tip:&lt;/strong&gt; Avoid hardcoding certificate passwords in your application. Store certificates and secrets securely using solutions such as Azure Key Vault, enterprise secret management systems, or secure certificate stores.&lt;/p&gt;

&lt;p&gt;Also, make sure the certificate is valid, contains the required private key, and has not expired.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Add an invisible digital signature to a Word document
&lt;/h3&gt;

&lt;p&gt;Not every document needs a visible signature block. Sometimes, you simply want to confirm who signed the document and whether its content has changed since signing.&lt;/p&gt;

&lt;p&gt;That’s where &lt;a href="https://help.syncfusion.com/document-processing/word/word-library/net/working-with-digital-signature#add-digital-signature-invisible-signature" rel="noopener noreferrer"&gt;invisible digital signatures&lt;/a&gt; help. They protect the document without adding a visible signature area to the page.&lt;/p&gt;

&lt;p&gt;With DocIO, you can use the &lt;strong&gt;AddDigitalSignature()&lt;/strong&gt; method to sign a Word document using the loaded certificate.&lt;/p&gt;

&lt;p&gt;You can configure the &lt;strong&gt;SignatureSettings&lt;/strong&gt; class to specify details&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="nc"&gt;SignatureSettings&lt;/span&gt; &lt;span class="n"&gt;settings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;SignatureSettings&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;SignTime&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;DateTime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Now&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nc"&gt;Comments&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Approved"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddDigitalSignature&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;certificate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"DigitallySigned.docx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;FormatType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Docx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, &lt;strong&gt;SignTime&lt;/strong&gt; specifies the signing time, while &lt;strong&gt;Comments&lt;/strong&gt; stores additional information associated with the signature.&lt;/p&gt;

&lt;p&gt;Once the signature is added, save the document in DOCX format.&lt;/p&gt;

&lt;p&gt;The resulting document contains an invisible digital signature that can be validated later.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; &lt;em&gt;Avoid modifying a signed document. Changes to its content can invalidate the existing digital signature.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3nyw6gs81x7va15zyhue.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3nyw6gs81x7va15zyhue.png" alt="Adding an invisible digital signature to a Word document" width="800" height="415"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Adding an invisible digital signature to a Word document&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 4: Add a visible digital signature to a Word document
&lt;/h3&gt;

&lt;p&gt;Some business documents need a visible approval area so readers can easily identify where a document was signed.&lt;/p&gt;

&lt;p&gt;You may see these signature lines in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Contracts and legal agreements.&lt;/li&gt;
&lt;li&gt;Employees offer letters.&lt;/li&gt;
&lt;li&gt;Procurement approvals.&lt;/li&gt;
&lt;li&gt;Financial authorization documents.&lt;/li&gt;
&lt;li&gt;Business agreements.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;DocIO allows you to create a &lt;a href="https://help.syncfusion.com/document-processing/word/word-library/net/working-with-digital-signature#sign-signature-line-visible-signature" rel="noopener noreferrer"&gt;signature line&lt;/a&gt; with signer details and a unique identifier. You can then use this identifier when applying the digital signature through &lt;a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.Office.SignatureSettings.html" rel="noopener noreferrer"&gt;SignatureSettings&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;First, create a signature line in the Word document and retrieve its unique ID. The &lt;strong&gt;signatureLineId&lt;/strong&gt; in the following example represents that ID.&lt;/p&gt;

&lt;p&gt;You can also provide a signature image to give the signature line a familiar handwritten-signature appearance.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="kt"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="nc"&gt;SignatureLineImage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;File&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ReadAllBytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"signature.png"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nc"&gt;SignatureSettings&lt;/span&gt; &lt;span class="n"&gt;visibleSettings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;SignatureSettings&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;SignatureLineId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;signatureLineId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nc"&gt;SignatureLineImage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;SignatureLineImage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nc"&gt;SignTime&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;DateTime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Now&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nc"&gt;Comments&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Reviewed and approved"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddDigitalSignature&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;certificate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;visibleSettings&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"VisibleDigitalSignature.docx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;FormatType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Docx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SignatureLineId&lt;/strong&gt; identifies the signature line to be signed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SignatureLineImage&lt;/strong&gt; specifies the image displayed in the signature area.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SignTime&lt;/strong&gt; records the signing time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Comments&lt;/strong&gt; adds information associated with the signature.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;strong&gt;signatureLineId&lt;/strong&gt; must match the unique ID of a signature line already created in the document.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A quick clarification:&lt;/strong&gt; The signature image provides the visual appearance of a handwritten signature. The certificate-based digital signature provides cryptographic verification and document integrity protection. Adding an image alone does not create a digital signature.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqrfn5n6bcovdg1zxzql0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqrfn5n6bcovdg1zxzql0.png" alt="Adding a visible digital signature to a Word document" width="800" height="589"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Adding a visible digital signature to a Word document&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 5: Validate digital signatures before sharing documents
&lt;/h3&gt;

&lt;p&gt;Adding a digital signature is only one part of the process. You should also check whether the signature is still valid before sharing, distributing, or archiving the document.&lt;/p&gt;

&lt;p&gt;For example, an enterprise document management system can validate a signed DOCX file before moving it into permanent storage.&lt;/p&gt;

&lt;p&gt;DocIO provides the &lt;strong&gt;DigitalSignatures&lt;/strong&gt; collection to access the signatures in a Word document.&lt;/p&gt;

&lt;p&gt;You can check whether a document contains signatures and whether those signatures are valid using the following properties:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;DigitalSignatures.Count:&lt;/strong&gt; Gets the number of signatures in the document.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DigitalSignatures.IsValid:&lt;/strong&gt; Checks whether all signatures in the collection are valid.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;signature.IsValid:&lt;/strong&gt; Checks an individual signature.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can also retrieve details such as signing time and signature comments.&lt;/p&gt;

&lt;p&gt;Here’s how to check the signatures in a document:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;WordDocument&lt;/span&gt; &lt;span class="n"&gt;signedDocument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;WordDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"DigitallySigned.docx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;FormatType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Docx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="n"&gt;hasSignatures&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;signedDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DigitalSignatures&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Count&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="n"&gt;allSignaturesValid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="n"&gt;signedDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DigitalSignatures&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;IsValid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;signature&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;signedDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DigitalSignatures&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="n"&gt;isValid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;signature&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;IsValid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;comments&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;signature&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Comments&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nc"&gt;DateTime&lt;/span&gt; &lt;span class="n"&gt;signingTime&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;signature&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;SigningTime&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This example checks whether the document contains signatures and whether they are valid. It also retrieves the validation status, comments, and signing time of each signature.&lt;/p&gt;

&lt;p&gt;For example, before sending an approved contract to a customer, your application can validate its signatures and proceed based on the validation result.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F14s5j0o52xvxysjo5b2u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F14s5j0o52xvxysjo5b2u.png" alt="Validating a digital signature in a Word document" width="799" height="477"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Validating a digital signature in a Word document&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Try the &lt;a href="https://document.syncfusion.com/demos/word/digitalsignaturevalidation#/tailwind3" rel="noopener noreferrer"&gt;validation demo&lt;/a&gt; to verify signed documents and explore additional validation scenarios.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 6: Choose the right digital signature standard
&lt;/h3&gt;

&lt;p&gt;Different applications may have different digital signature requirements. Some may need standard XML digital signatures, while others may require additional signature policy information.&lt;/p&gt;

&lt;p&gt;DocIO allows you to specify the required signature standard using the &lt;a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.Office.XmlDsigLevel.html" rel="noopener noreferrer"&gt;XmlDsigLevel&lt;/a&gt; property in &lt;strong&gt;SignatureSettings&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It supports the following standards:&lt;/p&gt;
&lt;h4&gt;
  
  
  XmlDSig
&lt;/h4&gt;

&lt;p&gt;XML Digital Signature (XMLDSig) is the standard W3C format for digitally signing XML content. It is suitable for standard document-signing scenarios.&lt;/p&gt;
&lt;h4&gt;
  
  
  XAdES-EPES
&lt;/h4&gt;

&lt;p&gt;XAdES-EPES extends XML digital signatures with explicit signature policy information. This allows applications to associate a signature with a defined signing policy.&lt;/p&gt;
&lt;h4&gt;
  
  
  Things to consider when choosing a standard:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Check your organization’s digital signature requirements.&lt;/li&gt;
&lt;li&gt;Select a standard that aligns with the applicable signing policy.&lt;/li&gt;
&lt;li&gt;Make sure the systems that receive and validate your documents support the selected standard.&lt;/li&gt;
&lt;li&gt;Verify any additional compliance requirements separately.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can configure the required standard using the &lt;strong&gt;XmlDsigLevel&lt;/strong&gt; enumeration. Here’s an example of configuring both standards:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="nc"&gt;SignatureSettings&lt;/span&gt; &lt;span class="n"&gt;xmlSettings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;SignatureSettings&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;XmlDsigLevel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;XmlDsigLevel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;XmlDSig&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nc"&gt;SignTime&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;DateTime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Now&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddDigitalSignature&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;certificate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;xmlSettings&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nc"&gt;SignatureSettings&lt;/span&gt; &lt;span class="n"&gt;xadesSettings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;SignatureSettings&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;XmlDsigLevel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;XmlDsigLevel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;XAdEsEpes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nc"&gt;SignTime&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;DateTime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Now&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddDigitalSignature&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;certificate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;xadesSettings&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Choose the appropriate standard based on your application’s requirements. Selecting a signature standard alone does not guarantee regulatory compliance; your complete signing process must meet the applicable certificate and policy requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7: Remove digital signatures before updating a document
&lt;/h3&gt;

&lt;p&gt;Need to update a document after it has been signed? You should remove the existing signatures before making changes. Otherwise, the signatures may no longer be valid.&lt;/p&gt;

&lt;p&gt;Consider a contract amendment. Once a contract has been signed, the business may need to update a clause or change an agreement date. The previous signature no longer represents the updated document.&lt;/p&gt;

&lt;p&gt;With DocIO, you can use the &lt;strong&gt;RemoveAllDigitalSignatures()&lt;/strong&gt; method to remove all digital signatures from a document.&lt;/p&gt;

&lt;p&gt;Here’s how to do it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;WordDocument&lt;/span&gt; &lt;span class="n"&gt;signedDocument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;WordDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"DigitallySigned.docx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;FormatType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Docx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;signedDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;RemoveAllDigitalSignatures&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;signedDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"UnsignedForRevision.docx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;FormatType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Docx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A good approach is to follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Preserve the original signed document.&lt;/li&gt;
&lt;li&gt;Create a separate working copy.&lt;/li&gt;
&lt;li&gt;Remove signatures from the working copy.&lt;/li&gt;
&lt;li&gt;Make the required document changes.&lt;/li&gt;
&lt;li&gt;Apply new digital signatures after the changes are complete.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Keeping separate signed and unsigned copies helps maintain a clear document history and makes it easier to track revisions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flgzpnwe8qbpaedcfgbfr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flgzpnwe8qbpaedcfgbfr.png" alt="Removing a digital signature from a Word document" width="800" height="547"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Removing a digital signature from a Word document&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Learn more about &lt;a href="https://help.syncfusion.com/document-processing/word/word-library/net/working-with-digital-signature#remove-digital-signature" rel="noopener noreferrer"&gt;removing signatures&lt;/a&gt; before revising document content.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 8: Manage multiple signature lines in a document
&lt;/h3&gt;

&lt;p&gt;What if a document needs approval from more than one person?&lt;/p&gt;

&lt;p&gt;For example, a procurement agreement may need signatures from a department manager, finance manager, and authorized approver.&lt;/p&gt;

&lt;p&gt;DocIO allows you to insert multiple signature lines into a Word document and sign each line individually.&lt;/p&gt;

&lt;p&gt;You can create separate signature lines using the &lt;strong&gt;AppendSignatureLine()&lt;/strong&gt; method. Each line has its own unique identifier, which you can retrieve and associate with the corresponding signer.&lt;/p&gt;

&lt;p&gt;When signing, pass the appropriate identifier through the &lt;strong&gt;SignatureSettings.SignatureLineId&lt;/strong&gt; property.&lt;/p&gt;

&lt;p&gt;You can then apply the digital signature to each signature line and save the signed document.&lt;/p&gt;

&lt;p&gt;This is useful for applications that need multiple approval sections in the same document.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;em&gt;DocIO provides the document-level signature capabilities. Your application is responsible for managing the approval process, such as assigning signers, sending notifications, controlling signing order, and tracking approval status.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Common scenarios for digital signature automation
&lt;/h2&gt;

&lt;p&gt;Digital signature automation can be useful in several types of applications.&lt;/p&gt;

&lt;p&gt;Here are a few examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HR applications:&lt;/strong&gt; Automatically sign employees offer letters, appointment letters, and other employment documents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contract management systems:&lt;/strong&gt; Sign agreements and validate them before sharing with customers or partners.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Procurement applications:&lt;/strong&gt; Manage purchase agreements and approval documents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Financial applications:&lt;/strong&gt; Sign financial reports and authorization documents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Document management systems:&lt;/strong&gt; Validate signed documents before storing or archiving them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In each scenario, automating digital signatures helps reduce manual work while keeping document signing and validation within the application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Q1: What is the difference between an invisible digital signature and a visible signature line?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An invisible digital signature protects a document without displaying a signature area on the page.&lt;/p&gt;

&lt;p&gt;A visible signature line provides a designated area for signing. It can display signer information and an optional signature image. The signature line must also be digitally signed using a certificate to provide cryptographic verification.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q2: Can multiple people sign the same DOCX document?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. DocIO supports multiple signature lines in a Word document. Each signature line has its own unique identifier and can be signed individually.&lt;/p&gt;

&lt;p&gt;However, managing the approval sequence and signer interactions must be handled by your application.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q3: When should digital signatures be removed?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Remove existing signatures whenever you need to modify the signed document. After making the required changes, apply new digital signatures to the updated document.&lt;/p&gt;

&lt;p&gt;It’s good practice to preserve the original signed copy for document history and audit purposes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q5: Which Word document formats support digital signatures in DocIO?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DocIO currently supports digital signatures in DOCX format. Legacy DOC documents are not supported for this feature.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q6: Which digital signature standards are supported in the .NET Word Library?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DocIO supports &lt;strong&gt;XMLDSig&lt;/strong&gt; and &lt;strong&gt;XAdES-EPES&lt;/strong&gt; through the &lt;strong&gt;SignatureSettings.XmlDsigLevel&lt;/strong&gt; property. You can select the appropriate standard based on your application’s signing requirements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q7: Can I use a signature image without a digital certificate?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A signature image provides a visual representation of a handwritten signature. However, an image alone does not provide cryptographic verification or protect the document from undetected changes.&lt;/p&gt;

&lt;p&gt;To create a digital signature, you need a valid signing certificate containing a private key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep document signing within your application
&lt;/h2&gt;

&lt;p&gt;Why handle document signing manually when you can automate it directly in your .NET application?&lt;/p&gt;

&lt;p&gt;With the Syncfusion &lt;a href="https://www.syncfusion.com/document-sdk/net-word-library" rel="noopener noreferrer"&gt;.NET Word Library&lt;/a&gt;, you can add invisible digital signatures, create visible signature lines, validate signed documents, and manage document revisions using C#.&lt;/p&gt;

&lt;p&gt;Whether you’re building an HR application, contract management system, or enterprise document process, these capabilities help reduce manual steps while maintaining document integrity and auditability.&lt;/p&gt;

&lt;p&gt;Ready to try it in your application? Explore the &lt;a href="https://help.syncfusion.com/document-processing/word/word-library/net/working-with-digital-signature" rel="noopener noreferrer"&gt;digital signature documentation&lt;/a&gt; and download the &lt;a href="https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Digital-Signature" rel="noopener noreferrer"&gt;GitHub samples&lt;/a&gt; to see the complete implementation.&lt;/p&gt;

&lt;p&gt;This feature is available in the Essential Studio &lt;a href="https://www.syncfusion.com/forums/198591/essential-studio-2026-volume-3-main-release-v35-1-37-is-available-for-download" rel="noopener noreferrer"&gt;2026 Volume 3&lt;/a&gt; release. You can also explore the &lt;a href="https://www.syncfusion.com/products/release-history" rel="noopener noreferrer"&gt;Release Notes&lt;/a&gt; and &lt;a href="https://www.syncfusion.com/products/whatsnew" rel="noopener noreferrer"&gt;What’s New pages&lt;/a&gt; for additional updates.&lt;/p&gt;

&lt;p&gt;Existing customers can access the latest version through the &lt;a href="https://www.syncfusion.com/sales/pricing?category=ui-components" rel="noopener noreferrer"&gt;License and Downloads&lt;/a&gt; page. New users can start a &lt;a href="https://www.syncfusion.com/downloads" rel="noopener noreferrer"&gt;30-day free trial&lt;/a&gt; and explore the capabilities of the Syncfusion .NET Word Library.&lt;/p&gt;

&lt;p&gt;If you have questions or feedback, reach out through our &lt;a href="https://www.syncfusion.com/forums" rel="noopener noreferrer"&gt;support forums&lt;/a&gt;, &lt;a href="https://support.syncfusion.com" rel="noopener noreferrer"&gt;support portal&lt;/a&gt;, or &lt;a href="https://www.syncfusion.com/feedback" rel="noopener noreferrer"&gt;feedback portal&lt;/a&gt;. We’re happy to help!&lt;/p&gt;

</description>
      <category>word</category>
      <category>networdlibrary</category>
      <category>documentprocessing</category>
      <category>whatsnew</category>
    </item>
    <item>
      <title>Introducing BoldDocServer: An Office Online Server Alternative for SharePoint Server</title>
      <dc:creator>Jollen Moyani</dc:creator>
      <pubDate>Thu, 12 Nov 2026 17:19:07 +0000</pubDate>
      <link>https://dev.to/syncfusion/introducing-bolddocserver-an-office-online-server-alternative-for-sharepoint-server-1ihc</link>
      <guid>https://dev.to/syncfusion/introducing-bolddocserver-an-office-online-server-alternative-for-sharepoint-server-1ihc</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;  &lt;em&gt;**Syncfusion introduces BoldDocServer&lt;/em&gt;&lt;em&gt;, a new solution for browser-based Word, Excel, and PDF experiences in SharePoint Server. With Office Online Server support ending on **December 31, 2026&lt;/em&gt;&lt;em&gt;, BoldDocServer gives organizations a new option to continue supported document viewing, editing, review, and collaboration while keeping SharePoint as the document repository.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why BoldDocServer, and why now?
&lt;/h2&gt;

&lt;p&gt;December 31, 2026, is becoming an important date for organizations running Office Online Server with SharePoint Server.&lt;/p&gt;

&lt;p&gt;Microsoft support for Office Online Server ends on that date. For teams that depend on browser-based document viewing and editing, the approaching deadline raises a practical question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What happens to those SharePoint document processes next?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Some organizations may choose to change their broader Microsoft architecture. Others may want to continue operating SharePoint Server and replace the browser-based document layer that Office Online Server provided.&lt;/p&gt;

&lt;p&gt;That second scenario is where &lt;a href="https://www.bolddocserver.com/" rel="noopener noreferrer"&gt;BoldDocServer&lt;/a&gt; fits.&lt;/p&gt;

&lt;p&gt;Syncfusion® is introducing BoldDocServer to bring browser-based Word, Excel, and PDF experiences to SharePoint Server through WOPI. Users can work with supported documents from the browser, while SharePoint remains responsible for document storage, permissions, and repository operations.&lt;/p&gt;

&lt;p&gt;Let’s look at what BoldDocServer provides, how it works with SharePoint, and what organizations evaluating their post-Office Online Server strategy should know.&lt;/p&gt;

&lt;h2&gt;
  
  
  Office Online Server support ends December 31, 2026
&lt;/h2&gt;

&lt;p&gt;Office Online Server has long provided browser-based viewing and editing experiences for Microsoft Office documents in supported server environments.&lt;/p&gt;

&lt;p&gt;According to &lt;a href="https://learn.microsoft.com/en-us/lifecycle/products/office-online-server" rel="noopener noreferrer"&gt;Microsoft’s product lifecycle&lt;/a&gt;, Office Online Server reaches the end of support on &lt;strong&gt;December 31, 2026&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That does not mean every existing deployment suddenly stops functioning on January 1, 2027. It does mean organizations relying on Office Online Server need a plan for operating beyond its supported lifecycle.&lt;/p&gt;

&lt;p&gt;For organizations using SharePoint Server, now is the time to consider questions such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Do we intend to continue running SharePoint Server?&lt;/li&gt;
&lt;li&gt;Which browser-based document experiences do our users depend on?&lt;/li&gt;
&lt;li&gt;Do we need Word and Excel editing directly from SharePoint?&lt;/li&gt;
&lt;li&gt;Do users also need PDF viewing and review scenarios?&lt;/li&gt;
&lt;li&gt;Which document permissions and repository processes must remain in SharePoint?&lt;/li&gt;
&lt;li&gt;What replacement or migration path should we validate before the deadline?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Planning early gives teams time to test document behavior, permissions, save-back processes, collaboration, and deployment requirements before Office Online Server reaches retirement.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are the options for SharePoint Server teams?
&lt;/h2&gt;

&lt;p&gt;There is no single path that fits every organization. Teams evaluating Office Online Server retirement may broadly consider the following approaches:&lt;/p&gt;


&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;colgroup&gt;
&lt;col&gt;
&lt;col&gt;
&lt;/colgroup&gt;
&lt;thead&gt;&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;What it means&lt;/th&gt;
&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Keep SharePoint Server and replace the browser document layer&lt;/td&gt;
&lt;td&gt;Continue using SharePoint as the document repository while introducing another solution for supported browser-based viewing and editing.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Move document workloads to Microsoft’s cloud services&lt;/td&gt;
&lt;td&gt;Reevaluate the broader SharePoint and Microsoft 365 architecture and move applicable workloads to supported cloud services.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Continue with the existing environment after support ends&lt;/td&gt;
&lt;td&gt;Keep operating Office Online Server outside its supported lifecycle, with the corresponding operational and support considerations.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;BoldDocServer is designed for the first path:&lt;/strong&gt; Organizations that plan to continue using SharePoint Server while replacing the browser-based document experience provided by Office Online Server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introducing BoldDocServer
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.bolddocserver.com/" rel="noopener noreferrer"&gt;BoldDocServer&lt;/a&gt;&lt;/strong&gt; is a Syncfusion product for browser-based document viewing, editing, review, and collaboration with SharePoint Server. It connects SharePoint with Syncfusion’s document experiences through the Web Application Open Platform Interface (WOPI).&lt;/p&gt;

&lt;p&gt;The responsibilities remain clearly separated:&lt;/p&gt;


&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;colgroup&gt;
&lt;col&gt;
&lt;col&gt;
&lt;/colgroup&gt;
&lt;thead&gt;&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SharePoint Server&lt;/td&gt;
&lt;td&gt;Stores documents, manages permissions, and handles repository operations.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BoldDocServer&lt;/td&gt;
&lt;td&gt;Connects SharePoint to the browser-based document experience through WOPI.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Syncfusion document experiences&lt;/td&gt;
&lt;td&gt;Provide supported Word editing, Excel editing, and PDF viewing and review capabilities.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Collaboration services&lt;/td&gt;
&lt;td&gt;Support applicable collaborative scenarios when enabled and configured.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;p&gt;The important point is that BoldDocServer does not replace SharePoint as the document repository. SharePoint continues to store documents and manage access. BoldDocServer provides the browser-based experience for supported document types.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with Word, Excel, and PDF documents from SharePoint
&lt;/h2&gt;

&lt;p&gt;BoldDocServer brings common enterprise document scenarios into the browser.&lt;/p&gt;

&lt;h3&gt;
  
  
  Edit Word documents
&lt;/h3&gt;

&lt;p&gt;Users can open supported Word files stored in SharePoint through the integrated &lt;a href="https://www.syncfusion.com/docx-editor-sdk" rel="noopener noreferrer"&gt;Syncfusion document editing experience&lt;/a&gt;. They can view and modify supported document content and save supported changes back to SharePoint through the configured WOPI workflow.&lt;/p&gt;

&lt;p&gt;Spell-check functionality can also be used when the required dictionary resources are configured.&lt;/p&gt;

&lt;h3&gt;
  
  
  Work with Excel workbooks
&lt;/h3&gt;

&lt;p&gt;For Excel files, the integrated &lt;a href="https://www.syncfusion.com/spreadsheet-editor-sdk" rel="noopener noreferrer"&gt;Syncfusion Spreadsheet Editor&lt;/a&gt; provides the browser-based workbook experience.&lt;/p&gt;

&lt;p&gt;Users can open workbooks stored in SharePoint, work with supported spreadsheet content, and save supported changes through the configured integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Review PDF documents
&lt;/h3&gt;

&lt;p&gt;PDF document experiences use the integrated &lt;a href="https://www.syncfusion.com/pdf-viewer-sdk" rel="noopener noreferrer"&gt;Syncfusion PDF Viewer&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Users can open PDFs stored in SharePoint and use supported viewing, annotation, and review capabilities without leaving the browser-based workflow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Supported document experiences at a glance
&lt;/h3&gt;


&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;colgroup&gt;
&lt;col&gt;
&lt;col&gt;
&lt;/colgroup&gt;
&lt;thead&gt;&lt;tr&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;Experience&lt;/th&gt;
&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;DOCX, DOC, DOTX, DOCM, DOTM, DOT&lt;/td&gt;
&lt;td&gt;Viewing and editing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;XLSX, XLS, CSV, XLSM, XLSB&lt;/td&gt;
&lt;td&gt;Viewing and editing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PDF&lt;/td&gt;
&lt;td&gt;Viewing and supported annotation and review&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;p&gt;Available operations depend on the corresponding document experience and deployment configuration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Collaborate on document processes
&lt;/h2&gt;

&lt;p&gt;SharePoint document scenarios often involve multiple users. A Word document may move between authors and reviewers. A workbook may need updates from several team members. A PDF may require annotations before approval.&lt;/p&gt;

&lt;p&gt;BoldDocServer supports collaboration for applicable Word, Excel, and PDF experiences when the required collaboration services are enabled and configured. The exact collaboration experience depends on the document type and the capabilities enabled for the deployment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep SharePoint in control of documents and permissions
&lt;/h2&gt;

&lt;p&gt;For organizations already invested in SharePoint Server, an important question is whether replacing the document-editing layer also means changing the way documents are stored or secured.&lt;/p&gt;

&lt;p&gt;With BoldDocServer, &lt;strong&gt;SharePoint remains the document repository and source of document permissions&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;When a document is opened, SharePoint and BoldDocServer communicate through the configured WOPI workflow. The user’s effective access determines whether the document can be edited or should be opened with restricted access.&lt;/p&gt;

&lt;p&gt;For example, when a user does not have permission to modify a document, editing operations can be restricted accordingly. This lets organizations introduce a new browser-based document experience without moving responsibility for document permissions away from SharePoint.&lt;/p&gt;

&lt;h2&gt;
  
  
  How BoldDocServer works with SharePoint
&lt;/h2&gt;

&lt;p&gt;The process can be summarized in five steps.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Select a document
&lt;/h3&gt;

&lt;p&gt;A user chooses a supported document from SharePoint.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Open the document experience
&lt;/h3&gt;

&lt;p&gt;SharePoint initiates the configured WOPI action and opens the corresponding BoldDocServer experience in the browser.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Access the document
&lt;/h3&gt;

&lt;p&gt;BoldDocServer communicates with SharePoint through the configured WOPI workflow to access the file.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. View, edit, or review
&lt;/h3&gt;

&lt;p&gt;The user works with the document through the corresponding Syncfusion document experience. Collaborative editing is available where supported and configured.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Save supported changes
&lt;/h3&gt;

&lt;p&gt;Supported changes are saved back to SharePoint through the configured save-back process.&lt;/p&gt;

&lt;p&gt;A simplified architecture looks like this: SharePoint Server connects through WOPI to BoldDocServer, which serves the DOCX Editor, Spreadsheet Editor and PDF Viewer as a browser-based document experience.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fabty4tmpvgg6nsf62alv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fabty4tmpvgg6nsf62alv.png" alt="How SharePoint and the browser editor work together" width="800" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Throughout the process, SharePoint remains responsible for document storage and permissions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why BoldDocServer matters for SharePoint teams
&lt;/h2&gt;

&lt;p&gt;Office Online Server retirement creates an opportunity to review browser-based document experiences that may have been operating unchanged for years.&lt;/p&gt;

&lt;p&gt;For teams planning to continue with SharePoint Server, that review should answer questions such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which Office Online Server workloads are business-critical?&lt;/li&gt;
&lt;li&gt;Which document types are frequently edited in the browser?&lt;/li&gt;
&lt;li&gt;Which collaboration and review features are required?&lt;/li&gt;
&lt;li&gt;Which SharePoint permission behaviors must remain unchanged?&lt;/li&gt;
&lt;li&gt;How much infrastructure change is acceptable?&lt;/li&gt;
&lt;li&gt;How early should a replacement environment be tested?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;BoldDocServer gives organizations another option when the requirement is to retain SharePoint Server while continuing supported browser-based document experiences.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who should evaluate BoldDocServer?
&lt;/h2&gt;

&lt;p&gt;BoldDocServer is especially relevant to organizations that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Currently use Office Online Server with SharePoint Server.&lt;/li&gt;
&lt;li&gt;Plan to continue using SharePoint Server beyond December 31, 2026.&lt;/li&gt;
&lt;li&gt;Need browser-based Word and Excel editing.&lt;/li&gt;
&lt;li&gt;Need PDF viewing, annotation, or review as part of SharePoint document scenarios.&lt;/li&gt;
&lt;li&gt;Want SharePoint to remain responsible for document storage and permissions.&lt;/li&gt;
&lt;li&gt;Need a WOPI-based browser document experience.&lt;/li&gt;
&lt;li&gt;Want to test a replacement before Office Online Server reaches retirement.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Organizations with business-critical Office Online Server workloads should consider beginning their evaluation well before the deadline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is BoldDocServer a complete replacement for every Office Online Server workload?
&lt;/h2&gt;

&lt;p&gt;Not necessarily. BoldDocServer is specifically designed around SharePoint Server document scenarios involving supported Word, Excel, and PDF experiences.&lt;/p&gt;

&lt;p&gt;If your organization uses Office Online Server with other Microsoft server products or for workloads outside SharePoint, evaluate those dependencies separately as part of your transition plan.&lt;/p&gt;

&lt;p&gt;This distinction helps ensure that migration planning reflects the actual workloads used within your environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start planning before the deadline
&lt;/h2&gt;

&lt;p&gt;December 31, 2026, may still leave some planning time, but enterprise infrastructure changes involve more than installing a replacement product.&lt;/p&gt;

&lt;p&gt;A practical evaluation can follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Inventory your current Office Online Server workloads:&lt;/strong&gt; Identify the SharePoint sites, document types, departments, and business processes that depend on browser-based document access.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Confirm your required document capabilities:&lt;/strong&gt; Separate essential editing, review, and collaboration scenarios from features that are rarely used.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deploy BoldDocServer in a test environment:&lt;/strong&gt; Begin with a test SharePoint farm or test site rather than changing production immediately.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Configure and validate the WOPI integration:&lt;/strong&gt; Verify document opening, permissions, editing, reviewing, and save-back behavior.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test representative Word, Excel, and PDF files:&lt;/strong&gt; Use realistic documents from your organization’s existing scenarios.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validate permissions and multiuser scenarios:&lt;/strong&gt; Test users with different SharePoint permission levels and collaboration requirements.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plan production rollout before Office Online Server retirement:&lt;/strong&gt; Leave enough time for technical validation, security review, user testing, and operational preparation.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The goal should not simply be to replace one server with another. It should be to verify that the document processes your organization depends on continue to operate as expected.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Q1: What is BoldDocServer?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;BoldDocServer is a Syncfusion product that connects SharePoint Server with supported browser-based Word, Excel, and PDF experiences through WOPI. SharePoint continues to manage document storage and permissions.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Q2: Why is Syncfusion introducing BoldDocServer now?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Microsoft Office Online Server reaches the end of support on December 31, 2026. BoldDocServer gives organizations that plan to continue using SharePoint Server another option for supported browser-based document experiences.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Q3: Is BoldDocServer an Office Online Server alternative?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For supported SharePoint Server document viewing, editing, review, and collaboration scenarios, BoldDocServer is designed as an alternative browser-document layer.&lt;/p&gt;

&lt;p&gt;Organizations using Office Online Server for workloads outside SharePoint should evaluate those scenarios separately.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Q4: Which document formats does BoldDocServer support?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;BoldDocServer supports DOCX, DOC, DOTX, DOCM, DOTM, DOT files for Word documents, XLSX, XLS, CSV, XLSM, XLSB files for Excel workbooks, and PDF viewing with supported annotation and review operations.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Q5: Does BoldDocServer replace SharePoint Server?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;No. SharePoint continues to store documents, manage permissions, and handle repository operations. BoldDocServer provides the browser-based document experience through WOPI.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Q6: Can users save documents back to SharePoint?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Yes, supported changes can be saved back to SharePoint through the configured WOPI workflow. Available save operations depend on the document type, supported capabilities, and deployment configuration.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Q7: Does BoldDocServer support collaboration?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;BoldDocServer supports collaboration for applicable document scenarios when the required collaboration services and features are enabled and configured. The exact behavior depends on the document type and deployment configuration.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Q8: When does Office Online Server support end?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Microsoft lists December 31, 2026 as the retirement date for Office Online Server.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Q9: When should organizations begin evaluating a replacement?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Organizations that rely on Office Online Server should begin evaluating their options before the retirement date so they have enough time to inventory document scenarios, test documents, validate SharePoint permissions and WOPI integration, and prepare for production rollout.&lt;/p&gt;

&lt;h2&gt;
  
  
  Explore BoldDocServer
&lt;/h2&gt;

&lt;p&gt;Office Online Server support ends on &lt;strong&gt;December 31, 2026&lt;/strong&gt;, but organizations do not need to wait until the deadline to decide what comes next.&lt;/p&gt;

&lt;p&gt;BoldDocServer gives SharePoint Server teams a new option for browser-based Word, Excel, and PDF experiences while keeping SharePoint at the center of document storage and permissions.&lt;/p&gt;

&lt;p&gt;If your organization expects to continue using SharePoint Server after Office Online Server retires, now is a good time to evaluate your document requirements and test your transition plan.&lt;/p&gt;

&lt;p&gt;Explore &lt;a href="https://www.bolddocserver.com/" rel="noopener noreferrer"&gt;BoldDocServer&lt;/a&gt;, &lt;a href="https://www.bolddocserver.com/downloads/confirm/" rel="noopener noreferrer"&gt;start a free trial&lt;/a&gt;, and follow the &lt;a href="https://docs.bolddocserver.com/quick-start.html" rel="noopener noreferrer"&gt;Quick Start&lt;/a&gt; and &lt;a href="https://docs.bolddocserver.com/sharepoint-integration.html" rel="noopener noreferrer"&gt;SharePoint Integration&lt;/a&gt; guides to evaluate it with your SharePoint environment.&lt;/p&gt;

</description>
      <category>sharepoint</category>
      <category>syncfusion</category>
      <category>bolddocserver</category>
      <category>documentcollaboration</category>
    </item>
    <item>
      <title>A Who's Who and a What's What of GDPR</title>
      <dc:creator>Jollen Moyani</dc:creator>
      <pubDate>Thu, 12 Nov 2026 05:00:00 +0000</pubDate>
      <link>https://dev.to/syncfusion/a-whos-who-and-a-whats-what-of-gdpr-1d1f</link>
      <guid>https://dev.to/syncfusion/a-whos-who-and-a-whats-what-of-gdpr-1d1f</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;em&gt;GDPR affects any organization that collects or processes personal data from individuals in the EU. This article introduces the key GDPR concepts, including personal data, anonymized data, and special category data, while explaining the roles of data controllers, processors, data subjects, DPOs, and GDPR representatives. It provides a practical foundation for understanding how modern data protection regulations work and why compliance matters.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The General Data Protection Regulation (GDPR) is the European Union’s comprehensive law that sets strict rules for how organizations collect, use, and protect EU citizens’ personal data, regardless of where the organization is based. It establishes individual rights, mandates accountability, and turns data privacy from a best practice into a legal obligation with global reach.&lt;/p&gt;

&lt;p&gt;“Who’s Who and a What’s What of GDPR” refers to understanding who the key roles are in the General Data Protection Regulation, such as data subjects, controllers, and processors, and what the important GDPR concepts are, like personal data, anonymized data, and more.&lt;/p&gt;

&lt;h2&gt;
  
  
  What’s What: Key Concepts
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Personal Data
&lt;/h3&gt;

&lt;p&gt;Personal data is any information that relates to an individual who can be directly or indirectly identified. Names, email addresses, credit card numbers, date of birth, etcetera are probably the first that come to mind when you think of the definition of personal data. However, location information, such as IP address, or other online identifiers, such as cookie ID, can also be personal data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Anonymized Data
&lt;/h3&gt;

&lt;p&gt;Anonymized data is personal data that, through the use of technology, has been rendered anonymous so that it is no longer possible to identify an individual through the data, either directly or indirectly, or in combination with other data.&lt;/p&gt;

&lt;p&gt;Anonymized data is not personal data and is therefore not covered by the GDPR -provided that the personal data has been anonymized in accordance with the three criteria laid down by the European Data Protection Authorities.&lt;/p&gt;

&lt;h3&gt;
  
  
  Special Category Data
&lt;/h3&gt;

&lt;p&gt;GDPR classifies the following types of personal data as potentially more sensitive and provides them with additional protection:&lt;/p&gt;

&lt;p&gt;The special categories of personal data are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Personal data about racial or ethnic origin.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Personal data about political opinions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Personal data about religious or philosophical beliefs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Personal data about trade union membership.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Genetic data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Biometric data (where used for identification purposes)—this could be data such as fingerprints or retina scans.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Data concerning health.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These types of personal data merit specific protection and must be handled with greater care, as using them could create significant risks to an individual’s fundamental rights and freedoms or expose them to discrimination.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who’s Who: Key Roles
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Data Controller
&lt;/h3&gt;

&lt;p&gt;The data controller determines the purposes for which and how personal data is processed. So, if your company or organization decides why and how the personal data should be processed, it is the data controller. Employees process personal data within your organization to fulfill their tasks as data controllers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Data Processor
&lt;/h3&gt;

&lt;p&gt;A data processor is the individual (other than an employee of the controller) or the legal person that carries out processing activities, on behalf of and in accordance with the controller’s instructions. In other words, the data controller can provide personal data to the data processor to carry out such processing activities on its behalf. A legal agreement governs arrangements between the data controller and the data processor.&lt;/p&gt;

&lt;h3&gt;
  
  
  Data Subject
&lt;/h3&gt;

&lt;p&gt;A data subject is any individual whose personal data is being collected, processed, or stored. This could include names, email addresses, ID numbers, IP addresses, biometric data, and anything else covered under GDPR’s definition of personal data. Under regulations like GDPR, the data subject is the individual the data refers to and is central to modern data protection laws.&lt;/p&gt;

&lt;h3&gt;
  
  
  Data Protection Officer
&lt;/h3&gt;

&lt;p&gt;Some data controllers must have a Data Protection Officer (DPO), while others choose to appoint a DPO (or an assigned individual) to handle data protection matters on their behalf. Individuals can also contact the DPO with data protection queries or concerns. If a company has no DPO, other people in the company will address any data protection queries or concerns on behalf of the data controller. Note that these individuals are not data controllers themselves; they are acting on behalf of the data controller.&lt;/p&gt;

&lt;h2&gt;
  
  
  GDPR Representative
&lt;/h2&gt;

&lt;p&gt;If you do not have an office in the EU/EEA but still process data from individuals based in the EU/EEA, then you still need to comply with the GDPR regarding your data processing, and the GDPR requires you to appoint a representative. This representative must be based in an EU or EEA state where some of the individuals whose personal data you process are located.&lt;/p&gt;

&lt;p&gt;You must authorize the representative in writing to act on your behalf for GDPR compliance. Be aware that a Data Representative is not a Data Protection Officer (DPO). It has a distinct role with its own responsibilities. The representative’s role is to ensure that you comply with the GDPR by enabling communication with individuals in Europe and European data protection authorities.&lt;/p&gt;

&lt;p&gt;You should provide details of your representative to EEA-based individuals whose personal data you process, typically by including the contact details in your privacy policy. The representative must also be able to act on your behalf with European data protection authorities.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;As we’ve explored, GDPR is more than just a set of rules; it’s a fundamental shift in how we approach data protection. It empowers individuals, holds organizations accountable, and aims to create a safer digital environment for all of us. Whether you’re an individual concerned about your privacy or a business striving for compliance, understanding GDPR is crucial in today’s data-driven world.&lt;/p&gt;

&lt;p&gt;GDPR compliance is an ongoing journey. It requires continuous attention, adaptation, and improvement. But by embracing its principles and implementing robust data protection practices, we can all contribute to a digital landscape where personal data is respected and protected.&lt;/p&gt;

</description>
      <category>dataprivacy</category>
      <category>gdpr</category>
      <category>compliance</category>
      <category>dataprotection</category>
    </item>
    <item>
      <title>Generate PDF Tables in JavaScript (PDF Grid) Using Syncfusion PDF Library</title>
      <dc:creator>Rajeshwari Pandinagarajan</dc:creator>
      <pubDate>Tue, 10 Nov 2026 15:30:00 +0000</pubDate>
      <link>https://dev.to/syncfusion/generate-pdf-tables-in-javascript-pdf-grid-using-syncfusion-pdf-library-4714</link>
      <guid>https://dev.to/syncfusion/generate-pdf-tables-in-javascript-pdf-grid-using-syncfusion-pdf-library-4714</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;em&gt;Working with PDF tables in JavaScript involves handling dynamic data, formatting, and pagination. The new PDF Grid feature in Syncfusion JavaScript PDF Library provides a structured API with data binding, custom styling, hyperlinks, nested tables, and automatic pagination. Learn how to use these capabilities for invoices, reports, and other data-driven documents.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Creating a PDF table involves more than arranging data into rows and columns. Consider generating an invoice with customer details, product information, tax calculations, and payment summaries. A simple table might be enough initially. But what happens when the invoice spans multiple pages, requires different cell styles, or includes links to related documents?&lt;/p&gt;

&lt;p&gt;These requirements make PDF table generation more than a simple formatting task. Developers also need to manage layout, content, and pagination.&lt;/p&gt;

&lt;p&gt;To simplify this process, Syncfusion® introduced the new PDF Grid feature in its &lt;a href="https://www.syncfusion.com/document-sdk/javascript-pdf-library" rel="noopener noreferrer"&gt;JavaScript PDF Library&lt;/a&gt; with &lt;a href="https://help.syncfusion.com/common/essential-studio/release-notes/v35.1.37" rel="noopener noreferrer"&gt;Essential Studio 2026 Volume 3&lt;/a&gt;. It provides a structured API for generating and customizing PDF tables.&lt;/p&gt;

&lt;p&gt;In this guide, you’ll learn how to generate PDF tables from application data, customize their appearance, add interactive elements, and manage large datasets and multi-page layouts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why PDF tables matter
&lt;/h2&gt;

&lt;p&gt;Most business applications eventually need to generate documents that contain structured data. Whether you’re exporting information for customers, internal teams, or compliance purposes, tables are often the easiest way to present large amounts of information clearly.&lt;/p&gt;

&lt;p&gt;Common examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Invoices showing products, pricing, taxes, and totals.&lt;/li&gt;
&lt;li&gt;Financial reports containing transactions and budget data.&lt;/li&gt;
&lt;li&gt;Order summaries with shipment and payment information.&lt;/li&gt;
&lt;li&gt;Inventory reports for stock monitoring and auditing.&lt;/li&gt;
&lt;li&gt;Operational reports generated from business systems.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  PDF Grid feature
&lt;/h2&gt;

&lt;p&gt;The Syncfusion JavaScript PDF Library now includes the PDF Grid feature, which provides a structured API for generating and customizing PDF tables. It supports data binding, custom styling, hyperlinks, nested tables, and automatic pagination, helping developers create tables for invoices, reports, and other data-driven PDF documents without manually managing every layout detail.&lt;/p&gt;

&lt;p&gt;By handling these common table-generation requirements through a structured API, PDF Grid reduces the need for manual layout management and simplifies the process of creating complex PDF tables.&lt;/p&gt;

&lt;p&gt;With PDF Grid, you can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generate tables directly from application data.&lt;/li&gt;
&lt;li&gt;Define rows and columns manually when needed.&lt;/li&gt;
&lt;li&gt;Apply built-in styling to improve readability.&lt;/li&gt;
&lt;li&gt;Add hyperlinks and images to table cells.&lt;/li&gt;
&lt;li&gt;Create nested tables for hierarchical information.&lt;/li&gt;
&lt;li&gt;Automatically paginate large datasets.&lt;/li&gt;
&lt;li&gt;Handle tables that exceed page width.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These capabilities are particularly useful when building invoices, reports, statements, audit logs, and other document-heavy business applications.&lt;/p&gt;

&lt;h2&gt;
  
  
  Generate PDF tables from data
&lt;/h2&gt;

&lt;p&gt;In most applications, the data already exists in APIs, databases, or business objects. The real challenge is transforming that data into a readable PDF without manually creating every row and cell.&lt;/p&gt;

&lt;p&gt;PDF Grid allows you to bind data directly to a table structure, making it easier to generate consistent reports from changing application data.&lt;/p&gt;

&lt;p&gt;For example, if you’re generating a customer report every day, the table structure remains the same while the underlying data changes. Instead of rebuilding the layout each time, you simply supply updated data and regenerate the document.&lt;/p&gt;

&lt;h3&gt;
  
  
  Configure the PDF Library
&lt;/h3&gt;

&lt;p&gt;Before generating PDF tables, add the Syncfusion &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/overview" rel="noopener noreferrer"&gt;JavaScript PDF Library&lt;/a&gt; to your application.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 1: Add the CDN reference
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
  &lt;span class="c"&gt;&amp;lt;!-- JavaScript PDF Library (CDN) --&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://cdn.syncfusion.com/ej2/35.1.37/dist/ej2.min.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; PDF Grid is available starting from Syncfusion Essential Studio 2026 Volume 3. Ensure you are using the corresponding Syncfusion JavaScript PDF Library version or later before running the examples in this article.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 2: Serve the application
&lt;/h4&gt;

&lt;p&gt;Run your project using a local web server, such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx serve
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 3: Start creating PDF documents
&lt;/h4&gt;

&lt;p&gt;Once the library is loaded, you can access the &lt;strong&gt;ej.pdf&lt;/strong&gt; namespace to create PDF documents and generate PDF tables directly in the browser.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Create a new PDF document&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;pdfDocument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Add a page&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create the data source&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;dataSource&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'E01'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Clay'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'E02'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Thomas'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Define the column mappings&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Employee ID'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'name'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Employee Name'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;140&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create and draw the grid&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfGrid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dataSource&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;draw&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Save and close the document&lt;/span&gt;
&lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Output.pdf'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;destroy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6meyobc9fv5ho5pf8s60.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6meyobc9fv5ho5pf8s60.png" alt="Creating a PDF table using JavaScript PDF Library" width="799" height="377"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Creating a PDF table using JavaScript PDF Library&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Generate customer invoices
&lt;/h2&gt;

&lt;p&gt;Consider an order management application that generates PDF invoices.&lt;/p&gt;

&lt;p&gt;Each invoice may contain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Customer information&lt;/li&gt;
&lt;li&gt;Product line items&lt;/li&gt;
&lt;li&gt;Quantities and pricing&lt;/li&gt;
&lt;li&gt;Discounts and taxes&lt;/li&gt;
&lt;li&gt;Payment summaries&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While a small invoice may fit on a single page, larger orders can span multiple pages and include dozens of rows.&lt;/p&gt;
&lt;h2&gt;
  
  
  Apply built-in styles
&lt;/h2&gt;

&lt;p&gt;Good table design isn’t just about appearance. Clear formatting helps users process information faster and reduces errors when reviewing reports or invoices.&lt;/p&gt;

&lt;p&gt;Rather than manually styling every element, you can apply built-in styles that format headers, rows, borders, and colors consistently across your document.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Create a new PDF document&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;pdfDocument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Add a page to the document&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create the data source&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;source&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'E01'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Clay'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'E02'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Thomas'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Define columns&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'ID'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'name'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Name'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create grid with a built-in style applied&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfGrid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;builtInStyle&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfGridBuiltinStyle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gridTable4Accent1&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Draw the grid on the page&lt;/span&gt;
&lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;draw&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Save the document as Output.pdf&lt;/span&gt;
&lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Output.pdf'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Dispose of the document resources&lt;/span&gt;
&lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;destroy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Refer to the following image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F91if0fbej13l4ump5bds.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F91if0fbej13l4ump5bds.png" alt="Creating PDF table using built-in styles" width="800" height="368"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Creating PDF table using built-in styles&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Customize PDF Tables
&lt;/h2&gt;

&lt;p&gt;Every document has different presentation requirements.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Financial reports often require precise alignment.&lt;/li&gt;
&lt;li&gt;Inventory reports may use conditional formatting.&lt;/li&gt;
&lt;li&gt;Internal dashboards may include images and visual indicators.&lt;/li&gt;
&lt;li&gt;Customer-facing documents often follow company branding guidelines.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;PDF Grid provides customization options for rows, columns, and individual cells, allowing you to tailor table layouts without manually drawing PDF content.&lt;/p&gt;

&lt;p&gt;Additional customization features include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Row and column spanning&lt;/li&gt;
&lt;li&gt;Custom cell formatting&lt;/li&gt;
&lt;li&gt;Image insertion within cells&lt;/li&gt;
&lt;li&gt;Table-wide styling options&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The following example customizes column widths, text alignment, row height, and cell styling:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Create the data source&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;source&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'E01'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'John'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'E02'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Thomas'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Define columns with alignment and width settings&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Employee ID'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;textProperties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="c1"&gt;// Center horizontally and vertically&lt;/span&gt;
            &lt;span class="n"&gt;horizontalAlignment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfTemplateHorizontalAlignment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;center&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;verticalAlignment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfTemplateVerticalAlignment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;middle&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'name'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Employee Name'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;150&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create grid from data source and columns&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfGrid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Customize the first row: set height to 50&lt;/span&gt;
&lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getRow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;height&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Apply style to the first row&lt;/span&gt;
&lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getRow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;style&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Set light yellow background&lt;/span&gt;
    &lt;span class="n"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfBrush&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;255&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;255&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;textProperties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// Set courier font with size 10&lt;/span&gt;
        &lt;span class="n"&gt;font&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfStandardFont&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfFontFamily&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;courier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="c1"&gt;// Set text color to blue&lt;/span&gt;
        &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfBrush&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;255&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5teow5r1nxyxi9rphng6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5teow5r1nxyxi9rphng6.png" alt="Creating PDF tables using customization options" width="800" height="381"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Creating PDF tables using customization options&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Add hyperlinks to PDF tables
&lt;/h2&gt;

&lt;p&gt;PDF documents often serve as more than static reports. In many cases, users need quick access to related resources, product pages, downloadable files, or internal documentation.&lt;/p&gt;

&lt;p&gt;Instead of forcing users to copy and paste URLs manually, you can embed hyperlinks directly inside table cells and create a more interactive document experience.&lt;/p&gt;

&lt;p&gt;The following example adds hyperlinks to PDF table cells:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Create a new PDF document&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;pdfDocument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Add a page to the document&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Define column widths&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;widths&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;130&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;180&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create rows with hyperlinks&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Product page'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="c1"&gt;// Cell with external link&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Syncfusion'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;link&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfLinkType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;externalLink&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'https://www.syncfusion.com'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Report'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="c1"&gt;// Cell with file link&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Open file'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;link&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfLinkType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Report.pdf'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create grid with 2 columns&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfGrid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;widths&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Draw the grid on the page&lt;/span&gt;
&lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;draw&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Save the document as Output.pdf&lt;/span&gt;
&lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Output.pdf'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Dispose of the document resources&lt;/span&gt;
&lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;destroy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; File links require the target file to be available at the specified path when the PDF is opened.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1m45nqy1qujxhy3yp9a5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1m45nqy1qujxhy3yp9a5.png" alt="Adding hyperlinks in PDF tables using JavaScript PDF Grid" width="800" height="387"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Adding hyperlinks in PDF tables using JavaScript PDF Grid&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Create nested PDF tables
&lt;/h2&gt;

&lt;p&gt;Not all data fits neatly into a flat table structure.&lt;/p&gt;

&lt;p&gt;Imagine generating a sales report where each order contains multiple products. Trying to represent that information on a single table can quickly become difficult to read.&lt;/p&gt;

&lt;p&gt;Nested PDF tables make these scenarios easier by allowing related data to remain grouped together. This approach works especially well for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Invoice line items&lt;/li&gt;
&lt;li&gt;Order details&lt;/li&gt;
&lt;li&gt;Product breakdowns&lt;/li&gt;
&lt;li&gt;Project task hierarchies&lt;/li&gt;
&lt;li&gt;Parent-child business records&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Refer to the following code example.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Create a new PDF document&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;pdfDocument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Add a page to the document&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create the nested grid (inner table)&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;childGridWidths&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;childGridRows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Product'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Quantity'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Keyboard'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'2'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Mouse'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'1'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create the nested grid instance&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;childGrid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfGrid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;childGridWidths&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;childGridRows&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create the parent grid (outer table)&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;parentWidths&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;parentRows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Order details'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="c1"&gt;// Embed the nested grid as a cell value&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;childGrid&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create the parent grid instance&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;parentGrid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfGrid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;parentWidths&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;parentRows&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Draw the parent grid (which includes the nested grid)&lt;/span&gt;
&lt;span class="n"&gt;parentGrid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;draw&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Save the document as Output.pdf&lt;/span&gt;
&lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Output.pdf'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Dispose of the document resources&lt;/span&gt;
&lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;destroy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnotcxtkl8pl2t0uwjltr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnotcxtkl8pl2t0uwjltr.png" alt="Creating nested tables using JavaScript PDF Grid" width="800" height="377"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Creating nested tables using JavaScript PDF Grid&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Want to build advanced table layouts? Learn more about nested PDF tables in the PDF Grid &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/tables#add-a-nested-table" rel="noopener noreferrer"&gt;documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Handle large PDF tables
&lt;/h2&gt;

&lt;p&gt;Generating a PDF is often easy.&lt;/p&gt;

&lt;p&gt;Generating a PDF that remains readable when it contains hundreds of rows or dozens of columns is where things become challenging.&lt;/p&gt;

&lt;p&gt;Large reports typically create two common problems:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The table exceeds the page width.&lt;/li&gt;
&lt;li&gt;The table exceeds the page height.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The new JavaScript PDF Grid includes features for both scenarios, helping developers avoid manual layout calculations.&lt;/p&gt;
&lt;h3&gt;
  
  
  Manage table width
&lt;/h3&gt;

&lt;p&gt;Business reports often contain many columns, especially when displaying analytics, inventory data, or operational metrics.&lt;/p&gt;

&lt;p&gt;Rather than shrinking all content until it becomes unreadable, PDF Grid provides multiple &lt;a href="https://ej2.syncfusion.com/documentation/api/pdf/pdfgridhorizontaloverflowtype" rel="noopener noreferrer"&gt;overflow modes&lt;/a&gt; that allow wide tables to continue across additional pages.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;onePage (default)&lt;/strong&gt;: Fits all columns within the available page width by scaling the table to a single page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;nextPage&lt;/strong&gt; : Moves overflowing columns to subsequent pages while maintaining row correspondence across pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;lastPage&lt;/strong&gt; : Groups all overflowing columns and renders them together on a single continuation page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This flexibility helps you display wide datasets without manually splitting tables or adjusting column layouts.&lt;/p&gt;

&lt;p&gt;The following example moves overflowing columns to additional pages when the table exceeds the available page width:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Create a new PDF document&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;pdfDocument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Add the first page&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;firstPage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create the grid&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfGrid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nf"&gt;createEmployeeRows&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nf"&gt;createEmployeeColumns&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Enable horizontal overflow to the next page&lt;/span&gt;
&lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;horizontalOverflow&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfGridHorizontalOverflowType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nextPage&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Repeat header rows on overflow pages&lt;/span&gt;
&lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;repeatHeader&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Configure pagination settings&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;format&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfLayoutFormat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;layout&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfLayoutType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;paginate&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;break&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfLayoutBreakType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fitPage&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Draw the grid&lt;/span&gt;
&lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;draw&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;firstPage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;format&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Save the document&lt;/span&gt;
&lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Output.pdf'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Dispose resources&lt;/span&gt;
&lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;destroy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;createEmployeeColumns&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'employeeId'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Employee ID'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;75&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'firstName'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'First Name'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'lastName'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Last Name'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'department'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Department'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'designation'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Designation'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'email'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Email Address'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;150&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'phone'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Phone Number'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'city'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'City'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'state'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'State'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'country'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Country'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;75&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="c1"&gt;// Additional employee columns can be added here.&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;createEmployeeRows&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rowCount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;employeeId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'EMP0001'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;firstName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Arun'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;lastName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Kumar'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;department&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Engineering'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;designation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Software Engineer'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'arun.kumar@example.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;phone&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'+91 90000 10001'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Chennai'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Tamil Nadu'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;country&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'India'&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="c1"&gt;// Additional employee records can be added here.&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fwww.syncfusion.com%2Fblogs%2Fimages%2Fposts%2Fgenerate-pdf-table-in-javascript%2Fpdf-grid-overflow.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fwww.syncfusion.com%2Fblogs%2Fimages%2Fposts%2Fgenerate-pdf-table-in-javascript%2Fpdf-grid-overflow.gif" alt="Text overflow option in JavaScript PDF Grid" width="560" height="267"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;Text overflow option in JavaScript PDF Grid&lt;p&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Enable automatic pagination
&lt;/h3&gt;

&lt;p&gt;Manually managing page breaks is one of the most frustrating parts of PDF generation.&lt;/p&gt;

&lt;p&gt;When reports contain hundreds or thousands of rows, developers often need to calculate page boundaries and repeat headers manually.&lt;/p&gt;

&lt;p&gt;PDF Grid can automatically paginate tables while preserving readability and optionally repeat headers on continuation pages.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Create a new PDF document&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;pdfDocument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Add the first page&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create a large data source with 100 employee records&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;source&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'E'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Employee '&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Define columns with widths&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'ID'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'name'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headerText&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Name'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;160&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create grid from data source and columns&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfGrid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Enable header repetition on continuation pages&lt;/span&gt;
&lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;repeatHeader&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create a layout format for pagination&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;format&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfLayoutFormat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Set layout type to paginate (flow across pages)&lt;/span&gt;
&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;layout&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfLayoutType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;paginate&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Set break type to fit entire page&lt;/span&gt;
&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;break&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfLayoutBreakType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fitPage&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Draw grid with pagination across multiple pages&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;draw&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Save the document as Output.pdf&lt;/span&gt;
&lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Output.pdf'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Dispose of the document resources&lt;/span&gt;
&lt;span class="n"&gt;pdfDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;destroy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Tips for large PDF reports
&lt;/h2&gt;

&lt;p&gt;When generating large PDF reports, a few practices can improve maintainability and readability:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use data binding when generating tables from APIs or databases.&lt;/li&gt;
&lt;li&gt;Enable header repetition for multi-page reports.&lt;/li&gt;
&lt;li&gt;Use nested tables only when hierarchical data is required.&lt;/li&gt;
&lt;li&gt;Apply consistent styling to improve report readability.&lt;/li&gt;
&lt;li&gt;Let pagination features handle page breaks instead of manually splitting datasets.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Want to explore PDF Grid before implementing it in your application?&lt;/p&gt;

&lt;p&gt;Check out the interactive &lt;a href="https://document.syncfusion.com/demos/document-library/javascript/#/tailwind3/pdf/grid-drawing.html" rel="noopener noreferrer"&gt;demo&lt;/a&gt; to see how the Syncfusion JavaScript PDF Library generates and customizes PDF tables.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can I create PDF tables manually without using a data source?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Absolutely. PDF Grid allows you to build tables manually by defining columns, headers, and rows in code. This approach is ideal when you need full control over the table structure or when your data isn’t available as a collection.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I add multiple PDF tables to the same page?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. You can render multiple PDF tables on a single page. PDF Grid provides layout information after each table is drawn, making it easy to position additional tables without overlapping existing content.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I merge cells in a PDF table?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. PDF Grid supports both row and column spanning, allowing you to merge cells and create more advanced layouts for grouped information, summary sections, invoices, and custom reports.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I insert images into PDF table cells?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. Images can be added directly to table cells, with control over size, alignment, and fit mode. This makes it easy to create product catalogs, employee directories, inventory reports, and other visually rich PDF documents.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How can I create borderless PDF tables in JavaScript?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;PDF Grid supports borderless table layouts by applying a zero-width border style at the grid level. This is useful when you want data to remain organized in rows and columns without displaying visible table borders.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I prevent table rows from splitting across multiple PDF pages?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. By using &lt;strong&gt;PdfLayoutBreakType.fitElement&lt;/strong&gt; , you can keep an entire row together on the same page. If a row doesn’t fit in the remaining space, it’s automatically moved to the next page, helping preserve readability and create more professional-looking documents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Simplify PDF table generation
&lt;/h2&gt;

&lt;p&gt;PDF Grid simplifies PDF table generation in &lt;a href="https://www.syncfusion.com/document-sdk/javascript-pdf-library" rel="noopener noreferrer"&gt;JavaScript&lt;/a&gt; by providing built-in support for data binding, styling, hyperlinks, nested tables, overflow handling, and pagination. Whether you’re creating invoices, reports, financial documents, or application exports, it helps you build professional PDF tables with less manual layout code and a consistent document structure.&lt;/p&gt;

&lt;p&gt;If you’re evaluating approaches for PDF table generation in JavaScript, exploring the available &lt;a href="https://document.syncfusion.com/demos/document-library/javascript/#/tailwind3/pdf/grid-drawing.html" rel="noopener noreferrer"&gt;examples&lt;/a&gt; and &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/tables" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; can be a useful next step before implementing it in production applications.&lt;/p&gt;

&lt;p&gt;This feature is available in our &lt;a href="https://www.syncfusion.com/forums/198591/essential-studio-2026-volume-3-main-release-v35-1-37-is-available-for-download" rel="noopener noreferrer"&gt;2026 Volume 3&lt;/a&gt; release. You can also explore the &lt;a href="https://help.syncfusion.com/common/essential-studio/release-notes/v35.1.37" rel="noopener noreferrer"&gt;Release Notes&lt;/a&gt; and &lt;a href="https://www.syncfusion.com/products/whatsnew" rel="noopener noreferrer"&gt;What’s New&lt;/a&gt; pages for additional details.&lt;/p&gt;

&lt;p&gt;Existing customers can access these features through the &lt;a href="https://www.syncfusion.com/sales/pricing" rel="noopener noreferrer"&gt;License and Downloads&lt;/a&gt; page. New users can start a 30-day &lt;a href="https://www.syncfusion.com/downloads/" rel="noopener noreferrer"&gt;free trial&lt;/a&gt; to explore these features.&lt;/p&gt;

&lt;p&gt;For queries, you can contact us through our &lt;a href="https://www.syncfusion.com/forums" rel="noopener noreferrer"&gt;support forums&lt;/a&gt;, &lt;a href="https://support.syncfusion.com/" rel="noopener noreferrer"&gt;support portal&lt;/a&gt;, or &lt;a href="https://www.syncfusion.com/feedback" rel="noopener noreferrer"&gt;feedback portal&lt;/a&gt;. We are always happy to assist you!&lt;/p&gt;

&lt;h2&gt;
  
  
  Related blogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.syncfusion.com/blogs/post/syncfusion-essential-studio-2026-vol-3" rel="noopener noreferrer"&gt;What’s New in Syncfusion Essential Studio 2026 Volume 3: A2UI, New JavaScript Document Libraries, and More&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.syncfusion.com/blogs/post/pdf-signature-validation-javascript" rel="noopener noreferrer"&gt;How to Validate PDF Digital Signatures in JavaScript with Timestamps and Long-Term Validation (LTV)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.syncfusion.com/blogs/post/how-to-compare-pdf-documents-in-javascript-using-syncfusion-pdf-viewer" rel="noopener noreferrer"&gt;How to Compare PDF Documents in JavaScript Using Syncfusion PDF Viewer&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.syncfusion.com/blogs/post/document-processing-2026-volume-3-update" rel="noopener noreferrer"&gt;Syncfusion Document SDKs 2026 Volume 3: New JavaScript Libraries and Faster Excel Processing&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>javascript</category>
      <category>pdf</category>
      <category>web</category>
      <category>whatsnew</category>
    </item>
    <item>
      <title>Build AI-Powered PDF Workflows in .NET MAUI with Smart PDF Viewer</title>
      <dc:creator>Rajeshwari Pandinagarajan</dc:creator>
      <pubDate>Fri, 06 Nov 2026 07:30:00 +0000</pubDate>
      <link>https://dev.to/syncfusion/build-ai-powered-pdf-workflows-in-net-maui-with-smart-pdf-viewer-j75</link>
      <guid>https://dev.to/syncfusion/build-ai-powered-pdf-workflows-in-net-maui-with-smart-pdf-viewer-j75</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;em&gt;Want to make PDF workflows smarter in your .NET MAUI applications? The Syncfusion Smart PDF Viewer brings AI-powered document summarization, question answering, sensitive data redaction, and automatic form filling into one component. In this blog, learn how to integrate these features using Azure OpenAI and build more efficient document experiences across Android, iOS, macOS, and Windows.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Working with PDFs often involves more than just viewing documents. You may need to find specific information, remove sensitive details, or fill out forms. Doing all this manually can take time, especially when working with large documents.&lt;/p&gt;

&lt;h2&gt;
  
  
  What if your application could help users complete these tasks with AI?
&lt;/h2&gt;

&lt;p&gt;The Syncfusion® &lt;a href="https://www.syncfusion.com/pdf-viewer-sdk/ai-powered-net-maui-pdf-viewer" rel="noopener noreferrer"&gt;AI-Powered .NET MAUI Smart PDF Viewer&lt;/a&gt;, introduced in &lt;a href="https://help.syncfusion.com/common/essential-studio/release-notes/v35.1.37" rel="noopener noreferrer"&gt;Essential Studio 2026 Volume 3&lt;/a&gt;, makes this possible. It extends the PDF viewing experience with three AI-powered features: &lt;a href="https://help.syncfusion.com/document-processing/pdf/smart-pdf-viewer/maui/document-summarizer" rel="noopener noreferrer"&gt;AI Assistant&lt;/a&gt;, &lt;a href="https://help.syncfusion.com/document-processing/pdf/smart-pdf-viewer/maui/smart-redaction" rel="noopener noreferrer"&gt;Smart Redaction&lt;/a&gt;, and &lt;a href="https://help.syncfusion.com/document-processing/pdf/smart-pdf-viewer/maui/smart-fill" rel="noopener noreferrer"&gt;Smart Form Fill&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;With these features, users can summarize documents, ask questions, identify sensitive information, and fill out PDF forms with less manual effort.&lt;/p&gt;

&lt;p&gt;In this blog, we’ll explore these features and learn how to integrate the Smart PDF Viewer into a .NET MAUI application using Azure OpenAI.&lt;/p&gt;

&lt;h2&gt;
  
  
  What can you do with the .NET MAUI Smart PDF Viewer?
&lt;/h2&gt;

&lt;p&gt;Imagine you’re building a customer onboarding application. Users need to review agreements, check customer details, and complete PDF forms before submitting them.&lt;/p&gt;

&lt;p&gt;Instead of handling each task manually, you can use the Smart PDF Viewer to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Understand documents:&lt;/strong&gt; Generate summaries and ask questions about PDF content.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Protect sensitive information:&lt;/strong&gt; Find details such as names, email addresses, and phone numbers that need to be redacted.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Complete PDF forms:&lt;/strong&gt; Extract information from copied content and fill in the matching form fields.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All these capabilities are available within the same PDF viewing experience.&lt;/p&gt;

&lt;p&gt;Let’s look at each feature in detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Understand lengthy documents with the AI Assistant
&lt;/h2&gt;

&lt;p&gt;Have you ever opened a lengthy PDF just to find one specific piece of information? Searching through every page can be frustrating.&lt;/p&gt;

&lt;p&gt;The built-in &lt;a href="https://help.syncfusion.com/document-processing/pdf/smart-pdf-viewer/maui/document-summarizer" rel="noopener noreferrer"&gt;AI Assistant&lt;/a&gt; makes this easier. Users can generate a summary of a PDF, ask questions about its content, and explore suggested prompts.&lt;/p&gt;

&lt;p&gt;For example, when reviewing a business report, users can ask questions such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;What are the key findings in this report?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Summarize the main points.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What are the important dates mentioned in this document?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The AI Assistant analyzes the document and provides relevant responses, helping users find information without reading every page.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5jkx1wn3nmgu6w3fq36j.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5jkx1wn3nmgu6w3fq36j.gif" alt="AI Assistant summarizing PDF content"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;AI Assistant for PDF summarization&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key capabilities include:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Generate concise summaries of lengthy documents.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ask questions and get answers based on document content.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Explore suggested prompts to learn more about the document.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Understand reports, contracts, research papers, and technical documents more easily.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This feature is useful whenever users need to understand large amounts of information quickly.&lt;/p&gt;
&lt;h2&gt;
  
  
  2. Find and protect sensitive information with Smart Redaction
&lt;/h2&gt;

&lt;p&gt;PDF documents often contain information that shouldn’t be shared with everyone. This could include customer details, financial information, or personal identifiers.&lt;/p&gt;

&lt;p&gt;Finding all these details manually can take time, particularly when a document contains many pages.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://help.syncfusion.com/document-processing/pdf/smart-pdf-viewer/maui/smart-redaction" rel="noopener noreferrer"&gt;Smart Redaction&lt;/a&gt; feature helps simplify this process by using AI to identify sensitive information in PDF documents.&lt;/p&gt;

&lt;p&gt;Users can select the information they want to detect, scan the document, review the results, and apply redaction to the selected content.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbd7pz08dyzltbud5pha1.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbd7pz08dyzltbud5pha1.gif" alt="Smart Redaction detecting sensitive information"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;AI-powered Smart Redaction&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For example, when preparing a customer agreement for external sharing, users can look for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Person names&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Organization names&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Email addresses&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Phone numbers&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Credit card numbers&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Other confidential information&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Developers can also configure custom detection patterns to identify information specific to their applications or business requirements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How does it work?&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Select patterns:&lt;/strong&gt; Choose the types of sensitive information to identify.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Scan the document:&lt;/strong&gt; Let AI find matching information throughout the PDF.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Review the results:&lt;/strong&gt; Check the detected information in the Redaction panel.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Apply redaction:&lt;/strong&gt; Select the items to redact and confirm the changes.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One important point: AI detection may not identify every sensitive detail correctly. Always review the detected items before applying redaction.&lt;/p&gt;

&lt;p&gt;Also, applying redaction permanently removes the selected content. It cannot be recovered through undo or redo. Keep a backup of the original document when required.&lt;/p&gt;
&lt;h2&gt;
  
  
  3. Fill PDF forms automatically with Smart Form Fill
&lt;/h2&gt;

&lt;p&gt;Filling out PDF forms often involves copying information from emails, spreadsheets, or other documents and entering it into the correct fields.&lt;/p&gt;

&lt;p&gt;Imagine a user needs to complete a customer registration form. The customer details are already available in an email, but the user still has to enter each value manually.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://help.syncfusion.com/document-processing/pdf/smart-pdf-viewer/maui/smart-fill" rel="noopener noreferrer"&gt;Smart Form Fill&lt;/a&gt; helps reduce this effort.&lt;/p&gt;

&lt;p&gt;It uses AI to understand copied information and match the extracted values to the appropriate PDF form fields.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9pea8rabdp973ycdr53l.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9pea8rabdp973ycdr53l.gif" alt="Smart Form Fill populating PDF form fields"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Smart Form Fill&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For example, a user might copy the following customer details:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Name: John Doe
Email: [email protected]
Phone: +1 555 0100

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Smart Form Fill analyzes the copied information and identifies the matching fields in the PDF form.&lt;/p&gt;

&lt;p&gt;Instead of entering each value individually, users can let the feature populate the matching fields automatically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key benefits include:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Extract information from copied content.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Match values with the appropriate PDF form fields.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Reduce repetitive data entry.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Complete forms more quickly.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Smart Fill works with PDF documents containing form fields, such as text boxes, combo boxes, radio buttons, and list boxes. Users can review and adjust the populated values before finalizing the form.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Connect your preferred AI provider
&lt;/h2&gt;

&lt;p&gt;Different applications may use different AI services depending on their existing architecture and requirements.&lt;/p&gt;

&lt;p&gt;For example, your application might already use Azure OpenAI, OpenAI, or a custom AI service.&lt;/p&gt;

&lt;p&gt;The .NET MAUI Smart PDF Viewer supports AI integration through the &lt;code&gt;Microsoft.Extensions.AI&lt;/code&gt; chat client infrastructure. It also provides a custom integration approach through the &lt;code&gt;IChatInferenceService&lt;/code&gt; interface.&lt;/p&gt;

&lt;p&gt;This gives developers flexibility when connecting AI services to their applications.&lt;/p&gt;

&lt;p&gt;You can integrate services such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Azure OpenAI&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;OpenAI&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ollama&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Gemini&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Claude&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;DeepSeek&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Groq&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For custom integrations, the &lt;code&gt;IChatInferenceService&lt;/code&gt; interface provides a standard way to connect your AI service with Syncfusion Smart Components.&lt;/p&gt;

&lt;p&gt;Refer to the &lt;a href="https://help.syncfusion.com/document-processing/pdf/smart-pdf-viewer/maui/custom-ai-service" rel="noopener noreferrer"&gt;custom AI service integration guide&lt;/a&gt; for implementation details.&lt;/p&gt;

&lt;p&gt;Now, let’s see how to integrate Azure OpenAI with the Smart PDF Viewer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started with the .NET MAUI Smart PDF Viewer
&lt;/h2&gt;

&lt;p&gt;Let’s create a simple .NET MAUI application and add the Smart PDF Viewer with Azure OpenAI integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;p&gt;Before getting started, make sure you have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;.NET 10 SDK or later.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Visual Studio with .NET MAUI development support.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;An Azure OpenAI resource with a deployed model.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;An Azure OpenAI endpoint, deployment name, and API key.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 1: Create a .NET MAUI project
&lt;/h3&gt;

&lt;p&gt;First, create a new .NET MAUI application using the .NET CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
dotnet new maui -n MauiSmartPdfViewerExample
&lt;span class="nb"&gt;cd&lt;/span&gt; MauiSmartPdfViewerExample

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This creates a new .NET MAUI project.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Install the required NuGet packages
&lt;/h3&gt;

&lt;p&gt;Next, install the following packages to add the Smart PDF Viewer and configure Azure OpenAI.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Install-Package Syncfusion.Maui.SmartPdfViewer
Install-Package Microsoft.Extensions.AI
Install-Package Microsoft.Extensions.AI.OpenAI
Install-Package Azure.AI.OpenAI

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These packages provide the PDF Viewer component and the required AI integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Configure the Syncfusion services
&lt;/h3&gt;

&lt;p&gt;Open the &lt;code&gt;MauiProgram.cs&lt;/code&gt; file and register the Syncfusion core services.&lt;/p&gt;

&lt;p&gt;Add the following namespace:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;Syncfusion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Maui&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Core&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Hosting&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, configure the Syncfusion core handler in the &lt;code&gt;CreateMauiApp&lt;/code&gt; method:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;MauiProgram&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="nc"&gt;MauiApp&lt;/span&gt; &lt;span class="nc"&gt;CreateMauiApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;builder&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MauiApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;CreateBuilder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="n"&gt;builder&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;UseMauiApp&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;App&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ConfigureFonts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fonts&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;fonts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddFont&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"OpenSans-Regular.ttf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"OpenSansRegular"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="c1"&gt;// Register Syncfusion core services.&lt;/span&gt;
        &lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ConfigureSyncfusionCore&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Build&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This registers the required Syncfusion services in your application.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Configure Azure OpenAI
&lt;/h3&gt;

&lt;p&gt;Now, let’s connect Azure OpenAI to the application.&lt;/p&gt;

&lt;p&gt;First, add the following namespaces to &lt;code&gt;MauiProgram.cs&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;Azure&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;AI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;OpenAI&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;Microsoft&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Extensions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;AI&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;Syncfusion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Maui&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;SmartComponents&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Hosting&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ClientModel&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inside the &lt;code&gt;CreateMauiApp&lt;/code&gt; method, configure the Azure OpenAI client and register it with the dependency injection container.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;MauiProgram&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="nc"&gt;MauiApp&lt;/span&gt; &lt;span class="nc"&gt;CreateMauiApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;builder&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MauiApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;CreateBuilder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="n"&gt;builder&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;UseMauiApp&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;App&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ConfigureFonts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fonts&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;fonts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddFont&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"OpenSans-Regular.ttf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"OpenSansRegular"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="c1"&gt;// Register Syncfusion core services.&lt;/span&gt;
        &lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ConfigureSyncfusionCore&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="c1"&gt;// Azure OpenAI configuration.&lt;/span&gt;
        &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;azureOpenAiKey&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"api-key"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;azureOpenAiEndpoint&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"endpoint URL"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;azureOpenAiModel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"deployment-name"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="c1"&gt;// Create the Azure OpenAI client.&lt;/span&gt;
        &lt;span class="nc"&gt;AzureOpenAIClient&lt;/span&gt; &lt;span class="n"&gt;azureOpenAiClient&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;AzureOpenAIClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Uri&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;azureOpenAiEndpoint&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ApiKeyCredential&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;azureOpenAiKey&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="c1"&gt;// Configure the chat client.&lt;/span&gt;
        &lt;span class="nc"&gt;IChatClient&lt;/span&gt; &lt;span class="n"&gt;azureOpenAiChatClient&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;azureOpenAiClient&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;GetChatClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;azureOpenAiModel&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AsIChatClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="c1"&gt;// Register the chat client.&lt;/span&gt;
        &lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Services&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddChatClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;azureOpenAiChatClient&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="c1"&gt;// Register Syncfusion AI services.&lt;/span&gt;
        &lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ConfigureSyncfusionAIServices&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Build&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the placeholder values with your Azure OpenAI configuration:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;azureOpenAiKey&lt;/code&gt;: Your Azure OpenAI API key.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;azureOpenAiEndpoint&lt;/code&gt;: Your Azure OpenAI endpoint URL.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;azureOpenAiModel&lt;/code&gt;: Your deployed model name.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Security note:&lt;/strong&gt; Avoid storing long-lived API keys directly in production client applications. Use a secure backend or an appropriate token-based authentication approach to protect your credentials.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;AddChatClient&lt;/code&gt; method registers the AI chat client with the dependency injection container. The Smart PDF Viewer uses this registered client for its AI-powered features.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The AI service configuration is required for document summarization, Smart Redaction, and Smart Fill. Basic PDF viewing does not require an AI service.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Add the Smart PDF Viewer
&lt;/h3&gt;

&lt;p&gt;Next, open the &lt;code&gt;MainPage.xaml&lt;/code&gt; file and add the Syncfusion namespace:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;xmlns:syncfusion="clr-namespace:Syncfusion.Maui.SmartPdfViewer;assembly=Syncfusion.Maui.SmartPdfViewer"

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add the &lt;code&gt;SfSmartPdfViewer&lt;/code&gt; control to the page:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;syncfusion:SfSmartPdfViewer&lt;/span&gt;
    &lt;span class="na"&gt;x:Name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"pdfViewer"&lt;/span&gt;
    &lt;span class="na"&gt;DocumentSource&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{Binding PdfDocumentStream}"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, &lt;code&gt;DocumentSource&lt;/code&gt; specifies the PDF document stream to display in the viewer.&lt;/p&gt;

&lt;p&gt;For this example, bind it to a &lt;code&gt;PdfDocumentStream&lt;/code&gt; property in your view model. You can load a PDF from an embedded resource, local storage, or another supported document source.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: Enable the AI-powered features
&lt;/h3&gt;

&lt;p&gt;Now, let’s configure the three AI-powered features in the Smart PDF Viewer.&lt;/p&gt;

&lt;h4&gt;
  
  
  Enable the AI Assistant
&lt;/h4&gt;

&lt;p&gt;Use &lt;code&gt;AssistViewSettings&lt;/code&gt; to configure document summarization and question-answering capabilities.&lt;/p&gt;

&lt;p&gt;Add the following configuration inside the &lt;code&gt;SfSmartPdfViewer&lt;/code&gt; control:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;syncfusion:SfSmartPdfViewer.AssistViewSettings&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;syncfusion:AssistViewSettings&lt;/span&gt;
        &lt;span class="na"&gt;Prompt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Summarize this document."&lt;/span&gt;
        &lt;span class="na"&gt;Placeholder&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Enter your query..."&lt;/span&gt;
        &lt;span class="na"&gt;ShowPromptSuggestions&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"True"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/syncfusion:SfSmartPdfViewer.AssistViewSettings&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also, set &lt;code&gt;IsAIAssistViewVisible&lt;/code&gt; to &lt;code&gt;True&lt;/code&gt; on the viewer to display the AI Assistant panel.&lt;/p&gt;

&lt;p&gt;Here is what these properties do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Prompt: Defines the initial prompt used to guide AI-generated responses.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Placeholder: Displays the placeholder text in the query input area.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;ShowPromptSuggestions&lt;/code&gt;: Shows or hides suggested prompts.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;IsAIAssistViewVisible&lt;/code&gt;: Shows or hides the AI Assistant panel.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With this configuration, users can summarize PDF documents and ask questions about their content.&lt;/p&gt;

&lt;h4&gt;
  
  
  Enable Smart Redaction
&lt;/h4&gt;

&lt;p&gt;Next, use &lt;code&gt;SmartRedactSettings&lt;/code&gt; to enable AI-powered sensitive information detection.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;syncfusion:SfSmartPdfViewer.SmartRedactSettings&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;syncfusion:SmartRedactSettings&lt;/span&gt; &lt;span class="na"&gt;IsEnabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"True"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/syncfusion:SfSmartPdfViewer.SmartRedactSettings&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set &lt;code&gt;IsSmartRedactViewVisible&lt;/code&gt; to &lt;code&gt;True&lt;/code&gt; on the viewer to display the Smart Redaction panel.&lt;/p&gt;

&lt;p&gt;You can also configure custom detection patterns using the &lt;code&gt;RedactPatterns&lt;/code&gt; property.&lt;/p&gt;

&lt;p&gt;For example, add the following configuration in your C# code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="n"&gt;pdfViewer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;SmartRedactSettings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;SmartRedactSettings&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;IsEnabled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nc"&gt;RedactPatterns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"Person Names"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"Organization Names"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"Email Addresses"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"Phone Numbers"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"Credit Card Numbers"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;IsEnabled&lt;/code&gt;: Enables or disables Smart Redaction.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;RedactPatterns&lt;/code&gt;: Specifies the types of sensitive information to identify.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;IsSmartRedactViewVisible&lt;/code&gt;: Controls the visibility of the Smart Redaction panel.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can replace the sample patterns with custom patterns based on your application’s requirements.&lt;/p&gt;

&lt;h4&gt;
  
  
  Enable Smart Form Fill
&lt;/h4&gt;

&lt;p&gt;Finally, configure Smart Form Fill using the &lt;code&gt;SmartFillSettings&lt;/code&gt; class.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;syncfusion:SfSmartPdfViewer.SmartFillSettings&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;syncfusion:SmartFillSettings&lt;/span&gt; &lt;span class="na"&gt;IsEnabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"True"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/syncfusion:SfSmartPdfViewer.SmartFillSettings&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;IsEnabled&lt;/code&gt; property controls whether Smart Fill is available in the viewer.&lt;/p&gt;

&lt;p&gt;Once enabled, users can access Smart Fill from the AI Tools menu in the viewer toolbar. The option becomes available when the loaded PDF contains form fields.&lt;/p&gt;

&lt;p&gt;You can also trigger Smart Fill programmatically.&lt;/p&gt;

&lt;p&gt;To use the current clipboard content:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;pdfViewer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ApplySmartFillAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nc"&gt;CancellationToken&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To provide custom text instead of using clipboard content:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;customerDetails&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="s2"&gt;"Name: John Doe\n"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
    &lt;span class="s2"&gt;"Email: [email protected]\n"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
    &lt;span class="s2"&gt;"Phone: +1 555 0100"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;pdfViewer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ApplySmartFillAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;customerDetails&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nc"&gt;CancellationToken&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The viewer analyzes the supplied information and maps the extracted values to matching form fields.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7: Register the Syncfusion license
&lt;/h3&gt;

&lt;p&gt;Before using the Smart PDF Viewer, register your Syncfusion license key in &lt;code&gt;MauiProgram.cs&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Syncfusion.Licensing.SyncfusionLicenseProvider
    .RegisterLicense&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"YOUR_LICENSE_KEY"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the placeholder with your valid Syncfusion license key.&lt;/p&gt;

&lt;p&gt;For more information, refer to the &lt;a href="https://help.syncfusion.com/common/essential-studio/licensing/license-key" rel="noopener noreferrer"&gt;Syncfusion licensing documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 8: Run the application
&lt;/h3&gt;

&lt;p&gt;You’re all set!&lt;/p&gt;

&lt;p&gt;Build and run the application on your preferred target platform: Android, iOS, macOS, or Windows.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsvg6em8t9rl87ry1ilqh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsvg6em8t9rl87ry1ilqh.png" alt="Smart PDF Viewer with AI Tools and AI Assist"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;.NET MAUI Smart PDF Viewer with AI tools enabled&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Once the PDF document loads, you can try the AI-powered features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Generate summaries and ask questions using the AI Assistant.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Scan documents and redact sensitive information using Smart Redaction.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Populate PDF form fields using Smart Form Fill.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You now have an AI-powered document experience integrated into your .NET MAUI application.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Platform note:&lt;/strong&gt; Android deployments may require additional semantic-search model setup for AI-powered features. Refer to the &lt;a href="https://help.syncfusion.com/document-processing/pdf/smart-pdf-viewer/maui/getting-started" rel="noopener noreferrer"&gt;.NET MAUI Smart PDF Viewer getting-started documentation&lt;/a&gt; for the platform-specific setup instructions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Which platforms are supported by the .NET MAUI Smart PDF Viewer?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The .NET MAUI Smart PDF Viewer supports Android, iOS, macOS, and Windows. You can use the same .NET MAUI codebase to build applications for these platforms.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need an AI service to use the Smart PDF Viewer?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No. You can use the basic PDF viewing capabilities without configuring an AI service. However, features such as document summarization, Smart Redaction, and Smart Fill require a registered AI chat client.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What types of information can Smart Redaction identify?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Smart Redaction supports detection patterns for person names, organization names, email addresses, phone numbers, addresses, dates, account numbers, credit card numbers, and other configurable information. You can also define custom patterns based on your application requirements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use my own AI service?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. The Smart PDF Viewer supports custom AI service integration through the &lt;code&gt;IChatInferenceService&lt;/code&gt; interface. This allows you to connect your preferred AI service to Syncfusion Smart Components.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How does Smart Form Fill work?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Smart Form Fill analyzes clipboard content or supplied text, extracts relevant information, and maps the values to matching PDF form fields. It requires a PDF containing form fields and a configured AI service. Users can review and adjust the populated values before finalizing the form.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Working with PDF documents doesn’t have to involve repetitive manual tasks. With AI-powered features, users can find information, protect sensitive details, and complete forms more easily.&lt;/p&gt;

&lt;p&gt;The Syncfusion &lt;a href="https://www.syncfusion.com/pdf-viewer-sdk/ai-powered-net-maui-pdf-viewer" rel="noopener noreferrer"&gt;AI-Powered .NET MAUI Smart PDF Viewer&lt;/a&gt; brings these capabilities together in one component. Its AI Assistant, Smart Redaction, and Smart Form Fill features help developers build more interactive document workflows across Android, iOS, macOS, and Windows.&lt;/p&gt;

&lt;p&gt;You can also connect Azure OpenAI or integrate a custom AI service based on your application’s requirements.&lt;/p&gt;

&lt;p&gt;Ready to try it in your application? Explore the &lt;a href="https://help.syncfusion.com/document-processing/pdf/smart-pdf-viewer/maui/getting-started" rel="noopener noreferrer"&gt;.NET MAUI Smart PDF Viewer documentation&lt;/a&gt; and get started with the &lt;a href="https://www.syncfusion.com/account/manage-trials/start-trials" rel="noopener noreferrer"&gt;30-day free trial&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you have questions or feedback, connect with us through our &lt;a href="https://www.syncfusion.com/forums" rel="noopener noreferrer"&gt;support forums&lt;/a&gt; or &lt;a href="https://www.syncfusion.com/feedback" rel="noopener noreferrer"&gt;feedback portal&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>pdf</category>
      <category>maui</category>
      <category>mobile</category>
    </item>
    <item>
      <title>7 Signs of Technical Debt in Vibe Coding and How to Refactor</title>
      <dc:creator>Rajeshwari Pandinagarajan</dc:creator>
      <pubDate>Fri, 06 Nov 2026 03:56:16 +0000</pubDate>
      <link>https://dev.to/syncfusion/7-signs-of-technical-debt-in-vibe-coding-and-how-to-refactor-348n</link>
      <guid>https://dev.to/syncfusion/7-signs-of-technical-debt-in-vibe-coding-and-how-to-refactor-348n</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;em&gt;Vibe coding helps developers build features quickly, but repeated AI-generated changes can leave behind duplicated logic, inconsistent patterns, and code that is difficult to maintain. Learn seven warning signs of technical debt, how to audit a feature across its changes, and a practical approach for deciding what to refactor.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;A developer asks an AI coding assistant to create a function. Another prompt adds validation, and a third handles an edge case. Within a short time, the feature is implemented, the code compiles, and the tests pass.&lt;/p&gt;

&lt;p&gt;Everything appears to be working as expected. But then comes a small change.&lt;/p&gt;

&lt;p&gt;You revisit the code and find duplicated logic, business rules scattered across files, and components with unnecessary dependencies. What seemed like a straightforward implementation has become more difficult to modify.&lt;/p&gt;

&lt;p&gt;This is one of the challenges of AI-assisted development. When generated code is accepted without considering the overall application architecture, quick solutions can gradually introduce technical debt.&lt;/p&gt;

&lt;p&gt;Let’s explore why this happens, how to identify the warning signs, and what developers can do to keep AI-generated code maintainable.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Vibe Coding Technical Debt?
&lt;/h2&gt;

&lt;p&gt;Vibe coding is an informal way of building software through iterative conversations with AI. You describe what you want, an AI assistant generates or modifies code, and you refine the result through further prompts.&lt;/p&gt;

&lt;p&gt;Technical debt refers to design or implementation decisions that make software harder or more expensive to maintain, extend, or modify later. A solution may work today but still make future changes more difficult. Technical debt is not necessarily a bug, although debt and defects can exist together.&lt;/p&gt;

&lt;p&gt;AI-generated technical debt can be difficult to notice because the code may run and tests may pass, even when coverage is incomplete. An assistant may also suggest a solution that works for the immediate request but duplicates an existing implementation or conflicts with a project convention.&lt;/p&gt;

&lt;p&gt;The important distinction is between a change that works for the current task and a change that fits the application as a whole.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it happens
&lt;/h2&gt;

&lt;p&gt;Imagine asking an AI assistant to add authentication to an endpoint. It adds a token check at the beginning of the function. The endpoint works.&lt;/p&gt;

&lt;p&gt;The next week, you need rate limiting. Another conditional is added. Then, you request logging, guest-user handling, and an administrator exception.&lt;/p&gt;

&lt;p&gt;After several changes, the endpoint may contain authentication, authorization, rate limiting, logging, and business logic in one function. Testing becomes more complicated, and each new change has more responsibilities to consider.&lt;/p&gt;

&lt;p&gt;The pattern can spread across the application. Different endpoints may end up with slightly different authentication implementations, duplicated rate-limiting logic, and inconsistent administrator checks. Each change may work in isolation, while the accumulation makes the code harder to maintain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before vs. After vs. Refactored
&lt;/h2&gt;

&lt;p&gt;Here’s a simplified JavaScript example of how an endpoint can become a patchwork of unrelated responsibilities.&lt;/p&gt;

&lt;h3&gt;
  
  
  Before: Clean service function
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getUserProfile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;userId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;userId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  After: Patchwork function
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getUserProfile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;userId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'No token'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;// Decoding does not verify the token signature.&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;decoded&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;jwt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;decoded&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Invalid token'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;isAdmin&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;admins&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exists&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;decoded&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;isAdmin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;recentCalls&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;redis&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`calls:${decoded.id}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;recentCalls&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Rate limited'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`Fetching profile for ${decoded.id}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;isAdmin&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;guestAccess&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Special handling for guest administrators&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;userId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This example intentionally shows responsibilities accumulating in one function. It is not a recommended authentication implementation. In particular, &lt;strong&gt;jwt.decode()&lt;/strong&gt; only decodes a token; it does not verify its signature. Decoding alone must not be used to authenticate a request.&lt;/p&gt;

&lt;h3&gt;
  
  
  After refactoring: Separate responsibilities
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Authentication middleware verifies the token.&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;authMiddleware&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;next&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;authorization&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="nc"&gt;Bearer&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;+/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;401&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Authentication required'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;jwt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;verify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;JWT_SECRET&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;401&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Invalid or expired token'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// The service is configured separately from the route handler.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rateLimiter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;RateLimitService&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Rate limiting is handled separately.&lt;/span&gt;
&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;rateLimitMiddleware&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;next&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;allowed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;rateLimiter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isAllowed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;allowed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;429&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Rate limited'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// The endpoint focuses on retrieving the signed-in user's profile.&lt;/span&gt;
&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getUserProfile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;next&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;404&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'User not found'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`Profile accessed by ${req.user.id}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Example Express route; middleware order matters.&lt;/span&gt;
&lt;span class="n"&gt;router&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'/profile'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;authMiddleware&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rateLimitMiddleware&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;getUserProfile&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is an illustrative Express-style example. It assumes that the JWT secret, database, logger, and rate-limiter service are configured, and that the application has appropriate error-handling middleware. The route applies authentication before rate limiting and the endpoint. Applications that allow access to other users’ profiles also need an explicit authorization check.&lt;/p&gt;

&lt;p&gt;The improvement is not simply fewer lines. Each part now has a clear responsibility, and the route makes the request flow visible. That makes the code easier to review and gives developers clearer places to test authentication, rate limiting, and profile retrieval independently.&lt;/p&gt;

&lt;h2&gt;
  
  
  7 signs your vibe-coded project is becoming patchwork
&lt;/h2&gt;

&lt;p&gt;These signs are prompts for investigation, not a formal scoring standard. One sign alone does not prove that a codebase has serious debt. Look for recurring patterns and their impact.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sign&lt;/th&gt;
&lt;th&gt;Why it matters&lt;/th&gt;
&lt;th&gt;What to do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Same files changed repeatedly&lt;/td&gt;
&lt;td&gt;Fixes may be addressing symptoms rather than causes.&lt;/td&gt;
&lt;td&gt;Review file history and investigate recurring changes.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Logic duplicated across files&lt;/td&gt;
&lt;td&gt;Copies can drift and behave differently.&lt;/td&gt;
&lt;td&gt;Consider shared middleware, helpers, or services.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Growing conditionals&lt;/td&gt;
&lt;td&gt;Complex branching is harder to understand and test.&lt;/td&gt;
&lt;td&gt;Clarify rules and consider a suitable policy or role-based approach.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dependency sprawl&lt;/td&gt;
&lt;td&gt;Overlapping libraries add maintenance overhead.&lt;/td&gt;
&lt;td&gt;Check existing dependencies before adding another.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mixed architecture patterns&lt;/td&gt;
&lt;td&gt;Inconsistent approaches make the codebase harder to understand.&lt;/td&gt;
&lt;td&gt;Document and follow suitable project patterns.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tests changed to pass code&lt;/td&gt;
&lt;td&gt;Test changes can hide defects if expectations are weakened.&lt;/td&gt;
&lt;td&gt;Change tests only when requirements or expected behavior change.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code with unclear purpose&lt;/td&gt;
&lt;td&gt;Unknown dependencies make changes risky.&lt;/td&gt;
&lt;td&gt;Trace the reason for the code and document important decisions.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  1. You keep changing the same files
&lt;/h3&gt;

&lt;p&gt;Check your Git history. If the same files appear repeatedly in commits during a sprint, you may be patching symptoms instead of solving the underlying problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; Review the changes together. Are they all fixing different symptoms of the same design issue? Treat repeated changes as a signal to investigate, not as a fixed numerical threshold.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The same logic exists in multiple places
&lt;/h3&gt;

&lt;p&gt;Authentication logic may appear separately in &lt;strong&gt;users.js&lt;/strong&gt;, &lt;strong&gt;posts.js&lt;/strong&gt;, and &lt;strong&gt;comments.js&lt;/strong&gt;, with slightly different implementations. When the rule changes, every copy needs to be updated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; Identify genuinely shared behavior and consider extracting it into middleware, a helper, or a service. Avoid creating an abstraction when the code only looks similar but serves different purposes.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Conditionals keep growing
&lt;/h3&gt;

&lt;p&gt;Nested conditions can accumulate for administrators, moderators, premium users, guests, and other special cases. As the logic grows, it becomes harder to understand which rules apply and how they interact.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; Clarify the business rules first. Consider role-based access control (RBAC) when permissions are organized around roles, or a policy-based approach when access depends on more detailed conditions. Choose an approach that fits the application.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Dependencies pile up
&lt;/h3&gt;

&lt;p&gt;An AI assistant may suggest a new library without knowing that the project already has a dependency for the same purpose. A codebase might gradually include multiple utility or date-handling libraries.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; Check whether an existing dependency or built-in capability already meets the requirement. Consider maintenance status, compatibility, security, and bundle-size impact where relevant before adding another package.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Architecture is all over the place
&lt;/h3&gt;

&lt;p&gt;One part of an application may use MVC, another may use functional handlers, and another may introduce classes for similar responsibilities. Data access may also vary without a clear reason.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; Document the patterns the team wants to follow, including routing, data access, authentication, error handling, and testing. Share relevant guidance when prompting AI assistants.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Tests get changed to make code pass
&lt;/h3&gt;

&lt;p&gt;Imagine a test expects verified to be true. It fails, and an AI assistant changes the expectation to false. The test now passes, but the implementation may still be wrong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; Understand why the test failed before changing it. Fix the implementation when it does not meet the requirement. Change a test when expected behavior has genuinely changed, not just to make a failing test pass.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Nobody knows why code exists
&lt;/h3&gt;

&lt;p&gt;Comments such as “Not sure if needed” or “Don’t remove, breaks prod” are warning signs when they do not explain the reason behind the code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; Trace the code to the requirement or decision that introduced it. Document important constraints and why a particular approach was chosen. Confirm that code is no longer needed before removing it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical audit: Follow one feature across its changes
&lt;/h2&gt;

&lt;p&gt;A useful way to find AI-related technical debt is to audit one feature rather than asking an assistant to review the entire repository and accepting a long list of generic suggestions.&lt;/p&gt;

&lt;p&gt;For example, choose the profile endpoint from the earlier code sample. Review the feature in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Trace the change history:&lt;/strong&gt; Use &lt;strong&gt;&lt;code&gt;git log --oneline -- path/to/profile-file.js&lt;/code&gt;&lt;/strong&gt; to see commits that changed the file. Open the relevant diffs and identify which requirements led to each change.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Map the responsibilities:&lt;/strong&gt; List what the endpoint currently handles: token validation, permission checks, rate limiting, logging, database access, and response formatting.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Find duplicated behavior:&lt;/strong&gt; Search for other endpoints that implement the same authentication or rate-limiting rules. Compare the behavior, not just the names of the functions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Check the tests:&lt;/strong&gt; Find tests for valid tokens, missing or invalid tokens, rate limits, missing users, and unexpected database errors. Confirm that the tests reflect the intended behavior.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Review dependencies and assumptions:&lt;/strong&gt; Check whether the endpoint uses existing project services and conventions. Identify any new package or special-case rule that needs justification.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Record findings before changing code:&lt;/strong&gt; Separate confirmed defects from maintainability concerns and possible improvements.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A simple audit note could look like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Finding&lt;/th&gt;
&lt;th&gt;Evidence to collect&lt;/th&gt;
&lt;th&gt;Suggested next step&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Authentication repeated in several routes&lt;/td&gt;
&lt;td&gt;Compare route handlers and middleware&lt;/td&gt;
&lt;td&gt;Consolidate only if the behavior and security requirements match.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rate limiting mixed with profile logic&lt;/td&gt;
&lt;td&gt;Trace the endpoint and its tests&lt;/td&gt;
&lt;td&gt;Move rate limiting into dedicated middleware or a service.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Admin exception is unclear&lt;/td&gt;
&lt;td&gt;Find the requirement and authorization rule&lt;/td&gt;
&lt;td&gt;Confirm the rule with the product or security owner before changing it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Missing failure-path tests&lt;/td&gt;
&lt;td&gt;Review existing test cases&lt;/td&gt;
&lt;td&gt;Add tests for invalid tokens, rate limits, and missing users.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is where the audit becomes more valuable than a generic code review: every finding is tied to a specific file, behavior, or requirement. Do not refactor solely because an AI tool labels something as complex. First confirm that the issue exists and that the proposed change preserves the required behavior.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why AI-assisted development can accumulate debt
&lt;/h2&gt;

&lt;p&gt;AI coding assistants can generate useful local changes, but they may not always account for the whole system. Several factors contribute to this risk:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Incomplete context:&lt;/strong&gt; An assistant may not have access to every relevant file, architectural decision, or business rule. Even when it can inspect a repository, it may not understand why an existing pattern was chosen.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Local task focus:&lt;/strong&gt; A generated change may address the prompt without considering every system-wide effect. Developers still need to review maintainability, consistency, and integration.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Limited continuity:&lt;/strong&gt; Context can vary by tool, configuration, and session. Without project-level guidance, later suggestions may not follow earlier decisions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Patches hide root causes:&lt;/strong&gt; When a patch fixes an immediate symptom, the underlying design issue may remain.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Fast iteration:&lt;/strong&gt; AI makes code generation faster. If review and refactoring do not receive enough attention, changes can accumulate faster than the team can evaluate them.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The lesson is not that AI-generated code is inherently worse than human-written code. Both need review. The important question is whether each change meets the same standards for correctness, security, consistency, and maintainability.&lt;/p&gt;

&lt;h2&gt;
  
  
  A six-step approach to stop the patchwork
&lt;/h2&gt;

&lt;p&gt;Use this approach when a change touches an area that has become difficult to maintain.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: PAUSE
&lt;/h3&gt;

&lt;p&gt;Stop coding and step back. Ask yourself:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Am I solving the right problem?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Is this a band-aid for a bigger issue?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Have I changed this area repeatedly?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Did the AI assistant have the architectural context needed for this change?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 2: INSPECT
&lt;/h3&gt;

&lt;p&gt;Open your Git diff and review the recent history of the files you changed. Then ask:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Do I understand every important line that was added?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Is the change consistent with the rest of the codebase?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Would I approve this implementation in a code review?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Does it solve the underlying problem or only address a symptom?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 3: TEST
&lt;/h3&gt;

&lt;p&gt;Check whether tests cover the changed behavior:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;What about edge cases?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Does error handling work as expected?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What happens with missing, invalid, or unexpected input?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Could this change affect another part of the application?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can ask AI to suggest missing test cases, but review those suggestions against the actual requirements. Tests should verify expected behavior, not simply make the implementation pass.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: REFACTOR
&lt;/h3&gt;

&lt;p&gt;Improve the structure where necessary:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Pull genuinely duplicated code into shared functions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Simplify deeply nested conditionals.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Group related responsibilities together.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Simplify unnecessarily complex function signatures.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Remove unused code or dependencies only after confirming they are not needed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add comments that explain important decisions.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ask AI to suggest a behavior-preserving refactor and explain the proposed changes. Review the result and run relevant tests before accepting it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: DOCUMENT
&lt;/h3&gt;

&lt;p&gt;Write down why a decision was made, not just what the code does. For example, explain why the team chose a simple discount implementation instead of introducing a rule-engine library, and what future change would justify revisiting that decision.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: CONTINUE
&lt;/h3&gt;

&lt;p&gt;Once the change is reviewed, tested, and easier to maintain, continue building. The goal is to address complexity before it becomes expensive to manage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Should you patch, refactor, or rebuild?
&lt;/h2&gt;

&lt;p&gt;Not every issue needs a large refactor. Choose the smallest change that safely addresses the underlying problem.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Situation&lt;/th&gt;
&lt;th&gt;Better next step&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A small, isolated defect with a clear cause&lt;/td&gt;
&lt;td&gt;Patch&lt;/td&gt;
&lt;td&gt;A focused fix is appropriate when it does not add another workaround or break an established pattern.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The same logic is repeated or responsibilities are mixed&lt;/td&gt;
&lt;td&gt;Refactor&lt;/td&gt;
&lt;td&gt;Improve the structure while preserving the required behavior.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Several features depend on an unclear or unsuitable design&lt;/td&gt;
&lt;td&gt;Assess a broader redesign&lt;/td&gt;
&lt;td&gt;First map dependencies, risks, migration effort, and a safe transition path.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A prototype is not yet production code&lt;/td&gt;
&lt;td&gt;Keep it lightweight, but set a review point&lt;/td&gt;
&lt;td&gt;Avoid premature architecture, but do not let experimental code become production code without review.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A rebuild should not be the automatic response to a messy codebase. It can introduce new risks and may recreate the same problems if the underlying requirements and design decisions are not addressed. Prefer incremental refactoring when it can safely improve the system.&lt;/p&gt;

&lt;h2&gt;
  
  
  Team practices for AI-assisted development
&lt;/h2&gt;

&lt;p&gt;Technical debt is also a team concern. Shared practices help keep generated code consistent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Share architecture guidance:&lt;/strong&gt; Document the project’s routing, data access, authentication, error-handling, and testing conventions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Maintain reviewed prompts:&lt;/strong&gt; Keep useful prompts for common tasks, but update them when project patterns change.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Review high-impact changes carefully:&lt;/strong&gt; Give additional attention to authentication, authorization, data access, and new dependencies.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Use AI as a review aid:&lt;/strong&gt; Ask it to identify edge cases, duplication, and possible inconsistencies. Developers remain responsible for verifying the findings.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick audit checklist
&lt;/h2&gt;

&lt;p&gt;Use these questions during a code review or maintenance session:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Is the same logic implemented in multiple files?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Are some files repeatedly changed to address related issues?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Are there several different ways to handle the same operation, such as authentication, logging, or validation?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Are multiple libraries being used for essentially the same purpose?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Is important conditional logic deeply nested or difficult to follow?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Are there comments such as “Don’t touch this” without an explanation?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Does the team struggle to explain why an important piece of code exists?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use the answers to identify areas for investigation, not to produce a formal technical-debt score. Prioritize findings by their impact on security, correctness, maintainability, and the effort required to fix them.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI prompt template: Architecture-first approach
&lt;/h2&gt;

&lt;p&gt;Use this template to give an AI assistant context before asking it to implement a change.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;TASK: [Describe what you want to build or change.]

PROJECT CONTEXT:
[Relevant files, architecture, existing patterns, and constraints.]

PATTERNS:
[Authentication, logging, data access, error handling, and testing conventions.]

CONSTRAINTS:
- Reuse existing abstractions where appropriate.
- Avoid unnecessary dependencies.
- Preserve existing behavior unless requirements say otherwise.
- Include relevant tests.
- Explain assumptions and trade-offs.

BEFORE IMPLEMENTING:
1. Identify relevant existing code.
2. Explain which patterns or abstractions can be reused.
3. Identify possible edge cases and risks.
4. Present an implementation plan.

THEN:
Implement the approved approach and summarize the changes and tests.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review the proposed plan and generated code before using them. Providing context improves the quality of the discussion, but it does not guarantee that generated code is correct.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. What if my codebase is already a patchwork? Is it too late to fix?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No. Start with the file or feature causing the most maintenance problems. Review its behavior, add or improve tests, extract duplicated logic where appropriate, and clarify its responsibilities. Work in manageable steps rather than trying to restructure the entire application at once.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Are there situations where quick AI patches are fine?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. Quick patches can be appropriate for prototypes, throwaway experiments, or low-risk changes when the trade-offs are understood. Before a prototype becomes production code, review its architecture, security, and test coverage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. How do I convince my team to make time for refactoring?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Track examples of repeated bug fixes, slow code reviews, and time spent understanding complex areas. Explain how addressing a specific source of complexity could reduce future maintenance effort. Start with a focused improvement and use the result to demonstrate its value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Does using AI automatically create technical debt?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No. AI-generated code can be maintainable when it is reviewed, tested, and aligned with the project’s requirements and architecture. Technical debt can result from human-written code as well. The important factor is how changes are evaluated and maintained.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the speed, lose the patchwork
&lt;/h2&gt;

&lt;p&gt;Vibe coding is not inherently flawed. AI assistants can help developers explore ideas and build features faster. Problems arise when rapid iteration happens without enough attention to architecture, testing, and maintainability.&lt;/p&gt;

&lt;p&gt;The seven warning signs help identify a codebase that is becoming harder to change. The practical audit shows how to trace a concern back to specific code and supporting evidence. The six-step approach helps developers inspect, test, refactor, and document changes, while the patch-or-refactor guide helps determine the right level of response.&lt;/p&gt;

&lt;p&gt;Start with one feature or file that repeatedly causes maintenance work. Trace its history, verify the behavior, and prioritize the issues that have the greatest impact. Use AI to analyze and review code, but keep developers responsible for understanding and approving the changes.&lt;/p&gt;

&lt;p&gt;Build faster with AI while keeping your codebase maintainable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related blogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/prompt-engineering-vibe-coding" rel="noopener noreferrer"&gt;Prompt Engineering + Vibe Coding: A New Era for Software Developers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/context-engineering-smart-ai-prompts" rel="noopener noreferrer"&gt;Context Engineering: Improving AI Code Output in Your IDE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/rag-vs-fine-tuning-in-gpt-approach" rel="noopener noreferrer"&gt;RAG vs Fine-Tuning: Most Teams Get This Wrong (Here’s the Fix)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/jev-ai-vs-structured-output-llms" rel="noopener noreferrer"&gt;Jev AI vs. Structured-Output LLMs: Which One Should You Actually Use?&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>vibecoding</category>
      <category>ai</category>
      <category>development</category>
      <category>promptdrivendevelopment</category>
    </item>
    <item>
      <title>How to Validate PDF Digital Signatures in JavaScript with Timestamps and Long-Term Validation (LTV)</title>
      <dc:creator>Rajeshwari Pandinagarajan</dc:creator>
      <pubDate>Wed, 04 Nov 2026 15:30:00 +0000</pubDate>
      <link>https://dev.to/syncfusion/how-to-validate-pdf-digital-signatures-in-javascript-with-timestamps-and-long-term-validation-ltv-40ne</link>
      <guid>https://dev.to/syncfusion/how-to-validate-pdf-digital-signatures-in-javascript-with-timestamps-and-long-term-validation-ltv-40ne</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;em&gt;Need to verify signed PDFs long after signing? Learn how to digitally sign PDFs, add trusted timestamps, enable Long-Term Validation (LTV), and validate individual or multiple signatures using the Syncfusion JavaScript PDF Library.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A digital signature helps verify who signed a PDF and whether the document has changed since signing. But how can you validate that signature months or even years later, especially when the signing certificate has expired or revocation information is no longer available?&lt;/p&gt;

&lt;p&gt;Trusted timestamps and Long-Term Validation (LTV) information help preserve the evidence needed for future signature verification.&lt;/p&gt;

&lt;p&gt;With the &lt;a href="https://help.syncfusion.com/common/essential-studio/release-notes/v35.1.37" rel="noopener noreferrer"&gt;2026 Volume 3 release&lt;/a&gt;, Syncfusion® added digital signature validation and Long-Term Validation (LTV) capabilities in its &lt;a href="https://www.syncfusion.com/document-sdk/javascript-pdf-library" rel="noopener noreferrer"&gt;JavaScript PDF Library&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In this guide, you’ll learn how to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sign PDF documents using a digital certificate.&lt;/li&gt;
&lt;li&gt;Add a trusted timestamp from a Time Stamping Authority (TSA).&lt;/li&gt;
&lt;li&gt;Enable Long-Term Validation (LTV).&lt;/li&gt;
&lt;li&gt;Validate individual and multiple signatures.&lt;/li&gt;
&lt;li&gt;Interpret validation results correctly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; A trusted timestamp and LTV information can help preserve the evidence needed to validate a PDF signature in the future. However, successful long-term validation still depends on the signature’s integrity, the available certificate and revocation evidence, the certificate chain, and the trust policies used by the validating application. LTV improves future validation readiness but does not guarantee indefinite validation under all circumstances.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the new PDF validation capability enables
&lt;/h2&gt;

&lt;p&gt;The new validation capabilities allow developers to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Verify whether a signed document has been altered after signing.&lt;/li&gt;
&lt;li&gt;Validate certificate chains used by signatures.&lt;/li&gt;
&lt;li&gt;Inspect trusted timestamp information.&lt;/li&gt;
&lt;li&gt;Check certificate revocation status using OCSP and CRL evidence.&lt;/li&gt;
&lt;li&gt;Validate a specific signature field.&lt;/li&gt;
&lt;li&gt;Validate multiple signatures in a single PDF document.&lt;/li&gt;
&lt;li&gt;Support processes that require long-term signature verification.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These capabilities are especially useful in document management, finance, legal, healthcare, government, and compliance-focused applications where document integrity must be preserved over time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Digitally sign a PDF in JavaScript
&lt;/h2&gt;

&lt;p&gt;Digital signatures help verify a PDF document’s authenticity, confirm the identity of the signer, and detect whether the document has been altered after signing. By applying a certificate-based digital signature, you can establish trust in electronic documents and support secure document processing.&lt;/p&gt;

&lt;p&gt;Using the Syncfusion &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/digitalsignature" rel="noopener noreferrer"&gt;JavaScript PDF Library&lt;/a&gt;, you can digitally sign both newly created and existing PDF documents with industry-standard certificates.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;p&gt;Before you begin, ensure you have the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A valid digital certificate (.PFX or .P12) containing the private key.&lt;/li&gt;
&lt;li&gt;The certificate password.&lt;/li&gt;
&lt;li&gt;A PDF document to sign, or a new PDF document to create.&lt;/li&gt;
&lt;li&gt;The Syncfusion JavaScript PDF Library.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Security consideration:&lt;/strong&gt; Never hardcode PFX passwords, private keys, or certificate files in browser-delivered JavaScript. Private keys are sensitive cryptographic assets and should be protected appropriately. For high-security environments, consider server-side signing or a managed digital-signing service rather than exposing signing credentials to client applications.&lt;/p&gt;

&lt;p&gt;Once your certificate and PDF document are ready, you can sign the document by creating a signature field, applying a digital signature, and saving the signed PDF.&lt;/p&gt;

&lt;h3&gt;
  
  
  Steps to digitally sign a PDF
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Step 1: Create or load a PDF document
&lt;/h4&gt;

&lt;p&gt;Create a new document or load an existing PDF, depending on your use case. The document acts as the container for the digital signature and related form fields.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 2: Create a signature field
&lt;/h4&gt;

&lt;p&gt;Add a &lt;a href="https://ej2.syncfusion.com/documentation/api/pdf/pdfsignaturefield" rel="noopener noreferrer"&gt;PdfSignatureField&lt;/a&gt; to the document. This field defines where the signature information will be stored and displayed within the PDF.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 3: Create and apply a digital signature
&lt;/h4&gt;

&lt;p&gt;Load the PFX certificate and create a &lt;a href="https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature" rel="noopener noreferrer"&gt;PdfSignature&lt;/a&gt; object using the certificate and password. You can also specify the cryptographic standard and hashing algorithm used to generate the signature.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 4: Add the signature field and save the document
&lt;/h4&gt;

&lt;p&gt;After applying the signature, add the signature field to the PDF form and save the document. The resulting PDF contains a verifiable digital signature that can later be validated for integrity and authenticity.&lt;/p&gt;

&lt;p&gt;The following example creates a new PDF document, adds a signature field, and applies a digital signature using a PFX certificate and the SHA-256 hashing algorithm:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Create the document&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Get the first page of the document&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Access the PDF form&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;form&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Create a new signature field&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfSignatureField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Signature'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Create a new signature using PFX data and private key&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;sign&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfSignature&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;certData&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;cryptographicStandard&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;CryptographicStandard&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cms&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;digestAlgorithm&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DigestAlgorithm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Set the signature to the field&lt;/span&gt;
&lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setSignature&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sign&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Add the field to the PDF form&lt;/span&gt;
&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Draw the logo in the signature appearance &lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;signatureAppearance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getAppearance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; 
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;signatureImage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;PdfBitmap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;logo&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; 
&lt;span class="n"&gt;signatureAppearance&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;normal&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;graphics&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;drawImage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;signatureImage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; 
    &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
    &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
    &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
    &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt; 
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; 
&lt;span class="c1"&gt;// Save the document&lt;/span&gt;
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'output.pdf'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Destroy the document&lt;/span&gt;
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;destroy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3f33fdl42vpivdcybrlq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3f33fdl42vpivdcybrlq.png" alt="Adding a digital signature to a PDF"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Adding a digital signature to a PDF&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; In this example, &lt;strong&gt;certData&lt;/strong&gt; represents the PFX certificate bytes and &lt;strong&gt;password&lt;/strong&gt; is the certificate password. These values should be securely loaded through your application’s credential management process rather than embedded directly in source code.&lt;/p&gt;

&lt;p&gt;For additional signing scenarios, including signing existing PDFs and advanced signature configuration options, explore the &lt;a href="https://document.syncfusion.com/demos/document-library/javascript/#/tailwind3/pdf/digitalSignature.html" rel="noopener noreferrer"&gt;digital signature demo&lt;/a&gt; and refer to the &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/digitalsignature?cs-save-lang=1&amp;amp;cs-tab-name=JavaScript&amp;amp;cs-lang=js#add-a-digital-signature-to-a-new-document" rel="noopener noreferrer"&gt;API documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Add a trusted timestamp to a PDF signature
&lt;/h2&gt;

&lt;p&gt;A timestamp records when a document was signed through a trusted Time Stamping Authority (TSA). It provides evidence of the signing time and helps support future signature verification.&lt;/p&gt;

&lt;p&gt;To add a timestamp, provide a timestamp callback when creating the digital signature. The callback returns the TSA response, which is embedded into the signature during the save operation.&lt;/p&gt;

&lt;p&gt;The following example shows how to add a timestamp to a digitally signed PDF document.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Create a timestamp callback&lt;/span&gt;
&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;timestampCallback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Implement timestamp response logic here&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Uint8Array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// Placeholder return&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;// Create a new signature using PFX data, private key and callback function for timestamp&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;signature&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfSignature&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;certData&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;cryptographicStandard&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;CryptographicStandard&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cms&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;digestAlgorithm&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DigestAlgorithm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sha256&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timestampCallback&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setSignature&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;signature&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Save the document&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;saveAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'output.pdf'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ig0vfjqlvmo7zppfq2h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ig0vfjqlvmo7zppfq2h.png" alt="Adding a timestamp to a digitally signed PDF document"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Adding a timestamp to a digitally signed PDF document&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This example demonstrates the callback contract only. Your application must send the timestamp request to a trusted Time Stamping Authority (TSA) and return the TSA response bytes.&lt;/p&gt;
&lt;h3&gt;
  
  
  Why use saveAsync()?
&lt;/h3&gt;

&lt;p&gt;When timestamping is enabled, the library must communicate with an external TSA service. Because the operation is asynchronous, use &lt;strong&gt;await document.saveAsync()&lt;/strong&gt; to ensure that the timestamp response is received and embedded before the PDF is generated.&lt;/p&gt;

&lt;p&gt;For a complete timestamp integration example, refer to the &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/digitalsignature?cs-save-lang=1&amp;amp;cs-tab-name=JavaScript&amp;amp;cs-lang=js#adding-a-timestamp-in-digital-signature" rel="noopener noreferrer"&gt;digital signature documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Enhance PDF signature validation with Long-Term Validation (LTV)
&lt;/h2&gt;

&lt;p&gt;A trusted timestamp helps establish when a document was signed, but long-term verification often requires additional evidence. If certificate revocation services become unavailable, validators may not be able to retrieve the information needed to determine whether the signing certificate was trusted at the time of signing.&lt;/p&gt;

&lt;p&gt;Long-Term Validation (LTV) helps address this challenge by embedding certificate and revocation information directly into the PDF.&lt;/p&gt;

&lt;p&gt;To enable LTV:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sign and save the PDF.&lt;/li&gt;
&lt;li&gt;Reload the signed document.&lt;/li&gt;
&lt;li&gt;Retrieve the signature.&lt;/li&gt;
&lt;li&gt;Call the enableLTV() method and provide revocation responses through the callback.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The following code example demonstrates how to enable LTV for a signed PDF document.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Load the signed PDF document&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Get the signature field&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fieldAt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Retrieve the PDF signature&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;signature&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getSignature&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Retrieve the OCSP or CRL response requested by the library&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;longTermValidationCallback&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;requestBytes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Send requestBytes to the approved URL and return the actual response bytes&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;revocationResponse&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Enable LTV for the created signature&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;ltvEnabled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;signature&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;enableLTV&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;longTermValidationCallback&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Save the LTV-enabled PDF document&lt;/span&gt;
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'output.pdf'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This callback must return the actual OCSP or CRL response bytes requested by the library. Network communication, authentication, retry logic, and error handling should be implemented by your application.&lt;/p&gt;

&lt;p&gt;After you enable LTV, the PDF contains additional validation information that can support future verification and archival processes.&lt;/p&gt;

&lt;p&gt;For complete LTV examples and implementation guidance, refer to the &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/digitalsignature?cs-save-lang=1&amp;amp;cs-tab-name=JavaScript&amp;amp;cs-lang=js#long-term-validation-ltv" rel="noopener noreferrer"&gt;LTV documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Validate PDF signatures
&lt;/h2&gt;

&lt;p&gt;Once a signed PDF contains timestamp and optional LTV information, the next step is validation. Validation helps determine whether the document has been modified after signing and whether the associated certificates, timestamps, and revocation information remain trustworthy.&lt;/p&gt;

&lt;p&gt;The Syncfusion JavaScript PDF Library supports validation for both individual signatures and multiple signatures contained within a PDF document.&lt;/p&gt;

&lt;p&gt;During validation, the library can verify document modifications, certificate chains, timestamp information, revocation status through OCSP or CRL data, and multiple signatures available in the document.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7uyq44t3qxxangupzzp7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7uyq44t3qxxangupzzp7.png" alt="Validating PDF signatures"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Validating PDF signatures using the Syncfusion JavaScript PDF Library&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Validation prerequisites
&lt;/h3&gt;

&lt;p&gt;Before validating signatures, prepare the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;documentData:&lt;/strong&gt; The PDF document bytes to validate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;certificateData:&lt;/strong&gt; Trusted root or intermediate certificate data used to establish trust.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;passwords:&lt;/strong&gt; Optional passwords used only when validating encrypted PDFs or password-protected processes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Providing a certificate does not automatically establish trust. Validation depends on whether a complete and trusted certificate chain can be successfully built according to your organization’s trust requirements.&lt;/p&gt;
&lt;h3&gt;
  
  
  Validate a single signature
&lt;/h3&gt;

&lt;p&gt;To validate an individual signature, retrieve the associated signature field and call the &lt;strong&gt;validateSignature()&lt;/strong&gt; method. The validation process checks whether the document has been modified after signing and evaluates certificate trust, timestamp validity, and revocation status based on the specified validation options.&lt;/p&gt;

&lt;p&gt;The following example validates a single signature using trusted certificate information:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Load the signed PDF document.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;documentData&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Get the first signature field from the form.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fieldAt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Configure the signature validation options.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;options&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;trustedCertificates&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;certificateData&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;passwords&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'syncfusion'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Validate the signature.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;validationResult&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;validateSignature&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Check the validation result.&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Signature name: '&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;validationResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;signatureName&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Signature valid: '&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;validationResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSignatureValid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Signature status: '&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;validationResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;signatureStatus&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Document modified: '&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;validationResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isDocumentModified&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Revocation result: '&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;validationResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;revocationResult&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Destroy the document and release its resources.&lt;/span&gt;
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Destroy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The returned validation result contains details about signature validity, document integrity, certificate-chain validation, timestamp verification, and revocation checks.&lt;/p&gt;

&lt;p&gt;Include the passwords option only when validating encrypted PDFs or processes that require password-protected content.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Explore the &lt;a href="https://document.syncfusion.com/demos/document-library/javascript/#/tailwind3/pdf/digital-signature-validation.html" rel="noopener noreferrer"&gt;digital signature validation demo&lt;/a&gt; to see the validation process in action and review the validation results returned by the &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/digitalsignature#digital-signature-validation" rel="noopener noreferrer"&gt;API&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Validate multiple signatures in a PDF
&lt;/h3&gt;

&lt;p&gt;When a PDF contains multiple signatures, validate them collectively using the &lt;strong&gt;validateSignatures()&lt;/strong&gt; method. The method evaluates every signature field in the document and returns both overall and signature-specific validation results.&lt;/p&gt;

&lt;p&gt;The following example validates all signatures in a PDF document:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Load the PDF document that contains multiple signatures.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfDocument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;documentData&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Configure the validation options.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;options&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;trustedCertificates&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;certificateData&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;passwords&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'syncfusion'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Validate all signatures in the PDF document.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;validationResult&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;validateSignatures&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;validationResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="n"&gt;validationResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s1"&gt;'Number of validated signatures: '&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
        &lt;span class="n"&gt;validationResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;validationResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="sb"&gt;`${result.signatureName}: ${result.isSignatureValid}`&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;// Determine whether all signatures are valid.&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;validationResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isValid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'All signatures in the PDF document are valid.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'One or more signatures in the PDF document are invalid.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;strong&gt;validationResult.isValid&lt;/strong&gt; property indicates the overall validation outcome for the document. Review the entries in &lt;strong&gt;validationResult.results&lt;/strong&gt; to inspect the status of each individual signature.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; For additional validation scenarios, review the digital signature validation &lt;a href="https://document.syncfusion.com/demos/document-library/javascript/#/tailwind3/pdf/digital-signature-validation.html" rel="noopener noreferrer"&gt;demo&lt;/a&gt; and &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/digitalsignature#digital-signature-validation" rel="noopener noreferrer"&gt;documentation&lt;/a&gt;. They include examples covering certificate validation, revocation checking, timestamp verification, and multi-signature validation processes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Understanding validation results
&lt;/h3&gt;

&lt;p&gt;The &lt;strong&gt;validationResult.isValid&lt;/strong&gt; property represents the overall validation outcome based on the validation options you supplied.&lt;/p&gt;

&lt;p&gt;However, developers should also review the individual entries in &lt;strong&gt;validationResult.results&lt;/strong&gt;, since each signature may have different validation outcomes for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Certificate trust.&lt;/li&gt;
&lt;li&gt;Timestamp verification.&lt;/li&gt;
&lt;li&gt;Revocation status.&lt;/li&gt;
&lt;li&gt;Certificate-chain validation.&lt;/li&gt;
&lt;li&gt;Document integrity.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reviewing individual validation results provides a more complete assessment than relying only on a single Boolean value. It also helps you make more informed trust decisions when processing signed PDF documents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build a trusted PDF signing and validation process
&lt;/h2&gt;

&lt;p&gt;Now that we’ve covered signing, timestamping, LTV, and validation individually, let’s see how they fit together in a complete process.&lt;/p&gt;

&lt;p&gt;Creating a trusted PDF process involves more than simply applying a digital signature. To ensure long-term document reliability, follow this recommended sequence:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Sign the PDF to establish document authenticity and integrity.&lt;/li&gt;
&lt;li&gt;Add a trusted timestamp to record when the document was signed.&lt;/li&gt;
&lt;li&gt;Enable LTV to embed revocation information required for future verification.&lt;/li&gt;
&lt;li&gt;Validate the signature before accepting, sharing, or archiving the document.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Following this process helps preserve the evidence needed to validate signed PDF documents after certificate expiration or when external revocation services are unavailable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Recommended process
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Step 1:&lt;/strong&gt; Sign the PDF using &lt;a href="https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature" rel="noopener noreferrer"&gt;PdfSignature.create()&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Step 2:&lt;/strong&gt; Add a timestamp using a TSA callback and &lt;a href="https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#saveasync" rel="noopener noreferrer"&gt;saveAsync()&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Step 3:&lt;/strong&gt; Reload the signed document and enable LTV using &lt;a href="https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature#enableltv" rel="noopener noreferrer"&gt;enableLTV()&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Step 4:&lt;/strong&gt; Validate the signature using validateSignature() or &lt;a href="https://ej2.syncfusion.com/documentation/api/pdf/pdfform#validatesignatures" rel="noopener noreferrer"&gt;validateSignatures()&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In production environments, these four stages represent the complete trust lifecycle of a signed PDF document. Each stage adds verification evidence that helps preserve trust beyond the initial signing event.&lt;/p&gt;

&lt;p&gt;By combining these stages, you can build secure and reliable PDF signing processes for contracts, compliance documents, business records, and other long-term digital documents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Why is a basic digital signature not enough for long-term PDF trust?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Certificates can expire, and revocation information may not always be available in the future. Without a trusted timestamp and Long-Term Validation (LTV), signature validation may lack the evidence required to verify the document over time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does a signature timestamp prove?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A trusted Time Stamping Authority (TSA) provides evidence of when a document was signed. This timestamp can help establish that the signature existed at a particular time and support verification against the signing certificate’s validity period.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is LTV in PDF digital signatures?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Long-Term Validation (LTV) embeds revocation information, such as OCSP and CRL responses, directly into the PDF. This helps support signature validation even when external revocation services are unavailable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does the JavaScript PDF Library support PDF digital signing?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. The Syncfusion JavaScript PDF Library supports certificate-based digital signatures for both new and existing PDF documents through the &lt;strong&gt;PdfSignature&lt;/strong&gt; and &lt;strong&gt;PdfSignatureField&lt;/strong&gt; classes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can LTV and timestamps be used together?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. You can add a timestamp when creating the digital signature and then enable Long-Term Validation (LTV) after signing to support long-term signature verification.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How are signatures validated with the library?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use &lt;strong&gt;signature.validate()&lt;/strong&gt; to validate an individual signature and &lt;strong&gt;document.form.validateSignatures()&lt;/strong&gt; to validate all signatures in a PDF document.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Digital signatures help verify the authenticity and integrity of PDF documents, but trusted timestamps, Long-Term Validation (LTV), and signature validation are essential for maintaining trust over time.&lt;/p&gt;

&lt;p&gt;In this blog, we explored how to sign PDFs in JavaScript, add trusted timestamps, enable LTV, and validate digital signatures using the Syncfusion &lt;a href="https://www.syncfusion.com/document-sdk/javascript-pdf-library" rel="noopener noreferrer"&gt;JavaScript PDF Library&lt;/a&gt;. By combining these capabilities, you can build secure PDF processes that remain verifiable long after documents are signed.&lt;/p&gt;

&lt;p&gt;Ready to get started? Explore the Syncfusion JavaScript PDF Library and add &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/digitalsignature" rel="noopener noreferrer"&gt;digital signing and validation capabilities&lt;/a&gt; to your applications.&lt;/p&gt;

&lt;p&gt;If you’re an existing Syncfusion user, download the latest version from the &lt;a href="https://www.syncfusion.com/account/downloads" rel="noopener noreferrer"&gt;license and downloads&lt;/a&gt; page. New users can start with a &lt;a href="https://www.syncfusion.com/downloads" rel="noopener noreferrer"&gt;free 30-day trial&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For questions or assistance, reach out through the &lt;a href="https://www.syncfusion.com/forums" rel="noopener noreferrer"&gt;support forum&lt;/a&gt;, &lt;a href="https://support.syncfusion.com/" rel="noopener noreferrer"&gt;support portal&lt;/a&gt;, or &lt;a href="https://www.syncfusion.com/feedback" rel="noopener noreferrer"&gt;feedback portal&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related blogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/pades-digital-signature-dotnet" rel="noopener noreferrer"&gt;How to Implement PAdES Digital Signatures in .NET for Long-Term PDF Validation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/add-in-app-digital-sign-wpf-pdf-viewer" rel="noopener noreferrer"&gt;Add Digital Signatures to a WPF PDF Viewer with a Click-to-Place eSign Workflow&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/syncfusion-pdf-library-vs-aspose-pdf" rel="noopener noreferrer"&gt;Syncfusion PDF Library vs Aspose.PDF: Comparing Features, Performance, and Accessibility&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/javascript-pdf-signature" rel="noopener noreferrer"&gt;How to Add and Customize Signature Blocks in PDFs Using JavaScript PDF Viewer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>javascript</category>
      <category>pdf</category>
      <category>web</category>
      <category>whatsnew</category>
    </item>
    <item>
      <title>Jev AI vs. Structured-Output LLMs: Which One Should You Actually Use?</title>
      <dc:creator>Jollen Moyani</dc:creator>
      <pubDate>Mon, 02 Nov 2026 22:30:00 +0000</pubDate>
      <link>https://dev.to/syncfusion/jev-ai-vs-structured-output-llms-which-one-should-you-actually-use-1ga1</link>
      <guid>https://dev.to/syncfusion/jev-ai-vs-structured-output-llms-which-one-should-you-actually-use-1ga1</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;em&gt;Choosing between Jev AI and structured-output LLMs? It comes down to the task. Jev AI is great for quick decisions like categorizing, scoring, and routing, while structured-output LLMs handle tasks like extracting data, explaining results, and planning. Need both? You can combine them. Just remember: well-formatted output doesn’t always mean a correct decision. Test with your own data, and keep critical business rules in your application code.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Imagine a customer submits a support ticket saying they’re locked out of their account. Your AI model reads the ticket, returns perfectly formatted JSON, and routes the issue to the billing team instead of security.&lt;/p&gt;

&lt;p&gt;Here’s an example response:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;{
  "route": "billing",
  "priority": "low",
  "requires_human_review": false
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The format is flawless. The decision is wrong.&lt;/p&gt;

&lt;p&gt;That’s the problem in a nutshell. A model can return an answer that passes every structural check and still misunderstand the actual situation.&lt;/p&gt;

&lt;p&gt;There are two approaches worth considering:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Structured-output LLMs:&lt;/strong&gt; Constrain a model’s response to a format or schema you define.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Typed decision models like Jev AI:&lt;/strong&gt; Return clear, bounded answers, such as a category, score, or yes/no probability.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this guide, we’ll explore how each approach works, when to use it, how to test it, and where document data fits into the process.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;A note on sources:&lt;/strong&gt; &lt;em&gt;Information about Jev AI and its maker, TypeSafe, in this article is based on their published documentation at the time of writing. Treat any performance, speed, cost, or capability claims as the provider’s reported figures until you’ve tested them with your own data. Always check the official TypeSafe &lt;a href="https://docs.typesafe.ai/introduction/quickstart" rel="noopener noreferrer"&gt;Quick Start&lt;/a&gt; and &lt;a href="https://docs.typesafe.ai/api/system-one" rel="noopener noreferrer"&gt;API Reference&lt;/a&gt; for the latest request and response formats before implementation.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How we used to handle messy model output
&lt;/h2&gt;

&lt;p&gt;For a long time, working with LLM output involved the same repetitive process: write detailed prompt instructions, parse the JSON, validate it, and retry whenever the response broke the expected format.&lt;/p&gt;

&lt;p&gt;Then providers such as OpenAI and Anthropic introduced structured-output features. These allow developers to constrain a model’s response to a predefined schema. That’s a significant improvement, although the exact rules and capabilities vary by provider and API version.&lt;/p&gt;

&lt;p&gt;Structured output helps address several common problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Required fields must be present.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Field types remain consistent.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Dropdown-style values stay within the allowed options.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Tool inputs match their definitions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Your application code spends less time handling malformed JSON.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, structured output doesn’t guarantee that the answer is correct. It controls the shape of the response, not the accuracy of the model’s judgment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Structured outputs in 60 seconds
&lt;/h2&gt;

&lt;p&gt;A structured-output LLM is a regular text-generating model configured to return its response in a format you define.&lt;/p&gt;

&lt;p&gt;For example, you might define a TypeScript type for assessing support tickets:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;TicketAssessment&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;summary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;route&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"billing"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"technical"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"account"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;urgency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;explanation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This approach is useful when a task requires more than a simple decision, such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Extracting multiple fields from a contract.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Writing an explanation for a human reviewer.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Summarizing an incident before categorizing it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Creating a step-by-step plan.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Converting a conversation into tool inputs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Returning supporting quotes or evidence alongside an answer.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The biggest advantage is flexibility. One model can interpret instructions, summarize information, generate text, call tools, and populate structured data.&lt;/p&gt;

&lt;p&gt;The limitation is that matching a schema doesn’t prove the content is accurate or that the model’s confidence is reliable. For example, a field such as “confidence”: 0.93 is just a number generated by the model until you’ve tested how often its predictions are actually correct.&lt;/p&gt;

&lt;h2&gt;
  
  
  So, what is Jev AI?
&lt;/h2&gt;

&lt;p&gt;Jev AI is TypeSafe’s flagship &lt;a href="https://docs.typesafe.ai/concepts/system-one" rel="noopener noreferrer"&gt;System One&lt;/a&gt; model. The name reflects its focus: quick, bounded judgments rather than lengthy reasoning or essay writing.&lt;/p&gt;

&lt;p&gt;Instead of returning paragraphs, Jev AI provides clear, typed answers.&lt;/p&gt;

&lt;p&gt;You send Jev two things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://docs.typesafe.ai/concepts/state" rel="noopener noreferrer"&gt;State&lt;/a&gt;:&lt;/strong&gt; The information it needs to evaluate, such as a support ticket, transaction, policy, or application data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Typed questions:&lt;/strong&gt; The specific decisions you want it to make.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Jev AI returns answers through three main building blocks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://docs.typesafe.ai/primitives/choice" rel="noopener noreferrer"&gt;Choice&lt;/a&gt;:&lt;/strong&gt; Selects one option from a list you define and provides the probability for each option, along with a confidence value.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://docs.typesafe.ai/primitives/score" rel="noopener noreferrer"&gt;Score&lt;/a&gt;:&lt;/strong&gt; Evaluates a situation against levels you define and returns a score, the probability for each level, and a confidence value.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://docs.typesafe.ai/primitives/noul" rel="noopener noreferrer"&gt;Noul&lt;/a&gt;:&lt;/strong&gt; Answers a single yes/no question and provides the probability that the answer is yes.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There’s also an experimental &lt;strong&gt;&lt;code&gt;Box&lt;/code&gt;&lt;/strong&gt; building block for image-related tasks. However, TypeSafe identifies it as a feature that is still changing, so avoid depending on it for critical workflows until its behavior is established. Always confirm these definitions in the current documentation.&lt;/p&gt;

&lt;p&gt;The key is to break a large decision into smaller, specific questions.&lt;/p&gt;

&lt;p&gt;Instead of asking a model, “Look at this ticket and decide what to do,” you could ask:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Choice:&lt;/strong&gt; Which team should handle this ticket?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Score:&lt;/strong&gt; How seriously is the customer affected?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Noul:&lt;/strong&gt; Does this situation require immediate human review?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your application code then uses those answers alongside business rules and authoritative account data to make the final decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  Jev AI vs. Structured-Output LLMs: A side-by-side comparison
&lt;/h2&gt;

&lt;p&gt;Capabilities vary by provider, model, and version. Use this comparison as a general guide rather than a guarantee about every available tool.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Comparison&lt;/th&gt;
      &lt;th&gt;Jev AI&lt;/th&gt;
      &lt;th&gt;Structured-output LLM&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;

  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;What do you send?&lt;/td&gt;
      &lt;td&gt;State and typed questions.&lt;/td&gt;
      &lt;td&gt;A prompt and a schema or tool definition.&lt;/td&gt;
    &lt;/tr&gt;

    &lt;tr&gt;
      &lt;td&gt;What do you get back?&lt;/td&gt;
      &lt;td&gt;
        &lt;strong&gt;&lt;code&gt;Choice&lt;/code&gt;&lt;/strong&gt;,
        &lt;strong&gt;&lt;code&gt;Score&lt;/code&gt;&lt;/strong&gt;, and
        &lt;strong&gt;&lt;code&gt;Noul&lt;/code&gt;&lt;/strong&gt; responses.
      &lt;/td&gt;
      &lt;td&gt;
        Objects, arrays, or tool inputs that match your schema.
      &lt;/td&gt;
    &lt;/tr&gt;

    &lt;tr&gt;
      &lt;td&gt;Can it generate prose?&lt;/td&gt;
      &lt;td&gt;Not really. That is not its primary purpose.&lt;/td&gt;
      &lt;td&gt;Yes, when the schema allows text fields.&lt;/td&gt;
    &lt;/tr&gt;

    &lt;tr&gt;
      &lt;td&gt;What confidence information is available?&lt;/td&gt;
      &lt;td&gt;
        &lt;strong&gt;&lt;code&gt;Choice&lt;/code&gt;&lt;/strong&gt; and
        &lt;strong&gt;&lt;code&gt;Score&lt;/code&gt;&lt;/strong&gt; provide probabilities and
        confidence. &lt;strong&gt;&lt;code&gt;Noul&lt;/code&gt;&lt;/strong&gt; provides a
        “yes” probability.
      &lt;/td&gt;
      &lt;td&gt;
        Some models provide confidence-like values, but you must test
        whether they are trustworthy.
      &lt;/td&gt;
    &lt;/tr&gt;

    &lt;tr&gt;
      &lt;td&gt;How is the output controlled?&lt;/td&gt;
      &lt;td&gt;It is constrained to the selected building block.&lt;/td&gt;
      &lt;td&gt;
        Some APIs enforce the schema, although the available features vary.
      &lt;/td&gt;
    &lt;/tr&gt;

    &lt;tr&gt;
      &lt;td&gt;Where should business rules live?&lt;/td&gt;
      &lt;td&gt;In your application code.&lt;/td&gt;
      &lt;td&gt;In your application code, not buried in prompts.&lt;/td&gt;
    &lt;/tr&gt;

    &lt;tr&gt;
      &lt;td&gt;What is it best suited for?&lt;/td&gt;
      &lt;td&gt;Sorting, scoring, routing, and gating.&lt;/td&gt;
      &lt;td&gt;Extracting, explaining, planning, and generating.&lt;/td&gt;
    &lt;/tr&gt;

    &lt;tr&gt;
      &lt;td&gt;What is the biggest limitation?&lt;/td&gt;
      &lt;td&gt;A valid answer can still be wrong.&lt;/td&gt;
      &lt;td&gt;A valid answer can still be wrong.&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Understanding Jev AI’s confidence values
&lt;/h2&gt;

&lt;p&gt;For &lt;strong&gt;&lt;code&gt;Choice&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;Score&lt;/code&gt;&lt;/strong&gt;, Jev AI provides a confidence value between 0 and 1. This value reflects how clearly the probabilities point toward one outcome.&lt;/p&gt;

&lt;p&gt;If one option clearly stands out, confidence is high. If the probabilities are close, confidence is low.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;Noul&lt;/code&gt;&lt;/strong&gt; doesn’t provide a separate confidence field. Its output is the probability that the yes/no statement is true.&lt;/p&gt;

&lt;p&gt;In either case, test these values against your own labeled data before relying on them.&lt;/p&gt;

&lt;h2&gt;
  
  
  A bounded answer can still be wrong
&lt;/h2&gt;

&lt;p&gt;Suppose a &lt;strong&gt;&lt;code&gt;Choice&lt;/code&gt;&lt;/strong&gt; question allows only four options: billing, technical, security, and other.&lt;/p&gt;

&lt;p&gt;Jev AI can’t return a fifth option outside that list. However, it can still select billing for a ticket that describes a security problem.&lt;/p&gt;

&lt;p&gt;Staying within the allowed options doesn’t mean the selected option is correct.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which one should you choose?
&lt;/h2&gt;

&lt;p&gt;Here’s a simple way to decide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Need text generation, data extraction, or planning? Use a &lt;strong&gt;structured-output LLM&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Need a clear, bounded decision? Try &lt;strong&gt;Jev AI&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Need to generate data and make decisions about it? Use &lt;strong&gt;both together&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Have a non-negotiable rule? Keep it in &lt;strong&gt;application code&lt;/strong&gt;, not in a model.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  First, where does the data come from?
&lt;/h2&gt;

&lt;p&gt;Here’s something that’s easy to overlook: both approaches depend on the quality of the data you provide.&lt;/p&gt;

&lt;p&gt;Feed a model incomplete or incorrect information, and you can get confident, well-formatted but equally incorrect results.&lt;/p&gt;

&lt;p&gt;In most business applications, that information starts in documents. These might include PDFs, Word files, Excel spreadsheets, scanned images, or email attachments.&lt;/p&gt;

&lt;p&gt;Converting these files into clean, usable data is a document-processing task. That’s where the Syncfusion&lt;sup&gt;®&lt;/sup&gt; &lt;a href="https://www.syncfusion.com/document-sdk" rel="noopener noreferrer"&gt;Document SDK&lt;/a&gt; can help:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.syncfusion.com/document-sdk/net-pdf-library" rel="noopener noreferrer"&gt;PDF Library&lt;/a&gt;:&lt;/strong&gt; Extract text and form data from PDF documents.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.syncfusion.com/document-sdk/net-word-library" rel="noopener noreferrer"&gt;Word Library (DocIO)&lt;/a&gt;:&lt;/strong&gt; Extract clauses, headings, and fields from Word documents.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.syncfusion.com/document-sdk/net-excel-library" rel="noopener noreferrer"&gt;Excel Library (XlsIO)&lt;/a&gt;:&lt;/strong&gt; Extract line items and totals from spreadsheets.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.syncfusion.com/document-sdk/net-pdf-library/ocr-process" rel="noopener noreferrer"&gt;OCR processor&lt;/a&gt;:&lt;/strong&gt; Convert scanned or image-based documents into readable text.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A typical document-to-AI pipeline
&lt;/h2&gt;

&lt;p&gt;A real-world pipeline might look like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Extract document content:&lt;/strong&gt; Use Syncfusion&lt;sup&gt;®&lt;/sup&gt; &lt;a href="https://www.syncfusion.com/document-sdk" rel="noopener noreferrer"&gt;Document SDK&lt;/a&gt; to retrieve content from the source file without involving an AI model.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Structure the data:&lt;/strong&gt; Use a structured-output LLM to organize the extracted content into fields such as names, dates, and line items.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Make bounded decisions:&lt;/strong&gt; Use Jev AI to answer specific questions about the structured data, such as which queue should handle it, how serious a mismatch is, or whether it should be escalated.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Apply application rules:&lt;/strong&gt; Use your code to enforce non-negotiable rules and validate decisions against authoritative data.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The benefit is straightforward: reliable document processing gives your AI layer cleaner input. This also helps ensure your tests measure the model’s performance rather than errors introduced during document parsing.&lt;/p&gt;

&lt;p&gt;Explore the Syncfusion &lt;a href="https://help.syncfusion.com/document-processing/introduction" rel="noopener noreferrer"&gt;Document SDK documentation&lt;/a&gt; and samples to find the formats and APIs that fit your platform.&lt;/p&gt;

&lt;h2&gt;
  
  
  A smart way to connect everything
&lt;/h2&gt;

&lt;p&gt;The golden rule is simple: keep model judgments separate from hard rules.&lt;/p&gt;

&lt;p&gt;Security, authentication, permissions, compliance, and validation rules should run independently. A model must never be allowed to override them.&lt;/p&gt;

&lt;p&gt;Here’s the workflow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Start with a document source, such as a PDF, Word document, Excel spreadsheet, or scanned file.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use the Syncfusion&lt;sup&gt;®&lt;/sup&gt; &lt;a href="https://www.syncfusion.com/document-sdk" rel="noopener noreferrer"&gt;Document SDK&lt;/a&gt; to extract the content and convert it into application data (state).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Send that state through two separate paths:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Path 1 – Hard rules:&lt;/strong&gt; Apply security, authentication, and compliance checks to determine the enforced outcome.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Path 2 – Model judgments:&lt;/strong&gt; Use Jev AI or a structured-output LLM, then validate the results against your checks and risk thresholds.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Automate the action when the result is sufficiently reliable and low risk.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Send uncertain or high-risk results to a human reviewer.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Example: Enforcing a Security Policy Before Routing a Ticket
&lt;/h2&gt;

&lt;p&gt;The following example illustrates how application code can enforce a mandatory security rule before using model-generated decisions.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; &lt;em&gt;This is a conceptual example, not production-ready SDK code. It is not a real Jev integration, and TicketDecision is not a real Jev type. A production implementation would also need to handle authentication errors, timeouts, rate limits, and unexpected responses. Refer to the official TypeSafe documentation for the actual request and response formats.&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;Department&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"billing"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"technical"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"security"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"other"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;TicketState&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;suspectedAccountCompromise&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;TicketDecision&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;department&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;choice&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;confidence&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;immediateEscalation&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;noul&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;impact&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;score&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;confidence&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;NextStep&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"security_review"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"mandatory_security_policy"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"human_review"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"auto_route"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;team&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Department&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;departments&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"billing"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"technical"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"security"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"other"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;isDepartment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="nc"&gt;Department&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;departments&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="k"&gt;readonly&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;inUnitInterval&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
  &lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"number"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isFinite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;inImpactRange&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
  &lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"number"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isFinite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;chooseNextStep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;TicketState&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;TicketDecision&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;NextStep&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// Hard rule always wins, no matter what the model says.&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;suspectedAccountCompromise&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"security_review"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"mandatory_security_policy"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;department&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;department&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;immediateEscalationProbability&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;immediateEscalation&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;noul&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;impact&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;impact&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;valid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="n"&gt;department&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="nf"&gt;isDepartment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;department&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;choice&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="nf"&gt;inUnitInterval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;department&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;confidence&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="nf"&gt;inUnitInterval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;immediateEscalationProbability&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="n"&gt;impact&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="nf"&gt;inImpactRange&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;impact&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;score&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="nf"&gt;inUnitInterval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;impact&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;confidence&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;valid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"human_review"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"invalid_or_missing_model_output"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sensitiveRoute&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;department&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;choice&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"security"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;impact&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;score&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mf"&gt;2.5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;uncertain&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;department&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;confidence&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.85&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;impact&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;confidence&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.8&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sensitiveRoute&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;uncertain&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;immediateEscalationProbability&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mf"&gt;0.75&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"human_review"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"risk_or_uncertainty_threshold"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"auto_route"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;team&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;department&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;choice&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Understanding the impact scale
&lt;/h3&gt;

&lt;p&gt;The example uses the following impact levels:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;0:&lt;/strong&gt; Nobody notices.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;1:&lt;/strong&gt; Minor issue, with a workaround available.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;2:&lt;/strong&gt; Something important is broken for one or more users.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;3:&lt;/strong&gt; A major outage, security exposure, or similar issue.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The thresholds in the example, 2.5, 0.85, 0.80, and 0.75, are illustrative values, not recommended defaults.&lt;/p&gt;

&lt;p&gt;Choose your own thresholds using real labeled data. Consider the cost of an incorrect decision, your team’s review capacity, and how easily an action can be reversed.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;&lt;code&gt;Noul&lt;/code&gt;&lt;/strong&gt; question in this example is: “Does this ticket need a human right away?”&lt;/p&gt;

&lt;p&gt;Define exactly what that question means before allowing its probability to influence an application action.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where can you use these approaches?
&lt;/h2&gt;

&lt;p&gt;Here are three practical scenarios where Jev AI and structured-output LLMs can work together.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Support and incident triage
&lt;/h3&gt;

&lt;p&gt;Jev AI is useful when you repeatedly need to route support tickets to teams, score their impact, or identify possible escalations.&lt;/p&gt;

&lt;p&gt;A structured-output LLM is a better fit when you also need to summarize a ticket, extract reproduction steps, or draft a response.&lt;/p&gt;

&lt;p&gt;Known account-compromise signals should always follow the mandatory security path. Jev AI can help assess less obvious cases, but it should never override that rule.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. AI-Agent guardrails
&lt;/h3&gt;

&lt;p&gt;Before an AI agent issues a refund, changes permissions, or deploys an application, a typed decision model can provide a risk signal.&lt;/p&gt;

&lt;p&gt;However, authentication, permission checks, limits, and audit logging remain the responsibility of your application.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Document processing
&lt;/h3&gt;

&lt;p&gt;Structured-output LLMs are generally better suited to extracting names, dates, clauses, and line items from documents. This can happen after a Syncfusion&lt;sup&gt;®&lt;/sup&gt; &lt;a href="https://www.syncfusion.com/document-sdk" rel="noopener noreferrer"&gt;Document SDK&lt;/a&gt; has already converted the source file into clean text.&lt;/p&gt;

&lt;p&gt;Jev AI can then evaluate the extracted information and make bounded decisions. For example, it can assign a review queue, score the seriousness of a mismatch, or assess whether enough evidence exists to automate a step.&lt;/p&gt;

&lt;p&gt;In this workflow, one model turns content into structured data, while the other makes bounded decisions about that data.&lt;/p&gt;

&lt;p&gt;Both approaches still need validation against your actual records.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to test it properly (don’t skip this)
&lt;/h2&gt;

&lt;p&gt;Before using either approach in a real workflow, you need to understand how reliably it performs.&lt;/p&gt;

&lt;p&gt;First, let’s clarify one important term: &lt;strong&gt;calibration&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Calibration measures whether a model’s confidence matches reality. For example, if a model says it is 90% confident across a group of predictions, it should be correct about 90% of the time for that group to be well calibrated.&lt;/p&gt;

&lt;p&gt;If the confidence doesn’t match actual results, you shouldn’t rely on that number to make decisions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Start with a labeled test set
&lt;/h3&gt;

&lt;p&gt;Choose one workflow that is easy to reverse. Before connecting the model to a real action, build a labeled test set.&lt;/p&gt;

&lt;p&gt;Include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Normal, straightforward cases.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ambiguous cases.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cases with missing information.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unusually worded or misleading cases.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Rare but high-impact scenarios.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also, keep the following points in mind:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;For Choice:&lt;/strong&gt; Add an other or needs_review option unless your list of choices is genuinely complete.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;For Score:&lt;/strong&gt; Define each level using observable criteria.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;For Noul:&lt;/strong&gt; Ask one question at a time so the response remains clear.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  A practical testing checklist
&lt;/h3&gt;

&lt;p&gt;Once your test set is ready, follow these steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Ask domain experts to define the correct answers and resolve disagreements.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Build a confusion matrix to identify which categories are being mixed up.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Measure precision and recall for each category instead of relying only on overall accuracy.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Test calibration by grouping predictions and comparing their confidence with actual outcomes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set thresholds based on risk, review capacity, and the cost of mistakes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Run the new approach in shadow mode, where it observes cases without taking action.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Track speed (P50, P95, and P99), cost per decision, escalation frequency, and changes in the input data over time.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  A quick example: Measuring security recall
&lt;/h3&gt;

&lt;p&gt;Suppose you test 100 confirmed security incidents.&lt;/p&gt;

&lt;p&gt;The system correctly routes 92 incidents to security and misses eight. That gives you 92% recall for security on this test set.&lt;/p&gt;

&lt;p&gt;That’s useful information, but it doesn’t tell you how often the system incorrectly routes non-security tickets to the security team.&lt;/p&gt;

&lt;p&gt;To measure that, calculate precision using the false positives across your full test set. Then validate both precision and recall using fresh holdout data before moving to production.&lt;/p&gt;

&lt;h3&gt;
  
  
  Roll out gradually and monitor results
&lt;/h3&gt;

&lt;p&gt;Once shadow testing produces acceptable results, roll out the workflow gradually. Define your rollback conditions before enabling live actions.&lt;/p&gt;

&lt;p&gt;Consider rolling back if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Security recall drops.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Confidence calibration changes significantly.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Human review volume increases unexpectedly.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Response times become too slow.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The cost of correcting mistakes becomes too high.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One more recommendation: pin the model version whenever possible.&lt;/p&gt;

&lt;p&gt;If the provider uses a moving model label, record the label, date, questions, evaluation criteria, and test results. Repeat your tests whenever the provider changes the model or its behavior.&lt;/p&gt;

&lt;p&gt;Finally, treat any speed or cost figures published by TypeSafe as provider-reported results until you reproduce them using your own data, traffic, and review process.&lt;/p&gt;

&lt;h2&gt;
  
  
  Still not sure? Follow this decision flow
&lt;/h2&gt;

&lt;p&gt;Use these questions to choose the right approach:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Need generated text, data extraction, or variable-length output? Use a &lt;strong&gt;structured-output LLM&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Can the task be expressed as a choice, score, or yes/no question? Try a &lt;strong&gt;typed decision model like Jev AI&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Does the task fit neither approach? Rework it or handle it in plain application code.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Need to generate data and make decisions about it? Use &lt;strong&gt;both approaches together&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Is the requirement a non-negotiable rule involving security, authentication, or compliance? Enforce it in &lt;strong&gt;application code&lt;/strong&gt;, never in a model.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick glossary
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;System One model:&lt;/strong&gt; A model designed for fast, bounded decisions rather than deep reasoning.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Noul:&lt;/strong&gt; A Jev AI building block that returns the probability that a yes/no statement is true.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Calibration:&lt;/strong&gt; A measure of whether a model’s confidence matches how often it is correct.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Constrained decoding:&lt;/strong&gt; A technique that constrains a model’s output to a defined structure.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Semantic correctness:&lt;/strong&gt; Whether an answer is actually correct, rather than simply well-formatted.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Q1: What can I feed Jev AI?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;According to TypeSafe’s documentation, Jev AI accepts text in the form of a string, JSON object, or array of text values. It doesn’t directly accept audio or video.&lt;/p&gt;

&lt;p&gt;Convert those inputs into text first. A document SDK can help process supported files, but you should still validate the converted content before relying on the resulting decision.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q2: Can I use Jev AI for regulated decisions?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Jev AI can assist with regulated workflows, but a probability alone may not satisfy requirements involving explanations, fairness, or auditing.&lt;/p&gt;

&lt;p&gt;Keep records of the input, questions, model version, probabilities, final outcome, and any human overrides. Obtain legal and compliance approval before automating high-impact decisions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q3: What if Jev AI needs information that isn’t in the data I sent?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A well-structured answer doesn’t prove that the input data is complete.&lt;/p&gt;

&lt;p&gt;Retrieve authoritative information before making the decision, identify missing values clearly, and provide an unknown or human-review path wherever missing information could affect the outcome.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q4: If I use Jev AI, do I still need structured-output LLMs?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Usually, yes.&lt;/p&gt;

&lt;p&gt;Many real-world implementations use a structured-output LLM, together with a document SDK, to prepare the data. A typed decision model can then evaluate that data.&lt;/p&gt;

&lt;p&gt;They work better as complementary tools than as competing alternatives.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Think of Jev AI as a specialist for small, clearly defined decisions such as sorting, scoring, and routing. Structured-output LLMs are generalists that handle tasks such as extracting information, explaining results, planning, and generating text.&lt;/p&gt;

&lt;p&gt;Many applications can benefit from using both. Keep non-negotiable rules in your application code, and use a reliable document-processing layer to provide clean input data.&lt;/p&gt;

&lt;p&gt;Start with one workflow that you can easily reverse. Evaluate accuracy, precision and recall for each category, calibration, speed, escalation rate, and cost using real data.&lt;/p&gt;

&lt;p&gt;Only after those results meet your requirements should you allow a model to influence a live action.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to go next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Review the current Jev AI building blocks and supported formats in the official TypeSafe Quick Start and API Reference.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Explore the Syncfusion &lt;a href="https://help.syncfusion.com/document-processing/introduction" rel="noopener noreferrer"&gt;Document SDK documentation&lt;/a&gt; to learn how to convert PDFs, Word documents, Excel spreadsheets, and scanned files into usable data for your AI workflows.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Try an extract-then-decide pipeline using one of your own documents.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Start a &lt;a href="https://www.syncfusion.com/downloads/document-sdk?tag=es-seo-document-sdk-download-trial" rel="noopener noreferrer"&gt;free Syncfusion trial&lt;/a&gt; and evaluate the Document SDKs in your application.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related Blogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/multi-agent-ai-systems-code-governance" rel="noopener noreferrer"&gt;Multi-Agent AI Systems: A Smarter Way to Detect and Manage Technical Debt&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/ai-coding-assistant-agent-skills-mcp" rel="noopener noreferrer"&gt;Build Faster with Syncfusion AI Coding Assistant Tools: Agent Skills and MCP Servers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/ai-guardrails-coding-agents" rel="noopener noreferrer"&gt;Why AI Coding Agents Go Off Scope and How Guardrails Fix It&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/ai-ide-evaluation-guide" rel="noopener noreferrer"&gt;How to Evaluate an AI IDE in 2026: Features That Matter for Development Teams&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>agenticide</category>
      <category>ai</category>
      <category>developer</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How to Compare PDF Documents in JavaScript Using Syncfusion PDF Viewer</title>
      <dc:creator>Jollen Moyani</dc:creator>
      <pubDate>Fri, 30 Oct 2026 21:30:00 +0000</pubDate>
      <link>https://dev.to/syncfusion/how-to-compare-pdf-documents-in-javascript-using-syncfusion-pdf-viewer-22d8</link>
      <guid>https://dev.to/syncfusion/how-to-compare-pdf-documents-in-javascript-using-syncfusion-pdf-viewer-22d8</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;em&gt;Manually comparing PDF versions can be slow and error-prone. This blog shows how to use the JavaScript PDF Viewer to automatically detect content added, deleted, or modified between PDF revisions. Learn how to implement side-by-side comparison with the built-in PDF Comparer and build custom comparison experiences using semantic comparison APIs. These capabilities help reduce review effort, improve accuracy, and simplify document review processes.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When a PDF document is updated, how do you quickly find what has changed from the previous version?&lt;/p&gt;

&lt;p&gt;Reviewing both versions page by page can be time-consuming, especially when working with lengthy documents. Important changes can easily go unnoticed, making the review process more difficult.&lt;/p&gt;

&lt;p&gt;The Syncfusion &lt;a href="https://www.syncfusion.com/pdf-viewer-sdk/javascript-pdf-viewer" rel="noopener noreferrer"&gt;JavaScript PDF Viewer&lt;/a&gt; in the &lt;a href="https://help.syncfusion.com/common/essential-studio/release-notes/v35.1.37" rel="noopener noreferrer"&gt;2026 Volume 3 release&lt;/a&gt; simplifies &lt;a href="https://www.syncfusion.com/pdf-viewer-sdk/compare-documents" rel="noopener noreferrer"&gt;PDF document comparison&lt;/a&gt;. Developers can use the built-in &lt;strong&gt;&lt;code&gt;PdfComparer&lt;/code&gt;&lt;/strong&gt; component to compare documents side by side or use the &lt;strong&gt;&lt;code&gt;semanticTextCompare()&lt;/code&gt;&lt;/strong&gt; API to build custom comparison experiences within their applications.&lt;/p&gt;

&lt;p&gt;Let’s explore both approaches and see how to implement them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does PDF document comparison do?
&lt;/h2&gt;

&lt;p&gt;PDF document comparison identifies text differences between two versions of a document. It helps reviewers find:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Added text:&lt;/strong&gt; Content introduced in the modified document.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deleted text:&lt;/strong&gt; Content present in the original document but removed from the updated version.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Modified text:&lt;/strong&gt; Existing content that has changed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, a contract review application can compare two revisions and direct reviewers to updated clauses instead of asking them to reread the entire document.&lt;/p&gt;

&lt;p&gt;Semantic comparison focuses on text changes rather than every visual difference in a PDF’s layout, images, or formatting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compare PDF versions using the built-in PDF Comparer
&lt;/h2&gt;

&lt;p&gt;If your application needs a ready-made comparison interface, use the &lt;strong&gt;&lt;code&gt;PdfComparer&lt;/code&gt;&lt;/strong&gt; component. It displays the original and modified documents side by side, with a differences panel for navigating detected changes.&lt;/p&gt;

&lt;p&gt;The interface includes three areas:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
    &lt;colgroup&gt;
        &lt;col&gt;
        &lt;col&gt;
    &lt;/colgroup&gt;
    &lt;thead&gt;
        &lt;tr&gt;
            &lt;th&gt;Area&lt;/th&gt;
            &lt;th&gt;Purpose&lt;/th&gt;
        &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;Original document&lt;/td&gt;
            &lt;td&gt;Displays the baseline PDF.&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;Modified document&lt;/td&gt;
            &lt;td&gt;Displays the updated PDF.&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;Differences panel&lt;/td&gt;
            &lt;td&gt;Lists detected differences and helps users navigate to them.&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Users can select a difference in the panel to jump to the corresponding content in both documents. This makes the built-in comparer a practical choice when you want to add PDF comparison without building the entire interface yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started with PDF comparison
&lt;/h2&gt;

&lt;p&gt;The following example initializes the PDF Comparer with two sample documents.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Add the Syncfusion resources&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Create an HTML file and include the Syncfusion Essential JS 2 stylesheet and JavaScript bundle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Initialize the comparer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Create a container for the comparer, provide the paths to the original and modified PDFs, and specify the PDF Viewer resource URL.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"utf-8"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;PDF Document Comparison&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt;
    &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://cdn.syncfusion.com/ej2/34.2.4/fluent2.css"&lt;/span&gt;
    &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt;
    &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://cdn.syncfusion.com/ej2/34.2.4/dist/ej2.min.js"&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text/javascript"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;html&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nn"&gt;#comparer-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"comparer-container"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;comparer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdfviewer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfComparer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;originalDocumentPath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="s2"&gt;"https://cdn.syncfusion.com/content/pdf/original-document.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;modifiedDocumentPath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="s2"&gt;"https://cdn.syncfusion.com/content/pdf/modified-document.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;resourceUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="s2"&gt;"https://cdn.syncfusion.com/ej2/34.2.4/dist/ej2-pdfviewer-lib"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="n"&gt;comparer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"#comparer-container"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the sample PDF URLs with the documents your application needs to compare. Make sure the documents are accessible to the browser and that the resource URL matches the Syncfusion version used by your project.&lt;/p&gt;

&lt;p&gt;Once the documents load, the comparer analyzes their text and displays the detected differences.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuy3g15v1fv9gnjhf7dor.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuy3g15v1fv9gnjhf7dor.png" alt="Built-in PDF Comparer interface showing the original and modified documents"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Built-in PDF Comparer&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Customize the comparison highlights
&lt;/h3&gt;

&lt;p&gt;Different applications may need different visual indicators for document changes. For example, a contract review tool might use one color for deleted text and another for added text.&lt;/p&gt;

&lt;p&gt;Use the &lt;a href="https://ej2.syncfusion.com/javascript/documentation/api/pdfcomparer/index-default#comparisonoptions" rel="noopener noreferrer"&gt;comparisonOptions&lt;/a&gt; property to configure highlight colors, opacity, and visibility.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;comparisonOptions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;beforeColor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"#F17720"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;afterColor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"#0474BA"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;beforeColorOpacity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;afterColorOpacity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;enableHighlights&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;comparer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdfviewer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfComparer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;originalDocumentPath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"https://cdn.syncfusion.com/content/pdf/original-document.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;modifiedDocumentPath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"https://cdn.syncfusion.com/content/pdf/modified-document.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;resourceUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"https://cdn.syncfusion.com/ej2/34.2.4/dist/ej2-pdfviewer-lib"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;comparisonOptions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;comparisonOptions&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;comparer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"#comparer-container"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, deleted content in the original document is highlighted in orange, while added content in the modified document is highlighted in blue. The opacity settings control how strongly the highlights appear.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flag777o2akn2288fh3mk.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flag777o2akn2288fh3mk.gif" alt="Custom text comparison with different highlight colors"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Custom text comparison&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You can also hide the differences panel when users need more space to read the documents. Set &lt;a href="https://ej2.syncfusion.com/javascript/documentation/api/pdfcomparer/index-default#enabledifferencepanel" rel="noopener noreferrer"&gt;enableDifferencePanel&lt;/a&gt; to &lt;strong&gt;&lt;code&gt;false&lt;/code&gt;&lt;/strong&gt; :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;comparer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdfviewer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfComparer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;originalDocumentPath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"https://cdn.syncfusion.com/content/pdf/original-document.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;modifiedDocumentPath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"https://cdn.syncfusion.com/content/pdf/modified-document.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;resourceUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"https://cdn.syncfusion.com/ej2/34.2.4/dist/ej2-pdfviewer-lib"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;comparisonOptions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;comparisonOptions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;enableDifferencePanel&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;comparer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"#comparer-container"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The inline highlights remain available, while the side panel is hidden.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgltuf9kfui35k3o2zdt2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgltuf9kfui35k3o2zdt2.png" alt="PDF comparison with the differences panel hidden"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Hide the differences panel&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Keep both documents synchronized
&lt;/h3&gt;

&lt;p&gt;When reviewers scroll through one document, they often need to find the same section in the other. Synchronized navigation reduces this extra work by keeping scrolling and zooming aligned.&lt;/p&gt;

&lt;p&gt;Enable it with the &lt;strong&gt;&lt;code&gt;enableSyncScrolling&lt;/code&gt;&lt;/strong&gt; property:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;comparer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdfviewer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfComparer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;originalDocumentPath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"https://cdn.syncfusion.com/content/pdf/original-document.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;modifiedDocumentPath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"https://cdn.syncfusion.com/content/pdf/modified-document.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;resourceUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"https://cdn.syncfusion.com/ej2/34.2.4/dist/ej2-pdfviewer-lib"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;comparisonOptions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;comparisonOptions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;enableSyncScrolling&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;comparer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"#comparer-container"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This setting is useful when reviewers need to move between corresponding sections in long documents.&lt;/p&gt;

&lt;p&gt;For additional configuration options, see the &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es6/semantic-text-comparison/overview" rel="noopener noreferrer"&gt;PDF Comparer documentation&lt;/a&gt; and explore the &lt;a href="https://document.syncfusion.com/demos/pdf-viewer/javascript/#/bootstrap5/pdfviewer/semantic-text-comparison.html" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build a custom PDF comparison interface
&lt;/h2&gt;

&lt;p&gt;The built-in comparer is a good fit for applications that need a ready-made review experience. However, some applications require a different layout or need to integrate comparison results into an existing workflow.&lt;/p&gt;

&lt;p&gt;For example, you might want to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Display the documents inside a custom dashboard or modal.&lt;/li&gt;
&lt;li&gt;Keep the PDF Viewer’s existing tools and custom toolbar.&lt;/li&gt;
&lt;li&gt;Build your own differences panel or change log.&lt;/li&gt;
&lt;li&gt;Use detected differences in an approval workflow.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In these cases, initialize two &lt;strong&gt;&lt;code&gt;PdfViewer&lt;/code&gt;&lt;/strong&gt; instances and compare them using the &lt;a href="https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/index-default#semantictextcompare" rel="noopener noreferrer"&gt;semanticTextCompare()&lt;/a&gt; API.&lt;/p&gt;

&lt;h3&gt;
  
  
  How custom comparison works
&lt;/h3&gt;

&lt;p&gt;The implementation follows four steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Load the original PDF into the first viewer.&lt;/li&gt;
&lt;li&gt;Load the modified PDF into the second viewer.&lt;/li&gt;
&lt;li&gt;Call &lt;strong&gt;&lt;code&gt;semanticTextCompare()&lt;/code&gt;&lt;/strong&gt; to compare their text.&lt;/li&gt;
&lt;li&gt;Use the returned results to display differences in your own interface.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This approach gives you more control over the layout and how comparison results are presented. In return, your application must manage the viewer layout, loading state, navigation, and comparison controls.&lt;/p&gt;

&lt;h3&gt;
  
  
  Implement semantic comparison
&lt;/h3&gt;

&lt;p&gt;The following example creates two PDF Viewer instances, synchronizes their navigation, and adds controls to compare documents and clear comparison results.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"utf-8"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Custom PDF Comparison&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt;
    &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://cdn.syncfusion.com/ej2/34.2.4/fluent2.css"&lt;/span&gt;
    &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt;
    &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://cdn.syncfusion.com/ej2/34.2.4/dist/ej2.min.js"&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text/javascript"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;html&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nn"&gt;#controls&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;8px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;8px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nn"&gt;#container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;calc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100vh&lt;/span&gt; &lt;span class="n"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;50px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nn"&gt;#pdfViewer1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nn"&gt;#pdfViewer2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"controls"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"compareButton"&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"button"&lt;/span&gt; &lt;span class="na"&gt;disabled&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      Compare documents
    &lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"syncButton"&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"button"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      Disable sync
    &lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"clearButton"&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"button"&lt;/span&gt; &lt;span class="na"&gt;disabled&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      Clear comparison
    &lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"container"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"pdfViewer1"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"pdfViewer2"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;resourceUrl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
      &lt;span class="s2"&gt;"https://cdn.syncfusion.com/ej2/34.2.4/dist/ej2-pdfviewer-lib"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pdfViewer1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdfviewer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfViewer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;documentPath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="s2"&gt;"https://cdn.syncfusion.com/content/pdf/original-document.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;resourceUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;resourceUrl&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pdfViewer2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ej&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdfviewer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PdfViewer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;documentPath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="s2"&gt;"https://cdn.syncfusion.com/content/pdf/modified-document.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;resourceUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;resourceUrl&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;loadedCount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;synchronizationEnabled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;comparisonCreated&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;onDocumentLoaded&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;loadedCount&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;loadedCount&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;pdfViewer1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;syncViewers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="n"&gt;pdfViewer2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;synchronizationEnabled&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"compareButton"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;disabled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="n"&gt;pdfViewer1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;documentLoad&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;onDocumentLoaded&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;pdfViewer2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;documentLoad&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;onDocumentLoaded&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"compareButton"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"click"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;loadedCount&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;options&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="n"&gt;beforeColor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"#F17720"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;afterColor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"#0474BA"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;beforeColorOpacity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;afterColorOpacity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;enableHighlights&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;pdfViewer1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;semanticTextCompare&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="n"&gt;pdfViewer2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;options&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Comparison results:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;comparisonCreated&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"clearButton"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;disabled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"syncButton"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"click"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;synchronizationEnabled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;synchronizationEnabled&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="n"&gt;pdfViewer1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;syncViewers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="n"&gt;pdfViewer2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;synchronizationEnabled&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;synchronizationEnabled&lt;/span&gt;
          &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;"Disable sync"&lt;/span&gt;
          &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Enable sync"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"clearButton"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"click"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;comparisonCreated&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="n"&gt;pdfViewer1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;removeSemanticTextCompare&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pdfViewer2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;comparisonCreated&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;disabled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="n"&gt;pdfViewer1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"#pdfViewer1"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;pdfViewer2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"#pdfViewer2"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The example uses the same sample documents as the built-in comparer. Replace them with your own document URLs when integrating the code into an application.&lt;/p&gt;

&lt;p&gt;The Compare button calls &lt;strong&gt;&lt;code&gt;semanticTextCompare()&lt;/code&gt;&lt;/strong&gt; and logs the returned result to the browser console. The result contains structured information about detected differences, organized by document and page. You can use this data to build a custom differences panel, change log, or approval interface.&lt;/p&gt;

&lt;p&gt;The synchronization button enables or disables synchronized navigation. The Clear comparison button calls &lt;strong&gt;&lt;code&gt;removeSemanticTextCompare()&lt;/code&gt;&lt;/strong&gt; to remove the comparison results while preserving user-created annotations.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcmqn00aehz9drmgy4ywi.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcmqn00aehz9drmgy4ywi.gif" alt="Show or hide PDF difference highlights"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Show or hide difference highlights&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Use the comparison results in your application
&lt;/h3&gt;

&lt;p&gt;The &lt;strong&gt;&lt;code&gt;semanticTextCompare()&lt;/code&gt;&lt;/strong&gt; method returns a structured result that includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;originalDocumentAnnotations&lt;/code&gt;&lt;/strong&gt; : detected differences associated with the original document.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;modifiedDocumentAnnotations&lt;/code&gt;&lt;/strong&gt; : detected differences associated with the modified document.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;totalTextDiffCount&lt;/code&gt;&lt;/strong&gt; : the total number of unique text differences detected.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These results allow you to build a custom experience instead of relying on the built-in differences panel. For example, you could list changes by page, display a summary of the differences, or connect the results to an approval process.&lt;/p&gt;

&lt;p&gt;Note that annotation text may also appear as added content in comparison results. If your workflow needs to clear the comparison results while keeping user-created annotations, use &lt;a href="https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/index-default#removesemantictextcompare" rel="noopener noreferrer"&gt;removeSemanticTextCompare()&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For a complete working reference, see the &lt;a href="https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/Semantic%20Text%20Comparison/Programmatically%20get%20differences" rel="noopener noreferrer"&gt;GitHub example for custom semantic PDF comparison&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which comparison approach should you use?
&lt;/h2&gt;

&lt;p&gt;Choose the built-in comparer when you want a ready-made side-by-side interface with a differences panel. Choose the custom approach when your application needs a different layout, custom navigation, or direct access to comparison results.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
    &lt;colgroup&gt;
        &lt;col&gt;
        &lt;col&gt;
    &lt;/colgroup&gt;
    &lt;thead&gt;
        &lt;tr&gt;
            &lt;th&gt;Requirement&lt;/th&gt;
            &lt;th&gt;Recommended approach&lt;/th&gt;
        &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;Display two PDFs with a built-in differences panel&lt;/td&gt;
            &lt;td&gt;&lt;code&gt;PdfComparer&lt;/code&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;Customize highlight colors and opacity&lt;/td&gt;
            &lt;td&gt;Either approach&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;Synchronize document navigation&lt;/td&gt;
            &lt;td&gt;Either approach&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;Build a custom differences panel&lt;/td&gt;
            &lt;td&gt;&lt;code&gt;semanticTextCompare()&lt;/code&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;Integrate comparison results into an existing workflow&lt;/td&gt;
            &lt;td&gt;&lt;code&gt;semanticTextCompare()&lt;/code&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;Control the complete viewer layout&lt;/td&gt;
            &lt;td&gt;Two &lt;code&gt;PdfViewer&lt;/code&gt; instances&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Q1: When should I use the built-in PDF Comparer instead of a custom implementation?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use &lt;strong&gt;&lt;code&gt;PdfComparer&lt;/code&gt;&lt;/strong&gt; when you need a ready-made side-by-side interface with a differences panel. Choose the custom approach when you need full control over the layout, navigation, or presentation of comparison results.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q2:Can I create my own differences panel?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. The &lt;strong&gt;&lt;code&gt;semanticTextCompare()&lt;/code&gt;&lt;/strong&gt; API returns structured comparison results that you can use to create a custom panel, change log, or review workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q3: Can I customize comparison highlight colors?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. Configure &lt;strong&gt;&lt;code&gt;beforeColor&lt;/code&gt;&lt;/strong&gt; , &lt;strong&gt;&lt;code&gt;afterColor&lt;/code&gt;&lt;/strong&gt; , &lt;strong&gt;&lt;code&gt;beforeColorOpacity&lt;/code&gt;&lt;/strong&gt; , and &lt;strong&gt;&lt;code&gt;afterColorOpacity&lt;/code&gt;&lt;/strong&gt; through the comparison options.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q4: Will clearing comparison results remove user-created annotations?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;&lt;code&gt;removeSemanticTextCompare()&lt;/code&gt;&lt;/strong&gt; API is intended to remove semantic comparison results while preserving other user-created annotations. Test this behavior with your target Syncfusion version and annotation workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q6: Does PDF comparison detect every visual change?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No. Semantic comparison focuses on text differences. Changes to layout, images, or other visual elements may not be represented as text differences.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Comparing PDF versions does not have to mean checking every page manually. Syncfusion &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es6/overview" rel="noopener noreferrer"&gt;JavaScript PDF Viewer&lt;/a&gt; provides two ways to build a better review experience: use &lt;strong&gt;&lt;code&gt;PdfComparer&lt;/code&gt;&lt;/strong&gt; for a ready-made interface or use &lt;strong&gt;&lt;code&gt;semanticTextCompare()&lt;/code&gt;&lt;/strong&gt; to create a custom workflow around the results.&lt;/p&gt;

&lt;p&gt;Explore the &lt;a href="https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es6/semantic-text-comparison/overview" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; and &lt;a href="https://document.syncfusion.com/demos/pdf-viewer/javascript/#/bootstrap5/pdfviewer/semantic-text-comparison.html" rel="noopener noreferrer"&gt;live demos&lt;/a&gt; to see the feature in action. Existing Syncfusion customers can download the latest release from the License &amp;amp; Downloads page, while new users can get started with a 30-day free trial.&lt;/p&gt;

&lt;p&gt;For questions or feedback, visit the Syncfusion &lt;a href="https://www.syncfusion.com/forums" rel="noopener noreferrer"&gt;support forums&lt;/a&gt;, &lt;a href="https://support.syncfusion.com/" rel="noopener noreferrer"&gt;support portal&lt;/a&gt;, or &lt;a href="https://www.syncfusion.com/feedback" rel="noopener noreferrer"&gt;feedback portal&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related Blogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/pdf-search-in-react-pdf-viewer" rel="noopener noreferrer"&gt;Why PDF Search Fails in React PDF Viewers and How to Fix It&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/loan-document-workflow-react-pdfviewer" rel="noopener noreferrer"&gt;How to Build a Loan Document Workflow Using an Embedded React PDF Viewer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/role-based-lms-assignment-workflow-react-pdf-viewer" rel="noopener noreferrer"&gt;Build a Role-Based LMS with In-Document Learning Using a React PDF Viewer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.syncfusion.com/blogs/post/custom-toolbar-in-react-pdf-viewer" rel="noopener noreferrer"&gt;How to Build a Custom Toolbar in a React PDF Viewer?&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>javascript</category>
      <category>web</category>
      <category>pdfviewer</category>
      <category>documentprocessing</category>
    </item>
  </channel>
</rss>
