From cd5d04341c28761bc0c6ece7e9d32e4187bde927 Mon Sep 17 00:00:00 2001 From: Yvone-Atieno <95272306+Yvone-Atieno@users.noreply.github.com> Date: Mon, 15 Jan 2024 11:58:21 +0300 Subject: [PATCH 1/5] SEO-178115 File Format Redirect --- ...how-to-perform-ocr-for-a-pdf-document-using-cSharp-and-VB.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File-Formats/PDF/Working-with-OCR/how-to-perform-ocr-for-a-pdf-document-using-cSharp-and-VB.md b/File-Formats/PDF/Working-with-OCR/how-to-perform-ocr-for-a-pdf-document-using-cSharp-and-VB.md index 816f677c2..1802e0fd9 100644 --- a/File-Formats/PDF/Working-with-OCR/how-to-perform-ocr-for-a-pdf-document-using-cSharp-and-VB.md +++ b/File-Formats/PDF/Working-with-OCR/how-to-perform-ocr-for-a-pdf-document-using-cSharp-and-VB.md @@ -10,7 +10,7 @@ documentation: UG Essential PDF provides support for Optical Character Recognition with the help of Google's [Tesseract](https://github.com/tesseract-ocr/tesseract) OCR engine. With a few lines of code, a scanned PDF document containing a raster image is converted into a searchable and selectable PDF document. -N> Starting with v20.1.0.x, if you reference Syncfusion OCR processor assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/license-key) to know about registering Syncfusion license key in your application to use our components. +N> Starting with v20.1.0.x, if you reference Syncfusion OCR processor assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/overview) to know about registering Syncfusion license key in your application to use our components. To use the Syncfusion OCR processor library in your application, you need to add reference to the following set of assemblies. From fc0069233e8306c2d5783cd36bc460be706042a3 Mon Sep 17 00:00:00 2001 From: Srihariharan Date: Fri, 19 Jan 2024 11:30:27 +0530 Subject: [PATCH 2/5] 865451 : Update the feature support page. --- .../PDF/Supported-and-Unsupported-Features.md | 151 ++++++++++++------ 1 file changed, 105 insertions(+), 46 deletions(-) diff --git a/File-Formats/PDF/Supported-and-Unsupported-Features.md b/File-Formats/PDF/Supported-and-Unsupported-Features.md index 10cb911ae..bafb92dd8 100644 --- a/File-Formats/PDF/Supported-and-Unsupported-Features.md +++ b/File-Formats/PDF/Supported-and-Unsupported-Features.md @@ -16,7 +16,8 @@ The following table shows the various features available in the Essential PDF an Features

.NET Framework

UWP

-Xamarin and .NET Core

+Xamarin

+.NET Core

Blazor Client-Side

Blazor Server-Side & Hosted Application

WinUI

@@ -32,6 +33,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -41,16 +43,18 @@ Yes

Yes

Yes

Yes

+Yes

Yes

Multilingual Support

Yes

-No

-No

-No

-No

-No

+Yes

+Yes

+Yes

+Yes

+Yes

+Yes

Drawing RTL text

@@ -59,6 +63,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -68,6 +73,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -75,9 +81,10 @@ Text Extraction

Yes

Yes

Yes

-No

-No

-No

+Yes

+Yes

+Yes

+Yes

Unicode

@@ -86,6 +93,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -95,6 +103,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -108,7 +117,8 @@ Graphics: Features

.NET Framework

UWP

-Xamarin and .NET Core

+Xamarin

+.NET Core

Blazor Client-Side

Blazor Server-Side & Hosted Application

WinUI

@@ -122,6 +132,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -131,16 +142,18 @@ Yes

Yes

Yes

Yes

+Yes

Yes

Transparent Graphics

Yes

-No

-No

-No

-No

-No

+Yes

+Yes

+Yes

+Yes

+Yes

+Yes

Color Spaces

@@ -149,16 +162,18 @@ Yes

Yes

Yes

Yes

+Yes

Yes

Image Extraction

Yes

No

-No

-No

+Yes

+Yes

No

-No

+Yes

+Yes

Enhanced Printing Support

@@ -167,6 +182,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -176,6 +192,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -189,7 +206,8 @@ Document–level Operations: Features

.NET Framework

UWP

-Xamarin and .NET Core

+Xamarin

+.NET Core

Blazor Client-Side

Blazor Server-Side & Hosted Application

WinUI

@@ -205,6 +223,7 @@ Yes

Yes

Yes

Yes

+Yes

@@ -214,6 +233,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -223,6 +243,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -232,6 +253,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -241,6 +263,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -250,6 +273,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -263,7 +287,8 @@ Document Settings : Features

.NET Framework

UWP

-Xamarin and .NET Core

+Xamarin

+.NET Core

Blazor Client-Side

Blazor Server-Side & Hosted Application

WinUI

@@ -278,6 +303,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -287,6 +313,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -296,6 +323,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -305,6 +333,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -314,6 +343,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -323,6 +353,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -336,7 +367,8 @@ Forms: Features

.NET Framework

UWP

-Xamarin and .NET Core

+Xamarin

+.NET Core

Blazor Client-Side

Blazor Server-Side & Hosted Application

WinUI

@@ -351,6 +383,7 @@ Yes

Yes

Yes

Yes

+Yes

@@ -361,6 +394,7 @@ Yes

Yes

Yes

Yes

+Yes

@@ -371,6 +405,7 @@ Yes

Yes

Yes

Yes

+Yes

@@ -381,6 +416,7 @@ Yes

Yes

Yes

Yes

+Yes

@@ -391,6 +427,7 @@ Yes

Yes

Yes

Yes

+Yes

@@ -404,7 +441,8 @@ XFA Forms: Features

.NET Framework

UWP

-Xamarin and .NET Core

+Xamarin

+.NET Core

Blazor Client-Side

Blazor Server-Side & Hosted Application

WinUI

@@ -415,19 +453,21 @@ Xamarin and .NET Core

Fields

Yes

Yes

-Yes*

+Yes

+Yes*

Yes

Yes

-No

+Yes

Form Filling

Yes

Yes

-Yes*

+Yes

+Yes*

Yes

Yes

-No

+Yes

@@ -442,7 +482,8 @@ Document Conversion: Features

.NET Framework

UWP

-Xamarin and .NET Core

+Xamarin

+.NET Core

Blazor Client-Side

Blazor Server-Side & Hosted Application

WinUI

@@ -453,16 +494,18 @@ Xamarin and .NET Core

TIFF to PDF

Yes

Yes

-Yes*

-No

+Yes

+Yes

No

-No

+Yes

+Yes

HTML to PDF

Yes

No

-Yes*

+No

+Yes*

No

Yes

No

@@ -472,6 +515,7 @@ RTF To PDF

Yes

Yes

Yes

+Yes

No

Yes

No

@@ -483,13 +527,15 @@ Yes

Yes

Yes

Yes

+Yes

No

Excel To PDF

Yes

Yes*

-Yes*

+Yes

+Yes*

Yes

Yes

No

@@ -499,8 +545,9 @@ PDF OCR

Yes

No

No

+Yes

No

-No

+Yes

No

@@ -508,6 +555,7 @@ XPS to PDF

Yes

Yes

No

+Yes

No

No

No

@@ -519,6 +567,7 @@ No

No

No

No

+No

No

@@ -528,6 +577,7 @@ No

No

No

No

+No

No

@@ -537,6 +587,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -545,17 +596,19 @@ Yes

Yes

No

No

+No

Yes

Yes

PDF to PDF/A-1b

Yes

-No

-No

-No

+Yes

+Yes

+Yes

No

-No

+Yes

+Yes

@@ -584,7 +637,7 @@ Yes

Yes

Yes

Yes

-No

+Yes

@@ -594,7 +647,7 @@ Yes

Yes

Yes

Yes

-No

+Yes

PDF/ A-3b Compliance

@@ -603,7 +656,7 @@ Yes

Yes

Yes

Yes

-No

+Yes

PDF/x1a: 2001 Compliance

@@ -966,7 +1019,7 @@ Yes

Yes

Yes

Yes

-No

+Yes

@@ -976,7 +1029,7 @@ Yes

Yes

Yes

Yes

-No

+Yes

@@ -990,7 +1043,8 @@ Security: Features

.NET Framework

UWP

-Xamarin and .NET Core

+Xamarin

+.NET Core

Blazor Client-Side

Blazor Server-Side & Hosted Application

WinUI

@@ -1004,6 +1058,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -1013,6 +1068,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -1022,6 +1078,7 @@ Yes

Yes

Yes

Yes

+Yes

Yes

@@ -1031,15 +1088,17 @@ Yes

Yes

Yes

Yes

+Yes

Yes

Redaction

Yes

No

-Yes*

-No

+Yes

+Yes*

No

-No

+Yes

+Yes

From 5313a0f6e962297c47dcda1796c9c748123cf15e Mon Sep 17 00:00:00 2001 From: Srihariharan Date: Fri, 19 Jan 2024 15:56:06 +0530 Subject: [PATCH 3/5] 865451 : Remove Net standdard 2.0 related lines. --- .../PDF/Supported-and-Unsupported-Features.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/File-Formats/PDF/Supported-and-Unsupported-Features.md b/File-Formats/PDF/Supported-and-Unsupported-Features.md index bafb92dd8..e2e944d2b 100644 --- a/File-Formats/PDF/Supported-and-Unsupported-Features.md +++ b/File-Formats/PDF/Supported-and-Unsupported-Features.md @@ -454,7 +454,7 @@ Fields

Yes

Yes

Yes

-Yes*

+Yes

Yes

Yes

Yes

@@ -464,14 +464,13 @@ Form Filling

Yes

Yes

Yes

-Yes*

+Yes

Yes

Yes

Yes

-*Supported on ASP.NET Core 2.0 and above
Document Conversion: @@ -505,7 +504,7 @@ HTML to PDF

Yes

No

No

-Yes*

+Yes

No

Yes

No

@@ -533,9 +532,9 @@ Yes

Excel To PDF

Yes

-Yes*

+Yes

Yes

-Yes*

+Yes

Yes

Yes

No

@@ -612,7 +611,6 @@ Yes

-*Supported on .NETStandard 2.0 and above
PDF Standards: @@ -1096,7 +1094,7 @@ Redaction

Yes

No

Yes

-Yes*

+Yes

No

Yes

Yes

From c0de1ea3cf3f8437e13a54f9da0e01d883818707 Mon Sep 17 00:00:00 2001 From: "anburasan.saravanan@syncfusion.com" Date: Fri, 19 Jan 2024 17:31:41 +0530 Subject: [PATCH 4/5] ES-818185-Added cross platform code --- .../Presentation/Presentation-to-image.md | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/File-Formats/Presentation/Presentation-to-image.md b/File-Formats/Presentation/Presentation-to-image.md index 55b7cee36..7c48ba563 100644 --- a/File-Formats/Presentation/Presentation-to-image.md +++ b/File-Formats/Presentation/Presentation-to-image.md @@ -118,6 +118,30 @@ The following code example demonstrates the conversion of an entire Presentation {% tabs %} +{% highlight c# tabtitle="C# [Cross-platform]" %} +using (FileStream fileStream = new FileStream("Sample.pptx", FileMode.Open, FileAccess.Read)) +{ + //Open the existing PowerPoint presentation. + using (IPresentation pptxDoc = Presentation.Open(fileStream)) + { + //Initialize the PresentationRenderer to perform image conversion. + pptxDoc.PresentationRenderer = new PresentationRenderer(); + //Convert PowerPoint to image as stream. + Stream[] images = pptxDoc.RenderAsImages(ExportImageFormat.Jpeg); + //Saves the images to file system + foreach (Stream stream in images) + { + //Create the output image file stream + using (FileStream fileStreamOutput = File.Create("Output" + Guid.NewGuid().ToString() + ".jpg")) + { + //Copy the converted image stream into created output stream + stream.CopyTo(fileStreamOutput); + } + } + } +} +{% endhighlight %} + {% highlight c# tabtitle="C# [Windows-specific]" %} //Loads the PowerPoint Presentation IPresentation pptxDoc = Presentation.Open("Sample.pptx"); @@ -471,6 +495,40 @@ The following code sample demonstrates how to set a substitute font for a missin {% tabs %} +{% highlight c# tabtitle="C# [Cross-platform]" %} +//Load the PowerPoint presentation and convert to image +using (IPresentation pptxDoc = Presentation.Open("Sample.pptx")) +{ + //Initialize the PresentationRenderer to perform image conversion. + pptxDoc.PresentationRenderer = new PresentationRenderer(); + // Initializes the 'SubstituteFont' event to set the replacement font + pptxDoc.FontSettings.SubstituteFont += FontSettings_SubstituteFont; + //Convert PowerPoint slide to image as stream. + using (Stream stream = pptxDoc.Slides[0].ConvertToImage(ExportImageFormat.Jpeg)) + { + //Create the output image file stream + using (FileStream fileStreamOutput = File.Create("Output.jpg")) + { + //Copy the converted image stream into created output stream + stream.CopyTo(fileStreamOutput); + } + } +} +/// +/// Sets the alternate font when a specified font is unavailable in the production environment +/// +/// FontSettings type of the Presentation in which the specified font is used but unavailable in production environment. +/// Retrieves the unavailable font name and receives the substitute font name for conversion. +private static void FontSettings_SubstituteFont(object sender, SubstituteFontEventArgs args) +{ + if (args.OriginalFontName == "Arial Unicode MS") + + args.AlternateFontName = "Arial"; + else + args.AlternateFontName = "Times New Roman"; +} +{% endhighlight %} + {% highlight c# tabtitle="C# [Windows-specific]" %} //Load the PowerPoint presentation and convert to image using (IPresentation pptxDoc = Presentation.Open("Sample.pptx")) From c1a4c92737b387afa7ab575a4e0c87e1b959bd62 Mon Sep 17 00:00:00 2001 From: KurmithaSF4004 Date: Mon, 22 Jan 2024 12:13:37 +0530 Subject: [PATCH 5/5] Changes-in-XlsIO-UG --- File-Formats-toc.html | 5 +++++ .../XlsIO/convert-excel-to-image-in-google-app-engine.md | 2 ++ 2 files changed, 7 insertions(+) diff --git a/File-Formats-toc.html b/File-Formats-toc.html index 82d9d8b4e..7c0342910 100644 --- a/File-Formats-toc.html +++ b/File-Formats-toc.html @@ -1508,6 +1508,11 @@
  • AWS Lambda
  • +
  • Google Cloud Platform (GCP) + +
  • Chart to Image Conversion
  • diff --git a/File-Formats/XlsIO/convert-excel-to-image-in-google-app-engine.md b/File-Formats/XlsIO/convert-excel-to-image-in-google-app-engine.md index 36b98f908..beed36636 100644 --- a/File-Formats/XlsIO/convert-excel-to-image-in-google-app-engine.md +++ b/File-Formats/XlsIO/convert-excel-to-image-in-google-app-engine.md @@ -89,6 +89,8 @@ Step 7: Add a new button in the Index.cshtml as shown below. } Html.EndForm(); } +{% endhighlight %} +{% endtabs %} Step 8: Add a new action method **ConvertExcelToImage** in HomeController.cs and include the below code snippet to **convert the Excel document to image** and download it.