Skip to content

Commit c6240d2

Browse files
Merge branch 'hotfix/hotfix-v33.1.44' into ES-1017009-Resolve-SERPSTAT-issues
2 parents 3f28ec8 + 8ff1738 commit c6240d2

22 files changed

Lines changed: 1719 additions & 994 deletions

File tree

Document-Processing-toc.html

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@
10491049
<li><a href="/document-processing/pdf/pdf-viewer/react/toolbar-customization/custom-toolbar">Custom Toolbar</a></li>
10501050
</ul>
10511051
</li>
1052-
<li><a href="/document-processing/pdf/pdf-viewer/react/navigation">Interactive PDF Navigation</a>
1052+
<li><a href="/document-processing/pdf/pdf-viewer/react/interactive-pdf-navigation/overview">Interactive PDF Navigation</a>
10531053
<ul>
10541054
<li><a href="/document-processing/pdf/pdf-viewer/react/interactive-pdf-navigation/page">Page Navigation</a></li>
10551055
<li><a href="/document-processing/pdf/pdf-viewer/react/interactive-pdf-navigation/bookmark">Bookmark Navigation</a></li>
@@ -1059,7 +1059,14 @@
10591059
</li>
10601060
<li><a href="/document-processing/pdf/pdf-viewer/react/magnification">Magnification</a></li>
10611061
<li><a href="/document-processing/pdf/pdf-viewer/react/accessibility">Accessibility</a></li>
1062-
<li><a href="/document-processing/pdf/pdf-viewer/react/text-search">Text Search</a></li>
1062+
<li><a href="/document-processing/pdf/pdf-viewer/react/text-search/overview">Text Search and Extraction</a>
1063+
<ul>
1064+
<li><a href="/document-processing/pdf/pdf-viewer/react/text-search/text-search-features">Text Search</a></li>
1065+
<li><a href="/document-processing/pdf/pdf-viewer/react/text-search/text-search-events">Text Search Events</a></li>
1066+
<li><a href="/document-processing/pdf/pdf-viewer/react/text-search/find-text">Find Text Method</a></li>
1067+
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/extract-text">Extract Text with Options</a></li>
1068+
</ul>
1069+
</li>
10631070
<li>Annotation
10641071
<ul>
10651072
<li><a href="/document-processing/pdf/pdf-viewer/react/annotation/overview">Overview</a></li>
@@ -1197,7 +1204,12 @@
11971204
</li>
11981205
<li><a href="/document-processing/pdf/pdf-viewer/react/download">Download</a></li>
11991206
<li><a href="/document-processing/pdf/pdf-viewer/react/events">Events</a></li>
1200-
<li><a href="/document-processing/pdf/pdf-viewer/react/text-selection">Text Selection</a></li>
1207+
<li><a href="/document-processing/pdf/pdf-viewer/react/text-selection/overview">Text Selection</a>
1208+
<ul>
1209+
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/enable-text-selection">Toggle text selection</a></li>
1210+
<li><a href="/document-processing/pdf/pdf-viewer/react/text-selection/text-selection-api-events">Text Selection API and Events</a></li>
1211+
</ul>
1212+
</li>
12011213
<li>Localization and Globalization
12021214
<ul>
12031215
<li><a href="/document-processing/pdf/pdf-viewer/react/Localization/default-language">Default Language</a></li>
@@ -7751,7 +7763,7 @@
77517763
Common
77527764
<ul>
77537765
<li>
7754-
<a href="/document-processing/common/font-manager">Font Manager</a>
7766+
<a href="/document-processing/common/font-manager/font-manager">Font Manager</a>
77557767
</li>
77567768
</ul>
77577769
</li>
@@ -7841,7 +7853,15 @@
78417853
</li>
78427854
<li>
78437855
Release Notes
7844-
<ul><li>2026 Volume 1 - v33.*<ul><li><a href="/document-processing/release-notes/v33.1.44">v33.1.44 Main Release</a></li></ul></li>
7856+
<ul><li>2026 Volume 1 - v33.*
7857+
<ul><li> Weekly Nuget Release
7858+
<ul>
7859+
<li><a href="/document-processing/release-notes/v33.1.45">v33.1.45</a></li>
7860+
</ul>
7861+
</li>
7862+
<li><a href="/document-processing/release-notes/v33.1.44">v33.1.44 Main Release</a></li>
7863+
</ul>
7864+
</li>
78457865
<li>
78467866
2025 Volume 4 - v32.*
78477867
<ul><li> Weekly Nuget Release
File renamed without changes.

Document-Processing/Data-Extraction/Smart-Form-Recognizer/NET/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ FormRecognizer smartFormRecognizer = new FormRecognizer();
3636
//Read the input PDF file as stream
3737
FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
3838
//Recognize the form and get the output as PDF stream
39-
PdfLoadedDocument pdfLoadedDocument =recognizer.RecognizeFormAsPdfDocument(inputStream);
39+
PdfLoadedDocument pdfLoadedDocument = smartFormRecognizer.RecognizeFormAsPdfDocument(inputStream);
4040
//Save the loadeddocument
4141
pdfLoadedDocument.Save(Output.pdf);
4242

Document-Processing/Data-Extraction/Smart-Form-Recognizer/NET/recognize-forms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void Button_Click(object sender, RoutedEventArgs e)
2626
//Read the input PDF file as stream
2727
FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
2828
//Recognize the form and get the output as PDF stream
29-
PdfLoadedDocument pdfLoadedDocument =recognizer.RecognizeFormAsPdfDocument(inputStream);
29+
PdfLoadedDocument pdfLoadedDocument = smartFormRecognizer.RecognizeFormAsPdfDocument(inputStream);
3030
//Save the loadeddocument
3131
pdfLoadedDocument.Save(Output.pdf);
3232
}
@@ -45,7 +45,7 @@ public async void Button_Click(object sender, RoutedEventArgs e)
4545
//Read the input PDF file as stream
4646
FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
4747
//Recognize the form and get the output as PDF stream
48-
PdfLoadedDocument pdfLoadedDocument = await recognizer.RecognizeFormAsPdfDocumentAsync(inputStream);
48+
PdfLoadedDocument pdfLoadedDocument = await smartFormRecognizer.RecognizeFormAsPdfDocumentAsync(inputStream);
4949
//Save the loadeddocument
5050
pdfLoadedDocument.Save(Output.pdf);
5151
}

Document-Processing/Data-Extraction/Smart-Form-Recognizer/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ FormRecognizer smartFormRecognizer = new FormRecognizer();
8484
//Read the input PDF file as stream
8585
FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
8686
//Recognize the form and get the output as PDF stream
87-
PdfLoadedDocument pdfLoadedDocument =recognizer.RecognizeFormAsPdfDocument(inputStream);
87+
PdfLoadedDocument pdfLoadedDocument = smartFormRecognizer.RecognizeFormAsPdfDocument(inputStream);
8888
//Save the loadeddocument
8989
pdfLoadedDocument.Save(Output.pdf);
9090

Document-Processing/PDF/PDF-Library/NET/Working-with-Pages.md

Lines changed: 138 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ Refer to the following code example to define custom behavior for PDF page‑lev
15991599

16001600
{% tabs %}
16011601

1602-
{% highlight c# tabtitle="C# [Cross-platform]" %}
1602+
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Add-Page-Level-Actions-in-PDF/.NET/Add-Page-Level-Actions-in-PDF/Program.cs" %}
16031603

16041604
using Syncfusion.Pdf;
16051605
using Syncfusion.Pdf.Interactive;
@@ -1610,9 +1610,9 @@ using (PdfDocument document = new PdfDocument())
16101610
// Add a page to the document.
16111611
PdfPage page1 = document.Pages.Add();
16121612
// Create and add new JavaScript action to execute when the first page opens
1613-
Page1.Actions.OnOpen = new PdfJavaScriptAction("app.alert(\"Welcome! This page has just been opened.\");");
1613+
page1.Actions.OnOpen = new PdfJavaScriptAction("app.alert(\"Welcome! This page has just been opened.\");");
16141614
// Create and add new URI action to execute when the first page closes
1615-
Page1.Actions.OnClose = new PdfUriAction("http://www.google.com");
1615+
page1.Actions.OnClose = new PdfUriAction("http://www.google.com");
16161616
// Add second page to the document.
16171617
PdfPage page2 = document.Pages.Add();
16181618
// Create a sound action
@@ -1622,13 +1622,16 @@ using (PdfDocument document = new PdfDocument())
16221622
soundAction.Sound.Encoding = PdfSoundEncoding.Signed;
16231623
soundAction.Volume = 0.9f;
16241624
// Set the sound action to execute when the second page opens
1625-
Page2.Actions.OnOpen = soundAction;
1625+
page2.Actions.OnOpen = soundAction;
16261626
// Create and add new Launch action to execute when the second page closes
1627-
Page2.Actions.OnClose = new PdfLaunchAction("logo.png");
1628-
// Removing the close action on first page
1629-
Page1.Actions.OnClose = null;
1630-
// Removing both open and close actions on second page
1631-
Page2.Actions.Clear(true);
1627+
page2.Actions.OnClose = new PdfLaunchAction("logo.png");
1628+
// Add third page to the document
1629+
PdfPage page3 = document.Pages.Add();
1630+
// Create and add new JavaScript action to execute when the third page opens
1631+
PdfAction jsAction = new PdfJavaScriptAction("app.alert(\"Welcome! Third page has just been opened.\");");
1632+
jsAction.Next = new PdfJavaScriptAction("app.alert(\"This is the second action.\");");
1633+
jsAction.Next.Next = new PdfJavaScriptAction("app.alert(\"This is the third action.\");");
1634+
page3.Actions.OnOpen = jsAction;
16321635
//Save the document
16331636
document.Save("Output.pdf");
16341637
}
@@ -1644,11 +1647,11 @@ using Syncfusion.Pdf.Interactive;
16441647
using (PdfDocument document = new PdfDocument())
16451648
{
16461649
// Add a page to the document.
1647-
PdfPage page1 = document.Pages.Add();
1650+
PdfPage page1 = document.Pages.Add();
16481651
// Create and add new JavaScript action to execute when the first page opens
1649-
Page1.Actions.OnOpen = new PdfJavaScriptAction("app.alert(\"Welcome! This page has just been opened.\");");
1652+
page1.Actions.OnOpen = new PdfJavaScriptAction("app.alert(\"Welcome! This page has just been opened.\");");
16501653
// Create and add new URI action to execute when the first page closes
1651-
Page1.Actions.OnClose = new PdfUriAction("http://www.google.com");
1654+
page1.Actions.OnClose = new PdfUriAction("http://www.google.com");
16521655
// Add second page to the document.
16531656
PdfPage page2 = document.Pages.Add();
16541657
// Create a sound action
@@ -1658,13 +1661,16 @@ using (PdfDocument document = new PdfDocument())
16581661
soundAction.Sound.Encoding = PdfSoundEncoding.Signed;
16591662
soundAction.Volume = 0.9f;
16601663
// Set the sound action to execute when the second page opens
1661-
Page2.Actions.OnOpen = soundAction;
1664+
page2.Actions.OnOpen = soundAction;
16621665
// Create and add new Launch action to execute when the second page closes
1663-
Page2.Actions.OnClose = new PdfLaunchAction("logo.png");
1664-
// Removing the close action on first page
1665-
Page1.Actions.OnClose = null;
1666-
// Removing both open and close actions on second page
1667-
Page2.Actions.Clear(true);
1666+
page2.Actions.OnClose = new PdfLaunchAction("logo.png");
1667+
// Add third page to the document
1668+
PdfPage page3 = document.Pages.Add();
1669+
// Create and add new JavaScript action to execute when the third page opens
1670+
PdfAction jsAction = new PdfJavaScriptAction("app.alert(\"Welcome! Third page has just been opened.\");");
1671+
jsAction.Next = new PdfJavaScriptAction("app.alert(\"This is the second action.\");");
1672+
jsAction.Next.Next = new PdfJavaScriptAction("app.alert(\"This is the third action.\");");
1673+
page3.Actions.OnOpen = jsAction;
16681674
//Save the document
16691675
document.Save("Output.pdf");
16701676
}
@@ -1678,15 +1684,18 @@ Imports Syncfusion.Pdf.Interactive
16781684

16791685
' Create a new PDF document.
16801686
Using document As New PdfDocument()
1687+
16811688
' Add a page to the document.
16821689
Dim page1 As PdfPage = document.Pages.Add()
16831690
' Create and add new JavaScript action to execute when the first page opens
1684-
page1.Actions.OnOpen = New PdfJavaScriptAction("app.alert(""Welcome! This page has just been opened."");")
1691+
page1.Actions.OnOpen = New PdfJavaScriptAction(
1692+
"app.alert(""Welcome! This page has just been opened."");"
1693+
)
16851694
' Create and add new URI action to execute when the first page closes
16861695
page1.Actions.OnClose = New PdfUriAction("http://www.google.com")
16871696
' Add second page to the document.
16881697
Dim page2 As PdfPage = document.Pages.Add()
1689-
' Create a sound action
1698+
' Create a sound action
16901699
Dim soundAction As New PdfSoundAction("Startup.wav")
16911700
soundAction.Sound.Bits = 16
16921701
soundAction.Sound.Channels = PdfSoundChannels.Stereo
@@ -1696,14 +1705,118 @@ Using document As New PdfDocument()
16961705
page2.Actions.OnOpen = soundAction
16971706
' Create and add new Launch action to execute when the second page closes
16981707
page2.Actions.OnClose = New PdfLaunchAction("logo.png")
1699-
' Removing the close action on first page
1700-
page1.Actions.OnClose = Nothing
1701-
' Removing both open and close actions on second page
1702-
page2.Actions.Clear(True)
1708+
' Add third page to the document
1709+
Dim page3 As PdfPage = document.Pages.Add()
1710+
' Create and add new JavaScript action to execute when the third page opens
1711+
Dim jsAction As PdfAction = New PdfJavaScriptAction(
1712+
"app.alert(""Welcome! Third page has just been opened."");"
1713+
)
1714+
jsAction.Next = New PdfJavaScriptAction(
1715+
"app.alert(""This is the second action."");"
1716+
)
1717+
jsAction.Next.Next = New PdfJavaScriptAction(
1718+
"app.alert(""This is the third action."");"
1719+
)
1720+
page3.Actions.OnOpen = jsAction
17031721
' Save the document
17041722
document.Save("Output.pdf")
17051723
End Using
17061724

17071725
{% endhighlight %}
17081726

1709-
{% endtabs %}
1727+
{% endtabs %}
1728+
1729+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Pages/Add-Page-Level-Actions-in-PDF/.NET).
1730+
1731+
## Removing page-level actions from PDF
1732+
1733+
Removes page‑level actions from PDF documents by disabling actions triggered on page open and page close events, ensuring that pages no longer execute automatic behaviors while preserving existing annotation actions where required.
1734+
1735+
Refer to the following code example for removing PDF page‑level actions.
1736+
1737+
{% tabs %}
1738+
1739+
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Removing-page-level-actions-from-PDF/.NET/Removing-page-level-actions-from-PDF/Program.cs" %}
1740+
1741+
using Syncfusion.Pdf;
1742+
using Syncfusion.Pdf.Interactive;
1743+
1744+
// Load the existing PDF document
1745+
using (PdfLoadedDocument document = new PdfLoadedDocument(Path.GetFullPath(@"Data/Input.pdf")))
1746+
{
1747+
// Iterate through all pages in the document
1748+
foreach (PdfLoadedPage page in document.Pages)
1749+
{
1750+
// Remove any JavaScript or actions that execute
1751+
// when the page is opened
1752+
page.Actions.OnOpen = null;
1753+
1754+
// Remove any JavaScript or actions that execute
1755+
// when the page is closed
1756+
page.Actions.OnClose = null;
1757+
}
1758+
// Save the modified PDF document
1759+
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
1760+
// Close the document
1761+
document.Close(true);
1762+
}
1763+
1764+
{% endhighlight %}
1765+
1766+
{% highlight c# tabtitle="C# [Windows-specific]" %}
1767+
1768+
using Syncfusion.Pdf;
1769+
using Syncfusion.Pdf.Interactive;
1770+
1771+
// Load the existing PDF document
1772+
using (PdfLoadedDocument document = new PdfLoadedDocument(Path.GetFullPath(@"Data/Input.pdf")))
1773+
{
1774+
// Iterate through all pages in the document
1775+
foreach (PdfLoadedPage page in document.Pages)
1776+
{
1777+
// Remove any JavaScript or actions that execute
1778+
// when the page is opened
1779+
page.Actions.OnOpen = null;
1780+
// Remove any JavaScript or actions that execute
1781+
// when the page is closed
1782+
page.Actions.OnClose = null;
1783+
}
1784+
// Save the modified PDF document
1785+
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
1786+
// Close the document
1787+
document.Close(true);
1788+
}
1789+
1790+
{% endhighlight %}
1791+
1792+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
1793+
1794+
Imports Syncfusion.Pdf
1795+
Imports Syncfusion.Pdf.Interactive
1796+
1797+
' Load the existing PDF document
1798+
Using document As New PdfLoadedDocument(
1799+
Path.GetFullPath("Data/Input.pdf"))
1800+
' Iterate through all pages in the document
1801+
For Each page As PdfLoadedPage In document.Pages
1802+
' Remove any JavaScript or actions that execute
1803+
' when the page is opened
1804+
page.Actions.OnOpen = Nothing
1805+
' Remove any JavaScript or actions that execute
1806+
' when the page is closed
1807+
page.Actions.OnClose = Nothing
1808+
1809+
Next
1810+
' Save the modified PDF document
1811+
document.Save(Path.GetFullPath("Output/Output.pdf"))
1812+
1813+
' Close the document
1814+
document.Close(True)
1815+
1816+
End Using
1817+
1818+
{% endhighlight %}
1819+
1820+
{% endtabs %}
1821+
1822+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Pages/Removing-page-level-actions-from-PDF/.NET).

Document-Processing/PDF/PDF-Viewer/react/Redaction/overview.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ domainurl: ##DomainURL##
1212

1313
Redaction annotations hide confidential or sensitive information in a PDF. The Syncfusion React PDF Viewer (EJ2) enables marking areas or entire pages for redaction, customizing appearance, and applying changes permanently.
1414

15+
Check out the following video to learn how to Redact PDF Content in the React PDF Viewer.
16+
{% youtube "https://www.youtube.com/watch?v=ZW9DswdpA7Q" %}
17+
1518
## Enable the redaction toolbar
1619

1720
To enable the redaction toolbar, configure the [`toolbarSettings.toolbarItems`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/toolbarsettings#toolbaritems) property of the PdfViewer instance to include the **RedactionEditTool**. See this [guide](./toolbar#enable-redaction-toolbar) to enable redaction toolbar.

0 commit comments

Comments
 (0)