Skip to content

Commit 6532b52

Browse files
authored
Merge branch 'hotfix/hotfix-v33.1.44' into 1015644-troubleshooting
2 parents bae9c27 + 888cb9c commit 6532b52

29 files changed

Lines changed: 1215 additions & 193 deletions

Document-Processing-toc.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7843,6 +7843,9 @@
78437843
<li>
78447844
<a href="/document-processing/web-apis/consume-apis/organize-pdf">Organize PDF</a>
78457845
</li>
7846+
<li>
7847+
<a href="/document-processing/web-apis/consume-apis/ocr-pdf">OCR PDF</a>
7848+
</li>
78467849
</ul>
78477850
</li>
78487851
</ul>

Document-Processing/PDF/PDF-Library/NET/Create-PDF-file-in-MaUI.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ N> Our PDF library is currently supported in .NET MAUI applications on the Andro
2828
{% endtabcontent %}
2929
{% endtabcontents %}
3030

31-
A complete working example of creating a PDF document in the .NET MAUI Desktop app can be downloaded from this [link](https://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfSampleMaUI-1356433164887362210.zip).
32-
33-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Getting%20Started/MAUI/CreatePdfDemoSample).
31+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Getting%20Started/MAUI/CreateMAUIPDFSample).
3432

3533
By executing the program in windows, you will get the PDF document as follows.
3634
![.NET MAUI output image](MAUI_images/invoice.png)
@@ -115,7 +113,7 @@ Download the helper files from this [link](https://www.syncfusion.com/downloads/
115113
PreviewControllerDS.cs<br/>QLPreviewItemFileSystem.cs
116114
</td>
117115
<td>
118-
Helper classes for viewing the <b>Pdf document</b> in iOS device
116+
Helper classes for viewing the <b>PDF document</b> in iOS device
119117
</td>
120118
</tr>
121119
</table>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ FileStream fontStream = new FileStream("Arial.ttf", FileMode.Open, FileAccess.Re
12391239
//Set the font.
12401240
PdfFont font = new PdfTrueTypeFont(fontStream, 14);
12411241
//Draw the text.
1242-
graphics.DrawString("Hello world!", pdfFont, brush, new PointF(20, 20));
1242+
graphics.DrawString("Hello world!", font, brush, new PointF(20, 20));
12431243

12441244
//Save and close the document.
12451245
document.Save("Output.pdf");
@@ -1296,7 +1296,7 @@ Dim brush As PdfBrush = New PdfSolidBrush(Color.Black)
12961296
Dim font As New Font("Arial", 20.0F, FontStyle.Regular)
12971297
Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, FontStyle.Regular, 12, False, True)
12981298
'Draw the text.
1299-
graphics.DrawString("Hello world!", font, brush, New PointF(20, 20))
1299+
graphics.DrawString("Hello world!", pdfFont, brush, New PointF(20, 20))
13001300

13011301
'Save and close the document.
13021302
document.Save("Output.pdf")

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,6 +1740,7 @@ Refer to the following code example for removing PDF page‑level actions.
17401740

17411741
using Syncfusion.Pdf;
17421742
using Syncfusion.Pdf.Interactive;
1743+
using Syncfusion.Pdf.Parsing;
17431744

17441745
// Load the existing PDF document
17451746
using (PdfLoadedDocument document = new PdfLoadedDocument(Path.GetFullPath(@"Data/Input.pdf")))
@@ -1767,6 +1768,7 @@ using (PdfLoadedDocument document = new PdfLoadedDocument(Path.GetFullPath(@"Dat
17671768

17681769
using Syncfusion.Pdf;
17691770
using Syncfusion.Pdf.Interactive;
1771+
using Syncfusion.Pdf.Parsing;
17701772

17711773
// Load the existing PDF document
17721774
using (PdfLoadedDocument document = new PdfLoadedDocument(Path.GetFullPath(@"Data/Input.pdf")))
@@ -1793,6 +1795,7 @@ using (PdfLoadedDocument document = new PdfLoadedDocument(Path.GetFullPath(@"Dat
17931795

17941796
Imports Syncfusion.Pdf
17951797
Imports Syncfusion.Pdf.Interactive
1798+
Imports Syncfusion.Pdf.Parsing
17961799

17971800
' Load the existing PDF document
17981801
Using document As New PdfLoadedDocument(

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

Lines changed: 107 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,11 +1007,11 @@ PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
10071007
PdfRedaction redaction = new PdfRedaction(new RectangleF(150, 150, 60, 24), Color.Transparent);
10081008
//Only the text within the redaction bounds should be redacted.
10091009
redaction.TextOnly = true;
1010-
foreach (PdfLoadedPage loadedPage in document.Pages)
1010+
foreach (PdfLoadedPage loadedPage in loadedDocument.Pages)
10111011
{
10121012
loadedPage.AddRedaction(redaction);
10131013
}
1014-
document.Redact();
1014+
loadedDocument.Redact();
10151015
//Save and close the PDF document
10161016
loadedDocument.Save("Output.pdf");
10171017
loadedDocument.Close(true);
@@ -1029,11 +1029,11 @@ PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
10291029
PdfRedaction redaction = new PdfRedaction(new RectangleF(150, 150, 60, 24), Color.Transparent);
10301030
//Only the text within the redaction bounds should be redacted.
10311031
redaction.TextOnly = true;
1032-
foreach (PdfLoadedPage loadedPage in document.Pages)
1032+
foreach (PdfLoadedPage loadedPage in loadedDocument.Pages)
10331033
{
10341034
loadedPage.AddRedaction(redaction);
10351035
}
1036-
document.Redact();
1036+
loadedDocument.Redact();
10371037
//Save the document
10381038
loadedDocument.Save("Output.pdf");
10391039
//Close the document
@@ -1053,10 +1053,10 @@ Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf")
10531053
'Create PDF redaction for the page
10541054
Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(150, 150, 60, 24), Color.Transparent)
10551055
redaction.TextOnly = true;
1056-
For Each loadedPage As PdfLoadedPage In document.Pages
1056+
For Each loadedPage As PdfLoadedPage In loadedDocument.Pages
10571057
loadedPage.AddRedaction(redaction)
10581058
Next
1059-
document.Redact()
1059+
loadedDocument.Redact()
10601060
'Save the document
10611061
loadedDocument.Save("Output.pdf")
10621062
'Close the document
@@ -1079,141 +1079,142 @@ The following code snippet explains how to find text by regular expression patte
10791079

10801080
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Redaction/Find-text-by-regular-expression-pattern-and-redact-it-from-PDF-document/.NET/Find_text_by_regular_expression/Program.cs" %}
10811081

1082-
using Syncfusion.Pdf.Parsing;
1083-
using Syncfusion.Pdf.Redaction;
1084-
using Syncfusion.Pdf;
1085-
using System.Text.RegularExpressions;
1082+
using Syncfusion.Pdf.Parsing;
1083+
using Syncfusion.Pdf.Redaction;
1084+
using Syncfusion.Pdf;
1085+
using System.Text.RegularExpressions;
10861086

1087-
//Load the existing PDF document.
1088-
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
1087+
//Load the existing PDF document.
1088+
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
10891089

1090-
//Get the first page from the document.
1091-
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
1090+
//Get the first page from the document.
1091+
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
10921092

1093-
TextLineCollection collection = new TextLineCollection();
1094-
//Extract text from first page.
1095-
string extractedText = page.ExtractText(out collection);
1093+
TextLineCollection collection = new TextLineCollection();
1094+
//Extract text from first page.
1095+
string extractedText = page.ExtractText(out collection);
10961096

1097-
foreach (TextLine line in collection.TextLine)
1097+
foreach (TextLine line in collection.TextLine)
1098+
{
1099+
foreach (TextWord word in line.WordCollection)
10981100
{
1099-
foreach (TextWord word in line.WordCollection)
1101+
//Define regular expression pattern to search for dates in the format MM/DD/YYYY
1102+
string datePattern = @"\b\d{1,2}\/\d{1,2}\/\d{4}\b";
1103+
//Search for dates
1104+
MatchCollection dateMatches = Regex.Matches(word.Text, datePattern);
1105+
//Add redaction if the match found
1106+
foreach (Match dateMatch in dateMatches)
11001107
{
1101-
//Define regular expression pattern to search for dates in the format MM/DD/YYYY
1102-
string datePattern = @"\b\d{1,2}\/\d{1,2}\/\d{4}\b";
1103-
//Search for dates
1104-
MatchCollection dateMatches = Regex.Matches(word.Text, datePattern);
1105-
//Add redaction if the match found
1106-
foreach (Match dateMatch in dateMatches)
1108+
string textToFindAndRedact = dateMatch.Value;
1109+
if (textToFindAndRedact == word.Text)
11071110
{
1108-
string textToFindAndRedact = dateMatch.Value;
1109-
if (textToFindAndRedact == word.Text)
1110-
{
1111-
//Create a redaction object.
1112-
PdfRedaction redaction = new PdfRedaction(word.Bounds, Syncfusion.Drawing.Color.Black);
1113-
//Add a redaction object into the redaction collection of loaded page.
1114-
page.AddRedaction(redaction);
1115-
}
1111+
//Create a redaction object.
1112+
PdfRedaction redaction = new PdfRedaction(word.Bounds, Syncfusion.Drawing.Color.Black);
1113+
//Add a redaction object into the redaction collection of loaded page.
1114+
page.AddRedaction(redaction);
11161115
}
11171116
}
11181117
}
1118+
}
11191119

1120-
//Redact the contents from the PDF document.
1121-
document.Redact();
1120+
//Redact the contents from the PDF document.
1121+
document.Redact();
11221122

1123-
//Save and close the PDF document
1124-
document.Save("Output.pdf");
1125-
document.Close(true);
1123+
//Save and close the PDF document
1124+
document.Save("Output.pdf");
1125+
document.Close(true);
11261126

11271127
{% endhighlight %}
11281128

11291129
{% highlight c# tabtitle="C# [Windows-specific]" %}
11301130

1131-
using Syncfusion.Pdf.Parsing;
1132-
using Syncfusion.Pdf.Redaction;
1133-
using Syncfusion.Pdf;
1134-
using System.Text.RegularExpressions;
1131+
using Syncfusion.Pdf.Parsing;
1132+
using Syncfusion.Pdf.Redaction;
1133+
using Syncfusion.Pdf;
1134+
using System.Text.RegularExpressions;
11351135

1136-
//Load a PDF document
1137-
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
1136+
//Load a PDF document
1137+
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
11381138

1139-
//Get the first page from the document.
1140-
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
1139+
//Get the first page from the document.
1140+
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
11411141

1142-
TextLineCollection collection = new TextLineCollection();
1143-
//Extract text from first page.
1144-
string extractedText = page.ExtractText(out collection);
1142+
TextLineCollection collection = new TextLineCollection();
1143+
//Extract text from first page.
1144+
string extractedText = page.ExtractText(out collection);
11451145

1146-
foreach (TextLine line in collection.TextLine)
1146+
foreach (TextLine line in collection.TextLine)
1147+
{
1148+
foreach (TextWord word in line.WordCollection)
11471149
{
1148-
foreach (TextWord word in line.WordCollection)
1150+
//Define regular expression pattern to search for dates in the format MM/DD/YYYY
1151+
string datePattern = @"\b\d{1,2}\/\d{1,2}\/\d{4}\b";
1152+
//Search for dates
1153+
MatchCollection dateMatches = Regex.Matches(word.Text, datePattern);
1154+
//Add redaction if the match found
1155+
foreach (Match dateMatch in dateMatches)
11491156
{
1150-
//Define regular expression pattern to search for dates in the format MM/DD/YYYY
1151-
string datePattern = @"\b\d{1,2}\/\d{1,2}\/\d{4}\b";
1152-
//Search for dates
1153-
MatchCollection dateMatches = Regex.Matches(word.Text, datePattern);
1154-
//Add redaction if the match found
1155-
foreach (Match dateMatch in dateMatches)
1157+
string textToFindAndRedact = dateMatch.Value;
1158+
if (textToFindAndRedact == word.Text)
11561159
{
1157-
string textToFindAndRedact = dateMatch.Value;
1158-
if (textToFindAndRedact == word.Text)
1159-
{
1160-
//Create a redaction object.
1161-
PdfRedaction redaction = new PdfRedaction(word.Bounds, Syncfusion.Drawing.Color.Black);
1162-
//Add a redaction object into the redaction collection of loaded page.
1163-
page.Redactions.Add(redaction);
1164-
}
1160+
//Create a redaction object.
1161+
PdfRedaction redaction = new PdfRedaction(word.Bounds, Syncfusion.Drawing.Color.Black);
1162+
//Add a redaction object into the redaction collection of loaded page.
1163+
page.Redactions.Add(redaction);
11651164
}
11661165
}
11671166
}
1168-
//Save and close the PDF document
1169-
document.Save("Output.pdf");
1170-
document.Close(true);
1167+
}
1168+
1169+
//Save and close the PDF document
1170+
document.Save("Output.pdf");
1171+
document.Close(true);
11711172

11721173
{% endhighlight %}
11731174

11741175
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
11751176

1176-
Imports Syncfusion.Pdf.Parsing
1177-
Imports Syncfusion.Pdf.Redaction
1178-
Imports Syncfusion.Pdf
1179-
Imports System.Text.RegularExpressions
1180-
1181-
'Load the existing PDF document.
1182-
Dim document As New PdfLoadedDocument("Input.pdf")
1183-
1184-
'Get the first page from the document.
1185-
Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage)
1186-
1187-
Dim collection As New TextLineCollection()
1188-
'Extract text from first page.
1189-
Dim extractedText As String = page.ExtractText(collection)
1190-
1191-
For Each line As TextLine In collection.TextLine
1192-
For Each word As TextWord In line.WordCollection
1193-
'Define regular expression pattern to search for dates in the format MM/DD/YYYY
1194-
Dim datePattern As String = "\b\d{1,2}\/\d{1,2}\/\d{4}\b"
1195-
'Search for dates
1196-
Dim dateMatches As MatchCollection = Regex.Matches(word.Text, datePattern)
1197-
'Add redaction if the match found
1198-
For Each dateMatch As Match In dateMatches
1199-
Dim textToFindAndRedact As String = dateMatch.Value
1200-
If textToFindAndRedact = word.Text Then
1201-
'Create a redaction object.
1202-
Dim redaction As New PdfRedaction(word.Bounds, Syncfusion.Drawing.Color.Black)
1203-
'Add a redaction object into the redaction collection of loaded page.
1204-
page.AddRedaction(redaction)
1205-
End If
1206-
Next
1207-
Next
1177+
Imports Syncfusion.Pdf.Parsing
1178+
Imports Syncfusion.Pdf.Redaction
1179+
Imports Syncfusion.Pdf
1180+
Imports System.Text.RegularExpressions
1181+
1182+
'Load the existing PDF document.
1183+
Dim document As New PdfLoadedDocument("Input.pdf")
1184+
1185+
'Get the first page from the document.
1186+
Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage)
1187+
1188+
Dim collection As New TextLineCollection()
1189+
'Extract text from first page.
1190+
Dim extractedText As String = page.ExtractText(collection)
1191+
1192+
For Each line As TextLine In Collection.TextLine
1193+
For Each word As TextWord In line.WordCollection
1194+
'Define regular expression pattern to search for dates in the format MM/DD/YYYY
1195+
Dim datePattern As String = "\b\d{1,2}\/\d{1,2}\/\d{4}\b"
1196+
'Search for dates
1197+
Dim dateMatches As MatchCollection = Regex.Matches(word.Text, datePattern)
1198+
'Add redaction if the match found
1199+
For Each dateMatch As Match In dateMatches
1200+
Dim textToFindAndRedact As String = dateMatch.Value
1201+
If textToFindAndRedact = word.Text Then
1202+
'Create a redaction object.
1203+
Dim redaction As New PdfRedaction(word.Bounds, Syncfusion.Drawing.Color.Black)
1204+
'Add a redaction object into the redaction collection of loaded page.
1205+
Page.AddRedaction(redaction)
1206+
End If
12081207
Next
1208+
Next
1209+
Next
12091210

1210-
'Redact the contents from the PDF document.
1211-
document.Redact()
1211+
'Redact the contents from the PDF document.
1212+
document.Redact()
12121213

1213-
'Save the document
1214-
document.Save("Output.pdf")
1215-
'Close the document
1216-
document.Close(True)
1214+
'Save the document
1215+
document.Save("Output.pdf")
1216+
'Close the document
1217+
document.Close(True)
12171218

12181219
{% endhighlight %}
12191220

Document-Processing/PowerPoint/Conversions/PowerPoint-To-Image/NET/Performance-metrics.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following system configurations were used for benchmarking:
1818
* **Processor:** 12th Gen Intel(R) Core(TM) i5-1235U (1.30 GHz)
1919
* **RAM:** 24GB
2020
* **.NET Version:** .NET 8.0
21-
* **Syncfusion<sup>&reg;</sup> Version:** [Syncfusion.PresentationRenderer.Net.Core v32.1.19](https://www.nuget.org/packages/Syncfusion.PresentationRenderer.Net.Core/32.1.19)
21+
* **Syncfusion<sup>&reg;</sup> Version:** [Syncfusion.PresentationRenderer.Net.Core v33.1.44](https://www.nuget.org/packages/Syncfusion.PresentationRenderer.Net.Core/33.1.44)
2222

2323
## PowerPoint to image conversion
2424

@@ -46,8 +46,10 @@ The following system configurations were used for benchmarking:
4646
<tr>
4747
<td>500</td>
4848
<td>{{'[PowerPoint-500.pptx](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Performance-metrices/PPTX-to-Image/.NET/Convert-PowerPoint-slide-to-Image/Data/PowerPoint-500.pptx)'| markdownify }}</td>
49-
<td>23.5</td>
49+
<td>23.4</td>
5050
</tr>
5151
</table>
5252

5353
You can find the sample used for this performance evaluation on [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Performance-metrices/PPTX-to-Image/).
54+
55+
N> Execution times are based on the sample documents and may vary with different content or environments.

Document-Processing/PowerPoint/Conversions/PowerPoint-To-PDF/NET/Performance-metrics.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following system configurations were used for benchmarking:
1818
* **Processor:** 12th Gen Intel(R) Core(TM) i5-1235U (1.30 GHz)
1919
* **RAM:** 24GB
2020
* **.NET Version:** .NET 8.0
21-
* **Syncfusion<sup>&reg;</sup> Version:** [Syncfusion.PresentationRenderer.Net.Core v32.1.19](https://www.nuget.org/packages/Syncfusion.PresentationRenderer.Net.Core/32.1.19)
21+
* **Syncfusion<sup>&reg;</sup> Version:** [Syncfusion.PresentationRenderer.Net.Core v33.1.44](https://www.nuget.org/packages/Syncfusion.PresentationRenderer.Net.Core/33.1.44)
2222

2323
## PowerPoint to PDF conversion
2424

@@ -46,8 +46,10 @@ The following system configurations were used for benchmarking:
4646
<tr>
4747
<td>500</td>
4848
<td>{{'[PowerPoint-500.pptx](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Performance-metrices/PPTX-to-PDF/.NET/PPTX-to-PDF/Data/PowerPoint-500.pptx)'| markdownify }}</td>
49-
<td>13.5</td>
49+
<td>13.4</td>
5050
</tr>
5151
</table>
5252

5353
You can find the sample used for this performance evaluation on [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Performance-metrices/PPTX-to-PDF/).
54+
55+
N> Execution times are based on the sample documents and may vary with different content or environments.

0 commit comments

Comments
 (0)