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/PDF/Supported-and-Unsupported-Features.md b/File-Formats/PDF/Supported-and-Unsupported-Features.md index 10cb911ae..e2e944d2b 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,23 +453,24 @@ Xamarin and .NET Core

    Fields

    Yes

    Yes

    -Yes*

    +Yes

    Yes

    Yes

    -No

    +Yes

    +Yes

    Form Filling

    Yes

    Yes

    -Yes*

    +Yes

    Yes

    Yes

    -No

    +Yes

    +Yes

    -*Supported on ASP.NET Core 2.0 and above
    Document Conversion: @@ -442,7 +481,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 +493,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 +514,7 @@ RTF To PDF

    Yes

    Yes

    Yes

    +Yes

    No

    Yes

    No

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

    Yes

    Yes

    Yes

    +Yes

    No

    Excel To PDF

    Yes

    -Yes*

    -Yes*

    +Yes

    +Yes

    +Yes

    Yes

    Yes

    No

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

    Yes

    No

    No

    +Yes

    No

    -No

    +Yes

    No

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

    Yes

    Yes

    No

    +Yes

    No

    No

    No

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

    No

    No

    No

    +No

    No

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

    No

    No

    No

    +No

    No

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

    Yes

    Yes

    Yes

    +Yes

    Yes

    @@ -545,21 +595,22 @@ Yes

    Yes

    No

    No

    +No

    Yes

    Yes

    PDF to PDF/A-1b

    Yes

    -No

    -No

    -No

    +Yes

    +Yes

    +Yes

    No

    -No

    +Yes

    +Yes

    -*Supported on .NETStandard 2.0 and above
    PDF Standards: @@ -584,7 +635,7 @@ Yes

    Yes

    Yes

    Yes

    -No

    +Yes

    @@ -594,7 +645,7 @@ Yes

    Yes

    Yes

    Yes

    -No

    +Yes

    PDF/ A-3b Compliance

    @@ -603,7 +654,7 @@ Yes

    Yes

    Yes

    Yes

    -No

    +Yes

    PDF/x1a: 2001 Compliance

    @@ -966,7 +1017,7 @@ Yes

    Yes

    Yes

    Yes

    -No

    +Yes

    @@ -976,7 +1027,7 @@ Yes

    Yes

    Yes

    Yes

    -No

    +Yes

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

    .NET Framework

    UWP

    -Xamarin and .NET Core

    +Xamarin

    +.NET Core

    Blazor Client-Side

    Blazor Server-Side & Hosted Application

    WinUI

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

    Yes

    Yes

    Yes

    +Yes

    Yes

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

    Yes

    Yes

    Yes

    +Yes

    Yes

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

    Yes

    Yes

    Yes

    +Yes

    Yes

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

    Yes

    Yes

    Yes

    +Yes

    Yes

    Redaction

    Yes

    No

    -Yes*

    -No

    +Yes

    +Yes

    No

    -No

    +Yes

    +Yes

    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. 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")) 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.