diff --git a/File-Formats/DocIO/Working-with-Comments.md b/File-Formats/DocIO/Working-with-Comments.md index 8fa83f4b1..a3543a374 100644 --- a/File-Formats/DocIO/Working-with-Comments.md +++ b/File-Formats/DocIO/Working-with-Comments.md @@ -444,4 +444,8 @@ End Using {% endtabs %} -You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Comments/Retrieve-commented-word). \ No newline at end of file +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Comments/Retrieve-commented-word). + +## See Also + +* [How to check if a comment is resolved or not in a Word document?](https://support.syncfusion.com/kb/article/14652/how-to-check-if-comment-is-resolved-or-not-in-word-document) \ No newline at end of file diff --git a/File-Formats/DocIO/installation/linux-installer/how-to-download.md b/File-Formats/DocIO/installation/linux-installer/how-to-download.md index 9f1210f11..184dc2b1b 100644 --- a/File-Formats/DocIO/installation/linux-installer/how-to-download.md +++ b/File-Formats/DocIO/installation/linux-installer/how-to-download.md @@ -1,12 +1,14 @@ --- layout: post -title: Downloading Syncfusion Essential Studio Linux installer - Syncfusion -description: Learn here about the how to download Syncfusion Essential Studio Linux installer from our syncfusion website with license. -platform: common +title: Downloading Syncfusion Word linux installer - Syncfusion +description: Learn here about how to download the Syncfusion Word linux installer from our Syncfusion website with license. +platform: file-formats +control: Installation and Deployment documentation: ug ---- -# Download Syncfusion Essential Studio Linux Installer +--- + +# Download Syncfusion Word Linux Installer The Syncfusion installer can be downloaded from the [Syncfusion](https://www.syncfusion.com/) website. You can either download the licensed installer or try our trial installer depending on your license. @@ -28,17 +30,17 @@ Our 30-day trial can be downloaded in two ways. 1. You can evaluate our 30-day free trial by visiting the [Download Free Trial](https://www.syncfusion.com/downloads) page and select the product 2. After completing the required form or logging in with your registered Syncfusion account, you can download the trial installer from the confirmation page. (as shown in below screenshot.) - ![Trial and downloads of Syncfusion Essential Studio](images/trial-confirmation.png) + ![Trial and downloads of Syncfusion Word](images/trial-confirmation.png) 3. With a trial license, only the latest version’s trial installer can be downloaded. -4. Unlock key is not required to install the Syncfusion Essential Studio Linux trial installer. +4. Unlock key is not required to install the Syncfusion Word Linux trial installer. 5. Before the trial expires, you can download the trial installer at any time from your registered account’s [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page (as shown in below screenshot.) - ![Trial and downloads of Syncfusion Essential Studio](images/trial-download.png) + ![Trial and downloads of Syncfusion Word](images/trial-download.png) -6. Click the More Download Options (element 2 in the above screenshot) button to get the Essential Studio Product Offline trial installer which is available in ZIP format. +6. Click the More Download Options (element 2 in the above screenshot) button to get the Word Product Offline trial installer which is available in ZIP format. - ![License and downloads of Syncfusion Essential Studio](images/start-trial-download-offline-installer.png) + ![License and downloads of Syncfusion Word](images/start-trial-download-offline-installer.png) ### Start Trials if using components through [NuGet.org](https://www.nuget.org/packages?q=syncfusion) @@ -48,7 +50,7 @@ You should initiate an evaluation if you have already obtained our components th N> You can generate the license key for your active trial products from [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page. This license key will be mandatory to use our trial products in your application. To know more about License key, refer this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/overview). - ![Trial and downloads of Syncfusion Essential Studio](images/start-trial-download.png) + ![Trial and downloads of Syncfusion Word](images/start-trial-download.png) 2. To access this page, you must sign up\log in with your Syncfusion account. 3. Begin your trial by selecting the Syncfusion product. @@ -57,7 +59,7 @@ You should initiate an evaluation if you have already obtained our components th 4. After you've started the trial, go to the [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page to get the latest version trial installer. You can generate the [unlock key](https://www.syncfusion.com/kb/8069/how-to-generate-unlock-key-for-essentials-studio-products) and [license key](https://help.syncfusion.com/common/essential-studio/licensing/how-to-generate) here at any time before the trial period expires. (as shown in below screenshot.) - ![License and downloads of Syncfusion Essential Studio](images/start-trial-download-installer.png) + ![License and downloads of Syncfusion Word](images/start-trial-download-installer.png) 5. You can find your current active trial products on the [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page. @@ -66,13 +68,13 @@ You should initiate an evaluation if you have already obtained our components th 1. Syncfusion licensed products will be available in the [License & Downloads](https://www.syncfusion.com/account/downloads) page under your registered Syncfusion account. 2. You can view all the licenses (both active and expired) associated with your account. -3. You can download Essential Studio Linux licensed installer by going to More Downloads Options (element 3 in the screenshot below). +3. You can download Word Linux licensed installer by going to More Downloads Options (element 3 in the screenshot below). - ![License and downloads of Syncfusion Essential Studio](images/license-download.png) + ![License and downloads of Syncfusion Word](images/license-download.png) -4. Unlock key is not required to install the Syncfusion Essential Studio Linux trial installer. +4. Unlock key is not required to install the Syncfusion Word Linux trial installer. 5. For Linux OS, ZIP formats is available for download. - ![License and downloads of Syncfusion Essential Studio](images/Linux_Download.PNG) + ![License and downloads of Syncfusion Word](images/Linux_Download.PNG) -You can also refer to the [**Essential Studio Linux installer**](https://help.syncfusion.com/common/essential-studio/installation/linux-installer/how-to-install) links for step-by-step installation guidelines. +You can also refer to the [**Word Linux installer**](https://help.syncfusion.com/common/essential-studio/installation/linux-installer/how-to-install) links for step-by-step installation guidelines. diff --git a/File-Formats/DocIO/installation/linux-installer/how-to-install.md b/File-Formats/DocIO/installation/linux-installer/how-to-install.md index 7cfdbd9ce..25ca925db 100644 --- a/File-Formats/DocIO/installation/linux-installer/how-to-install.md +++ b/File-Formats/DocIO/installation/linux-installer/how-to-install.md @@ -1,13 +1,14 @@ --- layout: post -title: Installing Syncfusion Essential Studio Linux installer - Syncfusion -description: Learn here about how to install Syncfusion Essential Studio Linux installer after downloading from our Syncfusion website. -platform: common -control: Essential Studio +title: Installing Syncfusion Word linux installer-Syncfusion +description: Learn here about how to install Syncfusion Word linux installer after downloading from our Syncfusion website. +platform: file-formats +control: Installation and Deployment documentation: ug + --- -# Installing Syncfusion Essential Studio Linux installer +# Installing Syncfusion Word Linux installer ## Overview @@ -26,9 +27,9 @@ Syncfusion provides the Linux installer for the following Essential Studio produ ## Step-by-Step Installation -The steps below show how to install Essential Studio Linux installer. +The steps below show how to install Word Linux installer. -1. Extract the Syncfusion Essential Studio Linux installer(.zip) file. The files are extracted in your machine. +1. Extract the Syncfusion Word Linux installer(.zip) file. The files are extracted in your machine. ![Welcome wizard](images/Linux_Installer1.png) @@ -49,7 +50,7 @@ The steps below show how to install Essential Studio Linux installer. ## License key registration in samples -After the installation, the license key is required to register the demo source that is included in the Linux installer. To learn about the steps for license registration for the ASP.NET Core - EJ2 Linux installer, please refer to this. +After the installation, the license key is required to register the demo source that is included in the Mac installer. To learn about the steps for license registration for the ASP.NET Core - EJ2 Mac installer, please refer to this. * Register the license key in the [Program.cs](https://ej2.syncfusion.com/aspnetcore/documentation/licensing/how-to-register-in-an-application#for-aspnet-core-application-using-net-60) file if you created the ASP.NET Core web application with Visual Studio 2022 and .NET 6.0. * Register the license key in Configure method of [Startup.cs](https://ej2.syncfusion.com/aspnetcore/documentation/licensing/how-to-register-in-an-application#for-aspnet-core-application-using-net-50-or-net-31) \ No newline at end of file diff --git a/File-Formats/DocIO/installation/linux-installer/images/Linux_Download.PNG b/File-Formats/DocIO/installation/linux-installer/images/Linux_Download.PNG index b80307bfa..2d8a6788a 100644 Binary files a/File-Formats/DocIO/installation/linux-installer/images/Linux_Download.PNG and b/File-Formats/DocIO/installation/linux-installer/images/Linux_Download.PNG differ diff --git a/File-Formats/PDF-to-image/Convert-PDF-to-Image.md b/File-Formats/PDF-to-image/Convert-PDF-to-Image.md index f209aaf7a..7c91d776f 100644 --- a/File-Formats/PDF-to-image/Convert-PDF-to-Image.md +++ b/File-Formats/PDF-to-image/Convert-PDF-to-Image.md @@ -11,6 +11,9 @@ keywords: Assemblies This PDF to image converter library allows converting PDF documents to images without opening the document in the PDF Viewer control. It allows you to selectively export pages as a stream by utilizing the 'Convert' method, facilitating the transformation of PDF files into images. +Watch the following video to quickly get started with converting PDF to image in .NET using a PDF to Image Converter Library. +{% youtube "https://www.youtube.com/watch?v=Grjtyh5gBr8" %} + NuGet diff --git a/File-Formats/PDF/Asp.Net.Core_images/html-to-pdf-conversion3.png b/File-Formats/PDF/Asp.Net.Core_images/html-to-pdf-conversion3.png index 10918b259..cbc95ca6d 100644 Binary files a/File-Formats/PDF/Asp.Net.Core_images/html-to-pdf-conversion3.png and b/File-Formats/PDF/Asp.Net.Core_images/html-to-pdf-conversion3.png differ diff --git a/File-Formats/PDF/Asp.Net.Core_images/html-to-pdf-conversion4.png b/File-Formats/PDF/Asp.Net.Core_images/html-to-pdf-conversion4.png index 10918b259..75031aaa6 100644 Binary files a/File-Formats/PDF/Asp.Net.Core_images/html-to-pdf-conversion4.png and b/File-Formats/PDF/Asp.Net.Core_images/html-to-pdf-conversion4.png differ diff --git a/File-Formats/PDF/Console_images/Nuget_package_Core.png b/File-Formats/PDF/Console_images/Nuget_package_Core.png index 237b5d14d..2fb7a8f4a 100644 Binary files a/File-Formats/PDF/Console_images/Nuget_package_Core.png and b/File-Formats/PDF/Console_images/Nuget_package_Core.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/Azure_images/Azure_app_service_windows/Package_Manager_Console_Nuget.png b/File-Formats/PDF/Convert-HTML-To-PDF/Azure_images/Azure_app_service_windows/Package_Manager_Console_Nuget.png index 9ea7a6451..16cd22529 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/Azure_images/Azure_app_service_windows/Package_Manager_Console_Nuget.png and b/File-Formats/PDF/Convert-HTML-To-PDF/Azure_images/Azure_app_service_windows/Package_Manager_Console_Nuget.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/Azure_images/Azure_function/AzureFunctions4.png b/File-Formats/PDF/Convert-HTML-To-PDF/Azure_images/Azure_function/AzureFunctions4.png index 27e32912f..c39707fd6 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/Azure_images/Azure_function/AzureFunctions4.png and b/File-Formats/PDF/Convert-HTML-To-PDF/Azure_images/Azure_function/AzureFunctions4.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/Blink.md b/File-Formats/PDF/Convert-HTML-To-PDF/Blink.md index c9aca4ab8..e2f56f545 100644 --- a/File-Formats/PDF/Convert-HTML-To-PDF/Blink.md +++ b/File-Formats/PDF/Convert-HTML-To-PDF/Blink.md @@ -2900,7 +2900,7 @@ settings.AdditionalDelay = 2000;
Solution You can convert HTML to PDF using the Blink rendering engine in Azure cloud service (which has the elevated permission and rights to access the GDI calls). -Refer to this link for more information. +Refer to this link for more information.
diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-AWS-Elastic-Beanstalk.md b/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-AWS-Elastic-Beanstalk.md new file mode 100644 index 000000000..fad11a57e --- /dev/null +++ b/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-AWS-Elastic-Beanstalk.md @@ -0,0 +1,120 @@ +--- +title: Convert HTML to PDF in AWS Elastic Beanstalk | Syncfusion +description: Convert HTML to PDF in AWS Elastic Beanstalk using Syncfusion .NET HTML converter library. +platform: file-formats +control: PDF +documentation: UG +--- + +# Convert HTML to PDF file in AWS Elastic Beanstalk + +The Syncfusion [HTML to PDF converter](https://www.syncfusion.com/pdf-framework/net/html-to-pdf) is a .NET library for converting webpages, SVG, MHTML, and HTML to PDF using C#. Using this library, **convert HTML to PDF document using Blink in AWS Elastic Beanstalk**. + +## Steps to convert HTML to PDF using Blink in AWS Elastic Beanstalk + +Step 1: Create a new C# ASP.NET Core Web Application project. +![AWS Elastic Beanstalk Step1](htmlconversion_images/AWS_Elastic_Beanstalk1.png) + +Step 2: In configuration windows, name your project and select **Next**. +![AWS Elastic Beanstalk Step2](htmlconversion_images/AWS_Elastic_Beanstalk2.png) + +![AWS Elastic Beanstalk Step2.1](htmlconversion_images/AWS_Elastic_Beanstalk3.png) + +Step 3: Install the [Syncfusion.HtmlToPdfConverter.Net.Aws](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Aws/) NuGet package as a reference to your AWS Elastic Beanstalk project from [NuGet.org.](https://www.nuget.org/). +![AWS Elastic Beanstalk Step3](htmlconversion_images/AWS_Elastic_Beanstalk4.png) + +Step 4: A default controller named HomeController.cs gets added to create the ASP.NET Core MVC project. Include the following namespaces in that HomeController.cs file.
+{% highlight c# tabtitle="C#" %} + +using Syncfusion.Pdf; +using Syncfusion.HtmlConverter; +using System.IO; + +{% endhighlight %} + +Step 5: Add a new button in index.cshtml as follows. + +{% highlight c# tabtitle="C#" %} + +@{ + Html.BeginForm("BlinkToPDF", "Home", FormMethod.Get); + { +
+ +
+
+ @ViewBag.Message +
+
+ } + Html.EndForm(); +} + +{% endhighlight %} + +Step 6: Add a new action method named BlinkToPDF in HomeController.cs and include the following code example to convert HTML to PDF document using the Convert method in [HtmlToPdfConverter](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.HtmlToPdfConverter.html) class. The HTML content will be scaled based on the given [ViewPortSize](https://help.syncfusion.com/cr/fileformats/Syncfusion.HtmlConverter.BlinkConverterSettings.html#Syncfusion_HtmlConverter_BlinkConverterSettings_ViewPortSize) property of the [BlinkConverterSettings](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.BlinkConverterSettings.html) class. + +{% highlight c# tabtitle="C#" %} + +public IActionResult BlinkToPDF() +{ + //Initialize HTML to PDF converter. + HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.Blink); + BlinkConverterSettings settings = new BlinkConverterSettings(); + //Set command line arguments to run without the sandbox. + settings.CommandLineArguments.Add("--no-sandbox"); + settings.CommandLineArguments.Add("--disable-setuid-sandbox"); + //Set Blink viewport size. + settings.ViewPortSize = new Syncfusion.Drawing.Size(1280, 0); + //Assign Blink settings to the HTML converter. + htmlConverter.ConverterSettings = settings; + //Convert URL to PDF document. + PdfDocument document = htmlConverter.Convert("https://www.syncfusion.com"); + //Create the memory stream. + MemoryStream stream = new MemoryStream(); + //Save the document to the memory stream. + document.Save(stream); + return File(stream.ToArray(), System.Net.Mime.MediaTypeNames.Application.Pdf, "BlinkLinuxDockerAWSBeanstalk.pdf"); +} + +{% endhighlight %} + +Step 7: Click the **Publish to AWS Elastic Beanstalk (Legacy)** option by right-clicking the project to +publish the application in the AWS Elastic Beanstalk environment. +![AWS Elastic Beanstalk Step7](htmlconversion_images/AWS_Elastic_Beanstalk5.png) + +Step 8: Select the **Create a new application environment** and click **Next** from Publish to AWS Elastic Beanstalk window. +![AWS Elastic Beanstalk Step8](htmlconversion_images/AWS_Elastic_Beanstalk6.png) + +Step 9: Please give any valid name to the environment and URL text box. Check whether the URL link is available while clicking the **Check availability** option. If the requested link is available means, +click **NEXT** in the Application Environment window. +![AWS Elastic Beanstalk Step9](htmlconversion_images/AWS_Elastic_Beanstalk7.png) + +Step 10: Select **t3a.micro** from the Instance Type text box and select **Next** in the AWS Options +Window. +![AWS Elastic Beanstalk Step10](htmlconversion_images/AWS_Elastic_Beanstalk8.png) + +Step 11: Select the Roles and **Next** option from the Permissions window. +![AWS Elastic Beanstalk Step11](htmlconversion_images/AWS_Elastic_Beanstalk9.png) + +Step 12: Click **Next** from the Application Options window. +![AWS Elastic Beanstalk Step12](htmlconversion_images/AWS_Elastic_Beanstalk10.png) + +Step 13: Click **Deploy** from the Review window. +![AWS Elastic Beanstalk Step13](htmlconversion_images/AWS_Elastic_Beanstalk11.png) + +Step 14: Click the **URL link** to launch the application once the Environment is updated successfully and +![AWS Elastic Beanstalk Step14](htmlconversion_images/AWS_Elastic_Beanstalk12.png) + +Environment status is healthy. +Step 15: Now, the webpage will open in the browser. Click the button to convert the webpage to a PDF document. +![AWS Elastic Beanstalk Step15](htmlconversion_images/AWS_Elastic_Beanstalk13.png) + +By executing the program, you will get a PDF document as follows. +![HTML to PDF output](htmlconversion_images/AWS_Elastic_Beanstalk14.png) + +A complete working sample for converting an HTML to PDF using Linux docker in AWS Elastic Beanstalk can be downloaded from [GitHub](https://github.com/SyncfusionExamples/html-to-pdf-csharp-examples/tree/master/AWS/AWSElasticBeanstalkSample). + +Click [here](https://www.syncfusion.com/document-processing/pdf-framework/net-core/html-to-pdf) to explore the rich set of Syncfusion HTML to PDF converter library features. + +An online sample link to [convert HTML to PDF document](https://ej2.syncfusion.com/aspnetcore/PDF/HtmltoPDF#/material3) in ASP.NET Core. diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-AWS-Lambda-with-NET 6-container-image.md b/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-AWS-Lambda-with-NET 6-container-image.md new file mode 100644 index 000000000..d9ce2b1a5 --- /dev/null +++ b/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-AWS-Lambda-with-NET 6-container-image.md @@ -0,0 +1,184 @@ +--- +title: Convert HTML to PDF in AWS Lambda with NET 6 container image | Syncfusion +description: Convert HTML to PDF in AWS Lambda with NET 6 container image using Syncfusion .NET HTML converter library. +platform: file-formats +control: PDF +documentation: UG +--- + +# Convert HTML to PDF file in AWS Lambda with NET 6 container image + +The Syncfusion [HTML to PDF converter](https://www.syncfusion.com/pdf-framework/net/html-to-pdf) is a .NET library for converting webpages, SVG, MHTML, and HTML to PDF using C#. Using this library, **convert HTML to PDF document in AWS Lambda with NET 6 container image**. + +## Steps to convert HTML to PDF in AWS Lambda with NET 6 container image + +Step 1: Create a new AWS Lambda project with Tests as follows. +![Convert HTMLToPDF AWS Lambda Step1](htmlconversion_images/awslambda1.png) + +Step 2: In configuration window, name the project and select Create. +![Convert HTMLToPDF AWS Lambda Step2](htmlconversion_images/awslambda2.png) + +Step 3: Select Blueprint as .NET 6 (Container Image) Function and click Finish. +![Convert HTMLToPDF AWS Lambda Step3](htmlconversion_images/awslambda3.png) + +Step 4: Install the [Syncfusion.HtmlToPdfConverter.Net.Aws](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Aws/) and [AWSSDK.Lambda](https://www.nuget.org/packages/AWSSDK.Lambda) NuGet package as a reference to your AWS lambda project from [NuGet.org](https://www.nuget.org/). +![NuGet package installation](htmlconversion_images/awslambda4.png) + +N> Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to add "Syncfusion.Licensing" assembly reference and 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. + +Step 5: Using the following namespaces in the Function.cs file. + +{% highlight c# tabtitle="C#" %} + +using Syncfusion.HtmlConverter; +using Syncfusion.Pdf; +using System.IO; + +{% endhighlight %} + +Step 6: Add the following code sample in the Function.cs to convert HTML to PDF document using [Convert](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.HtmlToPdfConverter.html#Syncfusion_HtmlConverter_HtmlToPdfConverter_Convert_System_String_) method in [HtmlToPdfConverter](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.HtmlToPdfConverter.html) class. The Blink command line arguments based on the given [CommandLineArguments](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.BlinkConverterSettings.html#Syncfusion_HtmlConverter_BlinkConverterSettings_CommandLineArguments) property of [BlinkConverterSettings](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.BlinkConverterSettings.html) class. + +{% highlight c# tabtitle="C#" %} + +public string FunctionHandler(string input, ILambdaContext context) +{ + //Initialize HTML to a PDF converter with the Blink rendering engine. + HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.Blink); + + BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); + blinkConverterSettings.BlinkPath = Path.GetFullPath("BlinkBinariesAws"); + blinkConverterSettings.CommandLineArguments.Add("--no-sandbox"); + blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox"); + blinkConverterSettings.AdditionalDelay = 3000; + htmlConverter.ConverterSettings = blinkConverterSettings; + + //Convert the HTML string to PDF. + PdfDocument document = htmlConverter.Convert(input, PathToFile()); + + //Save the document into a stream. + MemoryStream memoryStream = new MemoryStream(); + //Save and close the PDFDocument. + document.Save(memoryStream); + document.Close(true); + string base64 = Convert.ToBase64String(memoryStream.ToArray()); + memoryStream.Close(); + memoryStream.Dispose(); + + return base64; +} + +public static string PathToFile() +{ + string? path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); + if (string.IsNullOrEmpty(path)) + { + path = Environment.OSVersion.Platform == PlatformID.Unix ? @"/" : @"\"; + } + return Environment.OSVersion.Platform == PlatformID.Unix ? string.Concat(path.Substring(5), @"/") : string.Concat(path.Substring(6), @"\"); +} + +{% endhighlight %} + +Step 7: Create a new folder as Helper and add a class file as AWSHelper.cs. Add the following namespaces and code samples in the AWSHelper class to invoke the published AWS Lambda function using the function name and access keys. + +{% highlight c# tabtitle="C#" %} + +Using Amazon.Lambda; +using Amazon.Lambda.Model; +using Newtonsoft.Json; + +public class AWSHelper +{ + public static async Task RunLambdaFunction(string html) + { + try + { + var AwsAccessKeyId = "awsaccessKeyID"; + var AwsSecretAccessKey = "awsSecretAccessKey"; + + AmazonLambdaClient client = new AmazonLambdaClient(AwsAccessKeyId, AwsSecretAccessKey, Amazon.RegionEndpoint.USEast1); + InvokeRequest invoke = new InvokeRequest + { + FunctionName = "AWSLambdaDockerContainer", + InvocationType = InvocationType.RequestResponse, + Payload = Newtonsoft.Json.JsonConvert.SerializeObject(html) + }; + //Get the InvokeResponse from the client InvokeRequest. + InvokeResponse response = await client.InvokeAsync(invoke); + + //Read the response stream. + Console.WriteLine($"Response: {response.LogResult}"); + Console.WriteLine($"Response: {response.StatusCode}"); + Console.WriteLine($"Response: {response.FunctionError}"); + var stream = new StreamReader(response.Payload); + JsonReader reader = new JsonTextReader(stream); + var serilizer = new JsonSerializer(); + var responseText = serilizer.Deserialize(reader); + + //Convert Base64String into a PDF document. + return Convert.FromBase64String(responseText.ToString()); + } + catch (Exception ex) + { + Console.WriteLine($"Exception Occured HTMLToPDFHelper: {ex}"); + } + return Convert.FromBase64String(""); + } +} + +{% endhighlight %} + +Step 8: Right-click the project and select **Publish to AWS Lambda**. + +![Convert HTMLToPDF AWS Lambda Step5](htmlconversion_images/awslambda5.png) + +Step 9: Create a new AWS profile in the Upload Lambda Function Window. After creating the profile, add a name for the Lambda function to publish. Then, click **Next**. + +![Convert HTMLToPDF AWS Lambda Step6](htmlconversion_images/awslambda6.png) + +Step 10: In the Advanced Function Details window, specify the **Role Name** as based on AWS Managed policy. After selecting the role, click the Upload button to deploy your application. + +![Convert HTMLToPDF AWS Lambda Step7](htmlconversion_images/awslambda7.png) +![Convert HTMLToPDF AWS Lambda Step8](htmlconversion_images/awslambda8.png) + +Step 11: After deploying the application, Sign in to your AWS account, and you can see the published Lambda function in the AWS console. + +![Convert HTMLToPDF AWS Lambda Step9](htmlconversion_images/awslambda9.png) + +## Steps to invoke the AWS Lambda function from the Test application + +Step 12: Add the following code to invoke the AWS lambda function with the HTML string from the Function Test. + +{% highlight c# tabtitle="C#" %} + +public class FunctionTest +{ + [Fact] + public void HtmlToPDFFunction() + { + string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); + string filePath = Environment.OSVersion.Platform == PlatformID.Unix ? string.Concat(path.Substring(5), @"/") : string.Concat(path.Substring(6), @"\"); + + var html = File.ReadAllText($"{filePath}/HtmlSample.html"); + byte[] base64 = null; + base64 = AWSHelper.RunLambdaFunction(html).Result; + + FileStream file = new FileStream($"{filePath}/file{DateTime.Now.Ticks}.pdf", FileMode.Create, FileAccess.Write); + var ms = new MemoryStream(base64); + ms.WriteTo(file); + file.Close(); + ms.Close(); + } +} + +{% endhighlight %} + +Step 13: Right click the test application and select **Run Tests**. + +![Convert HTMLToPDF AWS Lambda Step10](htmlconversion_images/awslambda10.png) + +Step 14: By executing the program, you will get the PDF document as follows. + +![Convert HTMLToPDF AWS Lambda Step11](htmlconversion_images/awslambda11.png) + +A complete working sample can be downloaded from [Github](https://github.com/SyncfusionExamples/html-to-pdf-csharp-examples/tree/master/AWS/HTML_to_PDF_Lambda_Docker_Container). diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-AWS-Lambda.md b/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-AWS-Lambda.md new file mode 100644 index 000000000..e1df38d91 --- /dev/null +++ b/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-AWS-Lambda.md @@ -0,0 +1,129 @@ +--- +title: Convert HTML to PDF in AWS Lambda | Syncfusion +description: Convert HTML to PDF in AWS Lambda using Syncfusion .NET HTML converter library. +platform: file-formats +control: PDF +documentation: UG +--- + +# Convert HTML to PDF file in AWS Lambda + +The Syncfusion [HTML to PDF converter](https://www.syncfusion.com/pdf-framework/net/html-to-pdf) is a .NET library for converting webpages, SVG, MHTML, and HTML to PDF using C#. Using this library, **convert HTML to PDF document in AWS Lambda**. + +Refer to the following steps to convert HTML to PDF in AWS Lambda + +* Create an AWS Lambda function to convert HTML to PDF and publish it to AWS. +* Invoke the AWS Lambda function in your main application using AWS SDKs. + +## Steps to convert HTML to PDF in AWS Lambda + +Step 1: Create a new AWS Lambda project as follows. +![Convert HTMLToPDF AWS Step1](htmlconversion_images/AWS1.png) + +Step 2: In configuration window, name the project and select Create. +![Convert HTMLToPDF AWS Step2](htmlconversion_images/AWS2.png) + +Step 3: Select Blueprint as Empty Function and click Finish. +![Convert HTMLToPDF AWS Step3](htmlconversion_images/AWS3.png) + +Step 4: Install the [Syncfusion.HtmlToPdfConverter.Net.Aws](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Aws/) NuGet package as a reference to your AWS lambda project from [NuGet.org.](https://www.nuget.org/) +![NuGet package installation](htmlconversion_images/AWS4.png) + +N> Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to add "Syncfusion.Licensing" assembly reference and 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. + +Step 5: Using the following namespaces in the *Function.cs* file. + +{% highlight c# tabtitle="C#" %} + +using Syncfusion.HtmlConverter; +using Syncfusion.Pdf; +using System.IO; + +{% endhighlight %} + +Step 6: Add the following code snippet in Function.cs to convert HTML to PDF document using [Convert](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.HtmlToPdfConverter.html#Syncfusion_HtmlConverter_HtmlToPdfConverter_Convert_System_String_) method in [HtmlToPdfConverter](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.HtmlToPdfConverter.html) class. + +{% highlight c# tabtitle="C#" %} + +//Initialize HTML to PDF converter with Blink rendering engine. +HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); +//Convert URL to PDF. +PdfDocument document = htmlConverter.Convert(input); +//Save the document into stream. +MemoryStream memoryStream = new MemoryStream(); +//Save and Close the PDF Document. +document.Save(memoryStream); +document.Close(true); +return Convert.ToBase64String(memoryStream.ToArray()); + +{% endhighlight %} + +Step 7: Right-click the project and select Publish to AWS Lambda. +![Convert HTMLToPDF AWS Step5](htmlconversion_images/AWS5.png) + +Step 8: Create a new AWS profile in the Upload Lambda Function Window. After creating the profile, add a name for the Lambda function to publish. Then, click Next. +![Convert HTMLToPDF AWS Step6](htmlconversion_images/AWS6.png) + +Step 9: In the Advanced Function Details window, specify the Role Name as based on AWS Managed policy. After selecting the role, click the Upload button to deploy your application. +![Convert HTMLToPDF AWS Step7](htmlconversion_images/AWS7.png) + +Step 10: After deploying the application, Sign in your AWS account and you can see the published Lambda function in AWS console. +![Convert HTMLToPDF AWS Step8](htmlconversion_images/AWS8.png) + +## Steps to invoke the AWS Lambda function from the console application + +Step 1: Create a new console project. +![Convert HTMLToPDF AWS Step9](htmlconversion_images/AWS9.png) + +Step 2: In project configuration windows, name the project and select Create. +![Convert HTMLToPDF AWS Step10](htmlconversion_images/AWS10.png) + +Step 3: Install the [AWSSDK.Core](https://www.nuget.org/packages/AWSSDK.Core), [AWSSDK.Lambda](https://www.nuget.org/packages/AWSSDK.Lambda) and [Newtonsoft.Json package](https://www.nuget.org/packages/Newtonsoft.Json/13.0.2-beta3) as a reference to your main application from the [NuGet.org](https://www.nuget.org/). +![Convert HTMLToPDF AWS Step11](htmlconversion_images/AWS11.png) + +Step 4: Include the following namespaces in Program.cs file. + +{% highlight c# tabtitle="C#" %} + +using Amazon; +using Amazon.Lambda; +using Amazon.Lambda.Model; +using Newtonsoft.Json; +using System.IO; + +{% endhighlight %} + +Step 5: Add the following code snippet in Program class to invoke the published AWS Lambda function using the function name and access keys. + +{% highlight c# tabtitle="C#" %} + +//Create a new AmazonLambdaClient +AmazonLambdaClient client = new AmazonLambdaClient("awsaccessKeyID", "awsSecreteAccessKey", RegionEndpoint.USEast1); +//Create new InvokeRequest with the published function name +InvokeRequest invoke = new InvokeRequest +{ + FunctionName = "AwsLambdaFunctionHtmlToPdfConversion", + InvocationType = InvocationType.RequestResponse, + Payload = "\" https://www.google.co.in/ \"" +}; +//Get the InvokeResponse from client InvokeRequest +InvokeResponse response = client.Invoke(invoke); +//Read the response stream +var stream = new StreamReader(response.Payload); +JsonReader reader = new JsonTextReader(stream); +var serilizer = new JsonSerializer(); +var responseText = serilizer.Deserialize(reader); +//Convert Base64String into PDF document +byte[] bytes = Convert.FromBase64String(responseText.ToString()); +FileStream fileStream = new FileStream("Sample.pdf", FileMode.Create); +BinaryWriter writer = new BinaryWriter(fileStream); +writer.Write(bytes, 0, bytes.Length); +writer.Close(); +System.Diagnostics.Process.Start("Sample.pdf"); + +{% endhighlight %} + +By executing the program, you will get the PDF document as follows. +![Convert HTMLToPDF AWS Step12](htmlconversion_images/AWS12.png) + +A complete working sample can be downloaded from [Github](https://github.com/SyncfusionExamples/html-to-pdf-csharp-examples/tree/master/AWS). diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-Azure-App-Service-Linux.md b/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-Azure-App-Service-Linux.md index d4786516c..01a22257e 100644 --- a/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-Azure-App-Service-Linux.md +++ b/File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-Azure-App-Service-Linux.md @@ -29,12 +29,12 @@ There are two ways to install the dependency packages to Azure server, * Using SSH from Azure portal. * By running the commands from C#. -**Using SSH command line** +3.1. Using SSH command line -* After publishing the Web application, login to the Azure portal in a web interface and open the published app service. Under Development Tools Menu, Open the SSH and Click the go link. +1. After publishing the Web application, login to the Azure portal in a web interface and open the published app service. Under Development Tools Menu, Open the SSH and Click the go link. ![Convert HTMLToPDF Azure NetCore Step4](htmlconversion_images/AzureNetCore4.png) -* From the terminal window, you can install the dependency packages. Use the following single command to install all dependencies packages. +2. From the terminal window, you can install the dependency packages. Use the following single command to install all dependencies packages. {% highlight c# tabtitle="C#" %} @@ -42,14 +42,44 @@ apt-get update && apt-get install -yq --no-install-recommends libasound2 libatk {% endhighlight %} -**Running the commands from C#** +3.2. Running the commands from C# -* Create a shell file with the above commands in the project and name it as dependenciesInstall.sh. In this article, these steps have been followed to install dependencies packages. +1. Create a shell file with the above commands in the project and name it as dependenciesInstall.sh. In this article, these steps have been followed to install dependencies packages. ![Convert HTMLToPDF Azure NetCore Step5](htmlconversion_images/AzureNetCore5.png) -* Set Copy to Output Directory as "Copy if newer" to the dependenciesInstall.sh file. +2. Set Copy to Output Directory as "Copy if newer" to the dependenciesInstall.sh file. ![Convert HTMLToPDF Azure NetCore Step6](htmlconversion_images/AzureNetCore6.png) +3. Include the following code snippet to install the dependencies code in Configure method in *startup.cs* file. + +{% highlight c# tabtitle="C#" %} + +//Install the dependencies packages for HTML to PDF conversion in Linux +string shellFilePath = System.IO.Path.Combine(env.ContentRootPath, "dependenciesInstall.sh"); +InstallDependecies(shellFilePath); + +{% endhighlight %} + +{% highlight c# tabtitle="C#" %} + +private void InstallDependecies(string shellFilePath) +{ +      Process process = new Process +      { +            StartInfo = new ProcessStartInfo +            { +                  FileName = "/bin/bash", +                  Arguments = "-c " + shellFilePath, +                  CreateNoWindow = true, +                  UseShellExecute = false, +             } +      }; +      process.Start(); +      process.WaitForExit(); +} + +{% endhighlight %} + Step 4: Add an Export to the PDF button in the index.cshtml. {% highlight c# tabtitle="C#" %} diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/aws.md b/File-Formats/PDF/Convert-HTML-To-PDF/aws.md index 054b5619e..01105870d 100644 --- a/File-Formats/PDF/Convert-HTML-To-PDF/aws.md +++ b/File-Formats/PDF/Convert-HTML-To-PDF/aws.md @@ -17,412 +17,3 @@ The Syncfusion [HTML to PDF converter](https://www.syncfusion.com/pdf-framework/ * Download and install the AWS Toolkit for Visual Studio, you can download the AWS toolkit from this [link](https://aws.amazon.com/visualstudio/). * The Toolkit can be installed from Tools/Extension and updates options in Visual Studio. -Refer to the following steps to convert HTML to PDF in AWS Lambda - -* Create an AWS Lambda function to convert HTML to PDF and publish it to AWS. -* Invoke the AWS Lambda function in your main application using AWS SDKs. - -## AWS Lambda - -**Steps to convert HTML to PDF in AWS Lambda** - -Step 1: Create a new AWS Lambda project as follows. -![Convert HTMLToPDF AWS Step1](htmlconversion_images/AWS1.png) - -Step 2: In configuration window, name the project and select Create. -![Convert HTMLToPDF AWS Step2](htmlconversion_images/AWS2.png) - -Step 3: Select Blueprint as Empty Function and click Finish. -![Convert HTMLToPDF AWS Step3](htmlconversion_images/AWS3.png) - -Step 4: Install the [Syncfusion.HtmlToPdfConverter.Net.Aws](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Aws/) NuGet package as a reference to your AWS lambda project from [NuGet.org.](https://www.nuget.org/) -![NuGet package installation](htmlconversion_images/AWS4.png) - -N> Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to add "Syncfusion.Licensing" assembly reference and 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. - -Step 5: Using the following namespaces in the *Function.cs* file. - -{% highlight c# tabtitle="C#" %} - -using Syncfusion.HtmlConverter; -using Syncfusion.Pdf; -using System.IO; - -{% endhighlight %} - -Step 6: Add the following code snippet in Function.cs to convert HTML to PDF document using [Convert](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.HtmlToPdfConverter.html#Syncfusion_HtmlConverter_HtmlToPdfConverter_Convert_System_String_) method in [HtmlToPdfConverter](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.HtmlToPdfConverter.html) class. - -{% highlight c# tabtitle="C#" %} - -//Initialize HTML to PDF converter with Blink rendering engine. -HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); -//Convert URL to PDF. -PdfDocument document = htmlConverter.Convert(input); -//Save the document into stream. -MemoryStream memoryStream = new MemoryStream(); -//Save and Close the PDF Document. -document.Save(memoryStream); -document.Close(true); -return Convert.ToBase64String(memoryStream.ToArray()); - -{% endhighlight %} - -Step 7: Right-click the project and select Publish to AWS Lambda. -![Convert HTMLToPDF AWS Step5](htmlconversion_images/AWS5.png) - -Step 8: Create a new AWS profile in the Upload Lambda Function Window. After creating the profile, add a name for the Lambda function to publish. Then, click Next. -![Convert HTMLToPDF AWS Step6](htmlconversion_images/AWS6.png) - -Step 9: In the Advanced Function Details window, specify the Role Name as based on AWS Managed policy. After selecting the role, click the Upload button to deploy your application. -![Convert HTMLToPDF AWS Step7](htmlconversion_images/AWS7.png) - -Step 10: After deploying the application, Sign in your AWS account and you can see the published Lambda function in AWS console. -![Convert HTMLToPDF AWS Step8](htmlconversion_images/AWS8.png) - -**Steps to invoke the AWS Lambda function from the console application** - -Step 1: Create a new console project. -![Convert HTMLToPDF AWS Step9](htmlconversion_images/AWS9.png) - -Step 2: In project configuration windows, name the project and select Create. -![Convert HTMLToPDF AWS Step10](htmlconversion_images/AWS10.png) - -Step 3: Install the [AWSSDK.Core](https://www.nuget.org/packages/AWSSDK.Core), [AWSSDK.Lambda](https://www.nuget.org/packages/AWSSDK.Lambda) and [Newtonsoft.Json package](https://www.nuget.org/packages/Newtonsoft.Json/13.0.2-beta3) as a reference to your main application from the [NuGet.org](https://www.nuget.org/). -![Convert HTMLToPDF AWS Step11](htmlconversion_images/AWS11.png) - -Step 4: Include the following namespaces in Program.cs file. - -{% highlight c# tabtitle="C#" %} - -using Amazon; -using Amazon.Lambda; -using Amazon.Lambda.Model; -using Newtonsoft.Json; -using System.IO; - -{% endhighlight %} - -Step 5: Add the following code snippet in Program class to invoke the published AWS Lambda function using the function name and access keys. - -{% highlight c# tabtitle="C#" %} - -//Create a new AmazonLambdaClient -AmazonLambdaClient client = new AmazonLambdaClient("awsaccessKeyID", "awsSecreteAccessKey", RegionEndpoint.USEast1); -//Create new InvokeRequest with the published function name -InvokeRequest invoke = new InvokeRequest -{ - FunctionName = "AwsLambdaFunctionHtmlToPdfConversion", - InvocationType = InvocationType.RequestResponse, - Payload = "\" https://www.google.co.in/ \"" -}; -//Get the InvokeResponse from client InvokeRequest -InvokeResponse response = client.Invoke(invoke); -//Read the response stream -var stream = new StreamReader(response.Payload); -JsonReader reader = new JsonTextReader(stream); -var serilizer = new JsonSerializer(); -var responseText = serilizer.Deserialize(reader); -//Convert Base64String into PDF document -byte[] bytes = Convert.FromBase64String(responseText.ToString()); -FileStream fileStream = new FileStream("Sample.pdf", FileMode.Create); -BinaryWriter writer = new BinaryWriter(fileStream); -writer.Write(bytes, 0, bytes.Length); -writer.Close(); -System.Diagnostics.Process.Start("Sample.pdf"); - -{% endhighlight %} - -By executing the program, you will get the PDF document as follows. -![Convert HTMLToPDF AWS Step12](htmlconversion_images/AWS12.png) - -A complete working sample can be downloaded from [Github](https://github.com/SyncfusionExamples/html-to-pdf-csharp-examples/tree/master/AWS). - -## AWS Lambda with NET 6 container image - -**Steps to convert HTML to PDF in AWS Lambda with NET 6 container image** - -Step 1: Create a new AWS Lambda project with Tests as follows. -![Convert HTMLToPDF AWS Lambda Step1](htmlconversion_images/awslambda1.png) - -Step 2: In configuration window, name the project and select Create. -![Convert HTMLToPDF AWS Lambda Step2](htmlconversion_images/awslambda2.png) - -Step 3: Select Blueprint as .NET 6 (Container Image) Function and click Finish. -![Convert HTMLToPDF AWS Lambda Step3](htmlconversion_images/awslambda3.png) - -Step 4: Install the [Syncfusion.HtmlToPdfConverter.Net.Aws](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Aws/) and [AWSSDK.Lambda](https://www.nuget.org/packages/AWSSDK.Lambda) NuGet package as a reference to your AWS lambda project from [NuGet.org](https://www.nuget.org/). -![NuGet package installation](htmlconversion_images/awslambda4.png) - -N> Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to add "Syncfusion.Licensing" assembly reference and 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. - -Step 5: Using the following namespaces in the Function.cs file. - -{% highlight c# tabtitle="C#" %} - -using Syncfusion.HtmlConverter; -using Syncfusion.Pdf; -using System.IO; - -{% endhighlight %} - -Step 6: Add the following code sample in the Function.cs to convert HTML to PDF document using [Convert](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.HtmlToPdfConverter.html#Syncfusion_HtmlConverter_HtmlToPdfConverter_Convert_System_String_) method in [HtmlToPdfConverter](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.HtmlToPdfConverter.html) class. The Blink command line arguments based on the given [CommandLineArguments](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.BlinkConverterSettings.html#Syncfusion_HtmlConverter_BlinkConverterSettings_CommandLineArguments) property of [BlinkConverterSettings](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.BlinkConverterSettings.html) class. - -{% highlight c# tabtitle="C#" %} - -public string FunctionHandler(string input, ILambdaContext context) -{ - //Initialize HTML to a PDF converter with the Blink rendering engine. - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.Blink); - - BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); - blinkConverterSettings.BlinkPath = Path.GetFullPath("BlinkBinariesAws"); - blinkConverterSettings.CommandLineArguments.Add("--no-sandbox"); - blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox"); - blinkConverterSettings.AdditionalDelay = 3000; - htmlConverter.ConverterSettings = blinkConverterSettings; - - //Convert the HTML string to PDF. - PdfDocument document = htmlConverter.Convert(input, PathToFile()); - - //Save the document into a stream. - MemoryStream memoryStream = new MemoryStream(); - //Save and close the PDFDocument. - document.Save(memoryStream); - document.Close(true); - string base64 = Convert.ToBase64String(memoryStream.ToArray()); - memoryStream.Close(); - memoryStream.Dispose(); - - return base64; -} - -public static string PathToFile() -{ - string? path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); - if (string.IsNullOrEmpty(path)) - { - path = Environment.OSVersion.Platform == PlatformID.Unix ? @"/" : @"\"; - } - return Environment.OSVersion.Platform == PlatformID.Unix ? string.Concat(path.Substring(5), @"/") : string.Concat(path.Substring(6), @"\"); -} - -{% endhighlight %} - -Step 7: Create a new folder as Helper and add a class file as AWSHelper.cs. Add the following namespaces and code samples in the AWSHelper class to invoke the published AWS Lambda function using the function name and access keys. - -{% highlight c# tabtitle="C#" %} - -Using Amazon.Lambda; -using Amazon.Lambda.Model; -using Newtonsoft.Json; - -public class AWSHelper -{ - public static async Task RunLambdaFunction(string html) - { - try - { - var AwsAccessKeyId = "awsaccessKeyID"; - var AwsSecretAccessKey = "awsSecretAccessKey"; - - AmazonLambdaClient client = new AmazonLambdaClient(AwsAccessKeyId, AwsSecretAccessKey, Amazon.RegionEndpoint.USEast1); - InvokeRequest invoke = new InvokeRequest - { - FunctionName = "AWSLambdaDockerContainer", - InvocationType = InvocationType.RequestResponse, - Payload = Newtonsoft.Json.JsonConvert.SerializeObject(html) - }; - //Get the InvokeResponse from the client InvokeRequest. - InvokeResponse response = await client.InvokeAsync(invoke); - - //Read the response stream. - Console.WriteLine($"Response: {response.LogResult}"); - Console.WriteLine($"Response: {response.StatusCode}"); - Console.WriteLine($"Response: {response.FunctionError}"); - var stream = new StreamReader(response.Payload); - JsonReader reader = new JsonTextReader(stream); - var serilizer = new JsonSerializer(); - var responseText = serilizer.Deserialize(reader); - - //Convert Base64String into a PDF document. - return Convert.FromBase64String(responseText.ToString()); - } - catch (Exception ex) - { - Console.WriteLine($"Exception Occured HTMLToPDFHelper: {ex}"); - } - return Convert.FromBase64String(""); - } -} - -{% endhighlight %} - -Step 8: Right-click the project and select **Publish to AWS Lambda**. - -![Convert HTMLToPDF AWS Lambda Step5](htmlconversion_images/awslambda5.png) - -Step 9: Create a new AWS profile in the Upload Lambda Function Window. After creating the profile, add a name for the Lambda function to publish. Then, click **Next**. - -![Convert HTMLToPDF AWS Lambda Step6](htmlconversion_images/awslambda6.png) - -Step 10: In the Advanced Function Details window, specify the **Role Name** as based on AWS Managed policy. After selecting the role, click the Upload button to deploy your application. - -![Convert HTMLToPDF AWS Lambda Step7](htmlconversion_images/awslambda7.png) -![Convert HTMLToPDF AWS Lambda Step8](htmlconversion_images/awslambda8.png) - -Step 11: After deploying the application, Sign in to your AWS account, and you can see the published Lambda function in the AWS console. - -![Convert HTMLToPDF AWS Lambda Step9](htmlconversion_images/awslambda9.png) - -**Steps to invoke the AWS Lambda function from the Test application**: - -Step 12: Add the following code to invoke the AWS lambda function with the HTML string from the Function Test. - -{% highlight c# tabtitle="C#" %} - -public class FunctionTest -{ - [Fact] - public void HtmlToPDFFunction() - { - string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); - string filePath = Environment.OSVersion.Platform == PlatformID.Unix ? string.Concat(path.Substring(5), @"/") : string.Concat(path.Substring(6), @"\"); - - var html = File.ReadAllText($"{filePath}/HtmlSample.html"); - byte[] base64 = null; - base64 = AWSHelper.RunLambdaFunction(html).Result; - - FileStream file = new FileStream($"{filePath}/file{DateTime.Now.Ticks}.pdf", FileMode.Create, FileAccess.Write); - var ms = new MemoryStream(base64); - ms.WriteTo(file); - file.Close(); - ms.Close(); - } -} - -{% endhighlight %} - -Step 13: Right click the test application and select **Run Tests**. - -![Convert HTMLToPDF AWS Lambda Step10](htmlconversion_images/awslambda10.png) - -Step 14: By executing the program, you will get the PDF document as follows. - -![Convert HTMLToPDF AWS Lambda Step11](htmlconversion_images/awslambda11.png) - -A complete working sample can be downloaded from [Github](https://github.com/SyncfusionExamples/html-to-pdf-csharp-examples/tree/master/AWS/HTML_to_PDF_Lambda_Docker_Container). - -## AWS Elastic Beanstalk - -**Steps to convert HTML to PDF using Blink in AWS Elastic Beanstalk** - -Step 1: Create a new C# ASP.NET Core Web Application project. -![AWS Elastic Beanstalk Step1](htmlconversion_images/AWS_Elastic_Beanstalk1.png) - -Step 2: In configuration windows, name your project and select **Next**. -![AWS Elastic Beanstalk Step2](htmlconversion_images/AWS_Elastic_Beanstalk2.png) - -![AWS Elastic Beanstalk Step2.1](htmlconversion_images/AWS_Elastic_Beanstalk3.png) - -Step 3: Install the [Syncfusion.HtmlToPdfConverter.Net.Aws](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Aws/) NuGet package as a reference to your AWS Elastic Beanstalk project from [NuGet.org.](https://www.nuget.org/). -![AWS Elastic Beanstalk Step3](htmlconversion_images/AWS_Elastic_Beanstalk4.png) - -Step 4: A default controller named HomeController.cs gets added to create the ASP.NET Core MVC project. Include the following namespaces in that HomeController.cs file
-{% highlight c# tabtitle="C#" %} - -using Syncfusion.Pdf; -using Syncfusion.HtmlConverter; -using System.IO; - -{% endhighlight %} - -Step 5: Add a new button in index.cshtml as follows. - -{% highlight c# tabtitle="C#" %} - -@{ - Html.BeginForm("BlinkToPDF", "Home", FormMethod.Get); - { -
- -
-
- @ViewBag.Message -
-
- } - Html.EndForm(); -} - -{% endhighlight %} - -Step 6: Add a new action method named BlinkToPDF in HomeController.cs and include the following code example to convert HTML to PDF document using the Convert method in [HtmlToPdfConverter](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.HtmlToPdfConverter.html) class. The HTML content will be scaled based on the given [ViewPortSize](https://help.syncfusion.com/cr/fileformats/Syncfusion.HtmlConverter.BlinkConverterSettings.html#Syncfusion_HtmlConverter_BlinkConverterSettings_ViewPortSize) property of the [BlinkConverterSettings](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.BlinkConverterSettings.html) class. - -{% highlight c# tabtitle="C#" %} - -public IActionResult BlinkToPDF() -{ - //Initialize HTML to PDF converter. - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.Blink); - BlinkConverterSettings settings = new BlinkConverterSettings(); - //Set command line arguments to run without the sandbox. - settings.CommandLineArguments.Add("--no-sandbox"); - settings.CommandLineArguments.Add("--disable-setuid-sandbox"); - //Set Blink viewport size. - settings.ViewPortSize = new Syncfusion.Drawing.Size(1280, 0); - //Assign Blink settings to the HTML converter. - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF document. - PdfDocument document = htmlConverter.Convert("https://www.syncfusion.com"); - //Create the memory stream. - MemoryStream stream = new MemoryStream(); - //Save the document to the memory stream. - document.Save(stream); - return File(stream.ToArray(), System.Net.Mime.MediaTypeNames.Application.Pdf, "BlinkLinuxDockerAWSBeanstalk.pdf"); -} - - -{% endhighlight %} - -Step 7: Click the **Publish to AWS Elastic Beanstalk (Legacy)** option by right-clicking the project to -publish the application in the AWS Elastic Beanstalk environment. -![AWS Elastic Beanstalk Step7](htmlconversion_images/AWS_Elastic_Beanstalk5.png) - -Step 8: Select the **Create a new application environment** and click **Next** from Publish to AWS Elastic Beanstalk window. -![AWS Elastic Beanstalk Step8](htmlconversion_images/AWS_Elastic_Beanstalk6.png) - -Step 9: Please give any valid name to the environment and URL text box. Check whether the URL link is available while clicking the **Check availability** option. If the requested link is available means, -click **NEXT** in the Application Environment window. -![AWS Elastic Beanstalk Step9](htmlconversion_images/AWS_Elastic_Beanstalk7.png) - -Step 10: Select **t3a.micro** from the Instance Type text box and select **Next** in the AWS Options -Window. -![AWS Elastic Beanstalk Step10](htmlconversion_images/AWS_Elastic_Beanstalk8.png) - -Step 11: Select the Roles and **Next** option from the Permissions window. -![AWS Elastic Beanstalk Step11](htmlconversion_images/AWS_Elastic_Beanstalk9.png) - -Step 12: Click **Next** from the Application Options window. -![AWS Elastic Beanstalk Step12](htmlconversion_images/AWS_Elastic_Beanstalk10.png) - -Step 13: Click **Deploy** from the Review window. -![AWS Elastic Beanstalk Step13](htmlconversion_images/AWS_Elastic_Beanstalk11.png) - -Step 14: Click the **URL link** to launch the application once the Environment is updated successfully and -![AWS Elastic Beanstalk Step14](htmlconversion_images/AWS_Elastic_Beanstalk12.png) - -Environment status is healthy. -Step 15: Now, the webpage will open in the browser. Click the button to convert the webpage to a PDF document. -![AWS Elastic Beanstalk Step15](htmlconversion_images/AWS_Elastic_Beanstalk13.png) - -By executing the program, you will get a PDF document as follows. -![HTML to PDF output](htmlconversion_images/AWS_Elastic_Beanstalk14.png) - -A complete working sample for converting an HTML to PDF using Linux docker in AWS Elastic Beanstalk can be downloaded from [GitHub](https://github.com/SyncfusionExamples/html-to-pdf-csharp-examples/tree/master/AWS/AWSElasticBeanstalkSample). - -Click [here](https://www.syncfusion.com/document-processing/pdf-framework/net-core/html-to-pdf) to explore the rich set of Syncfusion HTML to PDF converter library features. - -An online sample link to [convert HTML to PDF document](https://ej2.syncfusion.com/aspnetcore/PDF/HtmltoPDF#/material3) in ASP.NET Core. - - - diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AWS11.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AWS11.png index 81da4e2c7..d61374002 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AWS11.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AWS11.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AWS4.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AWS4.png index 533456cbe..f8d25706c 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AWS4.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AWS4.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AWS_Elastic_Beanstalk4.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AWS_Elastic_Beanstalk4.png index 6c970a6d1..db6e010ad 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AWS_Elastic_Beanstalk4.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AWS_Elastic_Beanstalk4.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AzureDocker1.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AzureDocker1.png index ea2a201a6..5791f2601 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AzureDocker1.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AzureDocker1.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AzureFunctions3.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AzureFunctions3.png index 18942c0fd..fd4a84df5 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AzureFunctions3.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AzureFunctions3.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AzureNetCore3.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AzureNetCore3.png index 6c165bb84..84e5cca48 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AzureNetCore3.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/AzureNetCore3.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/DockerStep.PNG b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/DockerStep.PNG index ca5a95dc6..ad55e5951 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/DockerStep.PNG and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/DockerStep.PNG differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/DockerStep3.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/DockerStep3.png index ea2a201a6..945ff6a39 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/DockerStep3.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/DockerStep3.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/WPF_Step3.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/WPF_Step3.png index 4c674e022..f6f4fdc6d 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/WPF_Step3.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/WPF_Step3.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/Windows_Forms_step3.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/Windows_Forms_step3.png index 355149ef7..e45bcd31d 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/Windows_Forms_step3.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/Windows_Forms_step3.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/aspnetcore4.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/aspnetcore4.png index be7d48ed0..c6df0f9ff 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/aspnetcore4.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/aspnetcore4.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/aspnetmvc4.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/aspnetmvc4.png index 4f066db6b..baa6e4b9e 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/aspnetmvc4.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/aspnetmvc4.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/awslambda4.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/awslambda4.png index 54b5ec1e6..cb5a41df6 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/awslambda4.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/awslambda4.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/blazor_step_nuget.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/blazor_step_nuget.png index ce112475f..23188d223 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/blazor_step_nuget.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/blazor_step_nuget.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/createconsolesample3.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/createconsolesample3.png index a8af5bdea..f81c08df8 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/createconsolesample3.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/createconsolesample3.png differ diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/mac_step4.png b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/mac_step4.png index 845a037a4..d34b06cd3 100644 Binary files a/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/mac_step4.png and b/File-Formats/PDF/Convert-HTML-To-PDF/htmlconversion_images/mac_step4.png differ diff --git a/File-Formats/PDF/Create-PDF-file-in-MaUI.md b/File-Formats/PDF/Create-PDF-file-in-MaUI.md index 6ac1777f4..121456f7f 100644 --- a/File-Formats/PDF/Create-PDF-file-in-MaUI.md +++ b/File-Formats/PDF/Create-PDF-file-in-MaUI.md @@ -439,4 +439,4 @@ Download the helper files from this [link](https://www.syncfusion.com/downloads/ Click [here](https://www.syncfusion.com/document-processing/pdf-framework/maui) to explore the rich set of Syncfusion PDF library features. -An online sample link to [create PDF document](https://ej2.syncfusion.com/aspnetcore/PDF/HelloWorld#/material3) in ASP.NET Core. \ No newline at end of file +An online sample link to [create PDF document](https://ej2.syncfusion.com/aspnetcore/PDF/HelloWorld#/bootstrap5) in ASP.NET Core. \ No newline at end of file diff --git a/File-Formats/PDF/GettingStarted_images/AWS_Package.png b/File-Formats/PDF/GettingStarted_images/AWS_Package.png index 2fdbe6135..2a0235084 100644 Binary files a/File-Formats/PDF/GettingStarted_images/AWS_Package.png and b/File-Formats/PDF/GettingStarted_images/AWS_Package.png differ diff --git a/File-Formats/PDF/Loading-and-saving-document/AWS_Images/AWS_Package.png b/File-Formats/PDF/Loading-and-saving-document/AWS_Images/AWS_Package.png index 2fdbe6135..c44ddc34b 100644 Binary files a/File-Formats/PDF/Loading-and-saving-document/AWS_Images/AWS_Package.png and b/File-Formats/PDF/Loading-and-saving-document/AWS_Images/AWS_Package.png differ diff --git a/File-Formats/PDF/OCR_images/install_NuGet_framework.png b/File-Formats/PDF/OCR_images/install_NuGet_framework.png index c1183a454..f11eb2cab 100644 Binary files a/File-Formats/PDF/OCR_images/install_NuGet_framework.png and b/File-Formats/PDF/OCR_images/install_NuGet_framework.png differ diff --git a/File-Formats/PDF/OCR_images/install_core_NuGet.png b/File-Formats/PDF/OCR_images/install_core_NuGet.png index 74951d274..d550a964b 100644 Binary files a/File-Formats/PDF/OCR_images/install_core_NuGet.png and b/File-Formats/PDF/OCR_images/install_core_NuGet.png differ diff --git a/File-Formats/PDF/Open-pdf-files/From-AWS-S3.md b/File-Formats/PDF/Open-pdf-files/From-AWS-S3.md new file mode 100644 index 000000000..ff5304428 --- /dev/null +++ b/File-Formats/PDF/Open-pdf-files/From-AWS-S3.md @@ -0,0 +1,67 @@ +--- +title: Open PDF file from AWS S3 | Syncfusion +description: This page describes how to Open PDF file from file AWS S3 in C# using Syncfusion .NET PDF library. +platform: file-formats +control: PDF +documentation: UG +--- +# Open PDF file from AWS S3 + +To load a PDF file from AWS S3, you can follow the steps below + + +Step 1: Create a simple console application + +![Project configuration window](Open-PDF-Images/Console-Application.png) + +Step 3: Install the [AWSSDK.S3](https://www.nuget.org/packages/AWSSDK.S3) NuGet package as a reference to your project from the [NuGet.org](https://www.nuget.org/). + +![NuGet package installation](Open-PDF-Images/AWSSDK.S3-nuget.png) + + +Step 4: Include the following namespaces in the Program.cs file. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + using Amazon; + using Amazon.S3; + using Amazon.S3.Transfer; + +{% endhighlight %} + +{% endtabs %} + + +Step 5: Add the below code example to load a PDF from AWS S3. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + // Set your AWS credentials and region + string accessKey = "YOUR_ACCESS_KEY"; + string secretKey = "YOUR_SECRET_KEY"; + RegionEndpoint region = RegionEndpoint.YOUR_REGION; // Change to your desired region + + // Specify the bucket name and object key + string bucketName = "YOUR_BUCKET_NAME"; + string objectKey = "YOUR_OBJECT_KEY"; + + string localFilePath = "Output.pdf"; + // Download the PDF from S3 + //MemoryStream pdfStream = DownloadFromS3(accessKey, secretKey, region, bucketName, objectKey); + using (var s3Client = new AmazonS3Client(accessKey, secretKey, region)) + { + using (var transferUtility = new TransferUtility(s3Client)) + { + transferUtility.Download(localFilePath, bucketName, objectKey); + } + } + +{% endhighlight %} + +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Open-PDF-file/To%20AWS%20S3). diff --git a/File-Formats/PDF/Open-pdf-files/From-azure-blob-storage.md b/File-Formats/PDF/Open-pdf-files/From-azure-blob-storage.md new file mode 100644 index 000000000..70f802c2d --- /dev/null +++ b/File-Formats/PDF/Open-pdf-files/From-azure-blob-storage.md @@ -0,0 +1,65 @@ +--- +title: Open PDF file from Azure blob storage | Syncfusion +description: This page describes how to Open PDF file from file azure blob storage in C# using Syncfusion .NET PDF library. +platform: file-formats +control: PDF +documentation: UG +--- +# Open PDF file from Azure Blob storage + +To load a PDF file from Azure blob storage, you can follow the steps below + + +Step 1: Create a simple console application + +![Project configuration window](Open-PDF-Images/Console-Application.png) + +Step 3: Install the [Microsoft.Azure.Storage.Blob](https://www.nuget.org/packages/Microsoft.Azure.Storage.Blob) NuGet package as a reference to your project from the [NuGet.org](https://www.nuget.org/). + +![NuGet package installation](Open-PDF-Images/Microsoft.Azure.Storage.Blob-nuget.png) + + +Step 4: Include the following namespaces in the Program.cs file. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + using Microsoft.Azure.Storage; + using Microsoft.Azure.Storage.Blob; + +{% endhighlight %} + +{% endtabs %} + + +Step 5: Add the below code example to load a PDF from Azure blob storage. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + // Parse the connection string to your Azure Storage Account. + CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connectionString); + + // Create a client to interact with Blob storage. + CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); + + // Get a reference to the container name. + CloudBlobContainer container = blobClient.GetContainerReference(containerName); + + // Get a reference to the block blob name. + CloudBlockBlob blockBlob = container.GetBlockBlobReference(blobName); + + // Open a file stream to save the downloaded blob content. + using (var fileStream = File.OpenWrite("sample.pdf")) + { + // Download the blob's content to the file stream. + blockBlob.DownloadToStream(fileStream); + } + +{% endhighlight %} + +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Open-PDF-file/To%20Azure%20Blob%20Storage). diff --git a/File-Formats/PDF/Open-pdf-files/From-dropbox-cloud-file-storage.md b/File-Formats/PDF/Open-pdf-files/From-dropbox-cloud-file-storage.md new file mode 100644 index 000000000..2f0827b64 --- /dev/null +++ b/File-Formats/PDF/Open-pdf-files/From-dropbox-cloud-file-storage.md @@ -0,0 +1,73 @@ +--- +title: Open PDF file from Dropbox cloud file storage| Syncfusion +description: This page describes how to load PDF file from Dropbox cloud file storage in C# using Syncfusion .NET PDF library. +platform: file-formats +control: PDF +documentation: UG +--- +# Opem PDF file from Dropbox cloud file storage + +To Open a PDF file from Dropbox cloud file storage, you can follow the steps below + +Step 1: Create a Dropbox API + + +To create a Dropbox API App, you should follow the official documentation provided by Dropbox [link](https://www.dropbox.com/developers/documentation/dotnet#tutorial). The process involves visiting the Dropbox Developer website and using their App Console to set up your API app. This app will allow you to interact with Dropbox programmatically, enabling secure access to files and data. + + + +Step 2: Create a simple console application +![Project configuration window](Save-PDF-Images/Console-Application.png) + +Step 3: Install the and [Dropbox.Api](https://www.nuget.org/packages/Dropbox.Api) NuGet package as a reference to your project from the [NuGet.org](https://www.nuget.org/). + +![NuGet package installation](Open-PDF-Images/Dropbox.Api-nuget.png) + +Step 4: Include the following namespaces in the Program.cs file. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + using Dropbox.Api; + +{% endhighlight %} + +{% endtabs %} + + +Step 5: Add the below code example to load a PDF ifrom Dropbox cloud file storage. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + // Define the access token for authentication with the Dropbox API + var accessToken = "YOUR_ACCESS_TOKEN";// Replace with your actual access token + + // Define the file path in Dropbox where the PDF file is located + var filePathInDropbox = "/path/to/save/Sample.pdf"; // Replace with the actual file path in Dropbox + // Create a new DropboxClient instance using the provided access token + using (var dbx = new DropboxClient(accessToken)) + { + // Start a download request for the specified file in Dropbox + using (var response = await dbx.Files.DownloadAsync(filePathInDropbox)) + { + // Get the content of the downloaded file as a stream + var content = await response.GetContentAsStreamAsync(); + // Create a new file stream to save the downloaded content locally + using (var fileStream = File.Create("Output.pdf")) + { + // Copy the content stream to the file stream + content.CopyTo(fileStream); + // Close the file stream once the content is copied + fileStream.Close(); + } + } + } + +{% endhighlight %} + +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Open-PDF-file/To%20Dropbox%20Cloud%20Storage). diff --git a/File-Formats/PDF/Open-pdf-files/From-google-cloud-storage.md b/File-Formats/PDF/Open-pdf-files/From-google-cloud-storage.md new file mode 100644 index 000000000..dcd539379 --- /dev/null +++ b/File-Formats/PDF/Open-pdf-files/From-google-cloud-storage.md @@ -0,0 +1,64 @@ +--- +title: Load PDF file from Google cloud storage | Syncfusion +description: This page describes how to Load PDF file from google cloud storage in C# using Syncfusion .NET PDF library. +platform: file-formats +control: PDF +documentation: UG +--- +# Open PDF file from Google Cloud storage + +To Open a PDF file from Google cloud storage, you can follow the steps below + + +Step 1: Create a simple console application + +![Project configuration window](Open-PDF-Images/Console-Application.png) + +Step 3: Install the [Google.Cloud.Storage.V1](https://www.nuget.org/packages/Google.Cloud.Storage.V1) NuGet package as a reference to your project from the [NuGet.org](https://www.nuget.org/). + +![NuGet package installation](Open-PDF-Images/Google.Cloud.Storage.V1-nuget.png) + + +Step 4: Include the following namespaces in the Program.cs file. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + using Google.Cloud.Storage.V1; + using Google.Apis.Auth.OAuth2; + +{% endhighlight %} + +{% endtabs %} + + +Step 5: Add the below code example to create a simple PDF and save in Google cloud storage. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + // Create a byte array + byte[] pdfBytes; + // Load the credentials file + GoogleCredential credential = GoogleCredential.FromFile("credentials.json"); + // Create a storage client + StorageClient storage = StorageClient.Create(credential); + // Download the PDF from Google Cloud Storage + using (MemoryStream stream = new MemoryStream()) + { + storage.DownloadObject("bucket50247", "Sample.pdf", stream); + pdfBytes = stream.ToArray(); + } + + string filePath = "Sample.pdf"; + + // Write the byte array to a PDF file + File.WriteAllBytes(filePath, pdfBytes); + +{% endhighlight %} + +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Open-PDF-file/To%20Google%20Cloud%20Storage). diff --git a/File-Formats/PDF/Open-pdf-files/From-google-drive.md b/File-Formats/PDF/Open-pdf-files/From-google-drive.md new file mode 100644 index 000000000..90ae2e74e --- /dev/null +++ b/File-Formats/PDF/Open-pdf-files/From-google-drive.md @@ -0,0 +1,95 @@ +--- +title: Open PDF file from Google Drive | Syncfusion +description: This page describes how to Open PDF file from file google drive in C# using Syncfusion .NET PDF library. +platform: file-formats +control: PDF +documentation: UG +--- +# Open PDF file from Google Drive + +To Open a PDF file from Google Drive, you can follow the steps below + +Step 1: Set up Google Drive API + +You must set up a project in the Google Developers Console and enable the Google Drive API. Obtain the necessary credentials to access the API. For more information, view the official [link](https://developers.google.com/drive/api/guides/enable-sdk). + +Step 2: Create a simple console application + +![Project configuration window](Open-PDF-Images/Console-Application.png) + +Step 3: Install the [Google.Apis.Drive.v3](https://www.nuget.org/packages/Google.Apis.Drive.v3) NuGet packages as a reference to your project from the [NuGet.org](https://www.nuget.org/). + +![NuGet package installation](open-PDF-Images/Google.Apis.Drive.V3-nuget.png) + + +Step 4: Include the following namespaces in the Program.cs file. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + using Google.Apis.Auth.OAuth2; + using Google.Apis.Drive.v3; + using Google.Apis.Services; + using Google.Apis.Util.Store; + +{% endhighlight %} + +{% endtabs %} + + +Step 5: Add the below code example to open a PDF from google drive. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + UserCredential credential; + string[] Scopes = { DriveService.Scope.DriveReadonly }; + string ApplicationName = "YourAppName"; + + using (var stream1 = new FileStream("credentials.json", FileMode.Open, FileAccess.Read)) + { + string credPath = "token.json"; + credential = GoogleWebAuthorizationBroker.AuthorizeAsync( + GoogleClientSecrets.Load(stream1).Secrets, + Scopes, + "user", + CancellationToken.None, + new FileDataStore(credPath, true)).Result; + } + + // Step 2: Create Drive API service + var service = new DriveService(new BaseClientService.Initializer() + { + HttpClientInitializer = credential, + ApplicationName = ApplicationName, + }); + + // Step 3: Specify the file ID of the PDF you want to open + string fileId = "YOUR_FILE_ID"; // Replace with the actual file ID YOUR_FILE_ID + + // Step 4: Download the PDF file from Google Drive + var request = service.Files.Get(fileId); + var stream = new MemoryStream(); + request.Download(stream); + + // Step 5: Open the PDF with Syncfusion + //PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream); + + // Use the loadedDocument for further processing (e.g., extracting text or images) + + // Remember to dispose of the loadedDocument when you're done + //loadedDocument.Close(true); + + // Step 5: Save the PDF locally + using (FileStream fileStream = new FileStream("output.pdf", FileMode.Create, FileAccess.Write)) + { + stream.WriteTo(fileStream); + } + +{% endhighlight %} + +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Open-PDF-file/To%20Google%20Drive). diff --git a/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/AWSSDK.S3-nuget.png b/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/AWSSDK.S3-nuget.png new file mode 100644 index 000000000..b962c37e1 Binary files /dev/null and b/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/AWSSDK.S3-nuget.png differ diff --git a/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Console-Application.png b/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Console-Application.png new file mode 100644 index 000000000..942ff69f6 Binary files /dev/null and b/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Console-Application.png differ diff --git a/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Dropbox.Api-nuget.png b/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Dropbox.Api-nuget.png new file mode 100644 index 000000000..8721fd403 Binary files /dev/null and b/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Dropbox.Api-nuget.png differ diff --git a/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Google.Apis.Drive.V3-nuget.png b/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Google.Apis.Drive.V3-nuget.png new file mode 100644 index 000000000..8e3ea7b3c Binary files /dev/null and b/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Google.Apis.Drive.V3-nuget.png differ diff --git a/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Google.Cloud.Storage.V1-nuget.png b/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Google.Cloud.Storage.V1-nuget.png new file mode 100644 index 000000000..ba4161c46 Binary files /dev/null and b/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Google.Cloud.Storage.V1-nuget.png differ diff --git a/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Microsoft.Azure.Storage.Blob-nuget.png b/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Microsoft.Azure.Storage.Blob-nuget.png new file mode 100644 index 000000000..127381ab3 Binary files /dev/null and b/File-Formats/PDF/Open-pdf-files/Open-PDF-Images/Microsoft.Azure.Storage.Blob-nuget.png differ diff --git a/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/AWSSDK.S3-nuget.png b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/AWSSDK.S3-nuget.png new file mode 100644 index 000000000..b962c37e1 Binary files /dev/null and b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/AWSSDK.S3-nuget.png differ diff --git a/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Console-Application.png b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Console-Application.png new file mode 100644 index 000000000..942ff69f6 Binary files /dev/null and b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Console-Application.png differ diff --git a/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Dropbox.Api-nuget.png b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Dropbox.Api-nuget.png new file mode 100644 index 000000000..8721fd403 Binary files /dev/null and b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Dropbox.Api-nuget.png differ diff --git a/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Google.Apis.Drive.V3-nuget.png b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Google.Apis.Drive.V3-nuget.png new file mode 100644 index 000000000..8e3ea7b3c Binary files /dev/null and b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Google.Apis.Drive.V3-nuget.png differ diff --git a/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Google.Cloud.Storage.V1-nuget.png b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Google.Cloud.Storage.V1-nuget.png new file mode 100644 index 000000000..ba4161c46 Binary files /dev/null and b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Google.Cloud.Storage.V1-nuget.png differ diff --git a/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Microsoft.Azure.Storage.Blob-nuget.png b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Microsoft.Azure.Storage.Blob-nuget.png new file mode 100644 index 000000000..127381ab3 Binary files /dev/null and b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Microsoft.Azure.Storage.Blob-nuget.png differ diff --git a/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Syncfusion.Pdf.Net.Core-nuget.png b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Syncfusion.Pdf.Net.Core-nuget.png new file mode 100644 index 000000000..9a18eb956 Binary files /dev/null and b/File-Formats/PDF/Save-pdf-files/Save-PDF-Images/Syncfusion.Pdf.Net.Core-nuget.png differ diff --git a/File-Formats/PDF/Save-pdf-files/To-AWS-S3.md b/File-Formats/PDF/Save-pdf-files/To-AWS-S3.md new file mode 100644 index 000000000..a054921ba --- /dev/null +++ b/File-Formats/PDF/Save-pdf-files/To-AWS-S3.md @@ -0,0 +1,98 @@ +--- +title: Save PDF file to AWS S3 | Syncfusion +description: This page describes how to save PDF file to file AWS S3 in C# using Syncfusion .NET PDF library. +platform: file-formats +control: PDF +documentation: UG +--- +# Save PDF file to AWS S3 + +To save a PDF file to AWS S3, you can follow the steps below + + +Step 1: Create a simple console application + +![Project configuration window](Save-PDF-Images/Console-Application.png) + +Step 2: Install the [Syncfusion.Pdf.Net.Core ](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core) and [AWSSDK.S3](https://www.nuget.org/packages/AWSSDK.S3) NuGet packages as a reference to your project from the [NuGet.org](https://www.nuget.org/). +

+![NuGet package installation](Save-PDF-Images/Syncfusion.Pdf.Net.Core-nuget.png) +

+![NuGet package installation](Save-PDF-Images/AWSSDK.S3-nuget.png) + + +Step 3: Include the following namespaces in the Program.cs file. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + using Syncfusion.Pdf.Graphics; + using Syncfusion.Pdf; + using Amazon.S3; + using Syncfusion.Drawing; + using Amazon.S3.Transfer; + using Amazon; + +{% endhighlight %} + +{% endtabs %} + + +Step 4: Add the below code example to create a simple PDF and save in AWS S3. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + // Create a new PDF document + using (PdfDocument document = new PdfDocument()) + { + // Add a page to the document + PdfPage page = document.Pages.Add(); + + // Create a PDF graphics for the page + PdfGraphics graphics = page.Graphics; + + // Draw text on the page + graphics.DrawString("Hello, Syncfusion PDF!", new PdfStandardFont(PdfFontFamily.Helvetica, 12), PdfBrushes.Black, new PointF(10, 10)); + + // Save the PDF to a stream + MemoryStream stream = new MemoryStream(); + document.Save(stream); + + // Save the stream to a file (optional) + File.WriteAllBytes("HelloWorld.pdf", stream.ToArray()); + + // Upload the PDF to AWS S3 (see next step) + + // Set your AWS credentials and region + string accessKey = "YOUR_ACCESS_KEY"; + string secretKey = "YOUR_SECRET_KEY"; + RegionEndpoint region = RegionEndpoint.YOUR_REGION; // Change to your desired region + + // Create an Amazon S3 client + using (var s3Client = new AmazonS3Client(accessKey, secretKey, region)) + { + // Specify the bucket name and object key + string bucketName = "your_bucket_name"; + string objectKey = "HelloWorld.pdf"; + + // Upload the PDF to S3 + using (var transferUtility = new TransferUtility(s3Client)) + { + transferUtility.Upload(stream, bucketName, objectKey); + } + } +} + + + + + + +{% endhighlight %} + +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Save-PDF-file/To%20AWS%20S3). diff --git a/File-Formats/PDF/Save-pdf-files/To-azure-blob-storage.md b/File-Formats/PDF/Save-pdf-files/To-azure-blob-storage.md new file mode 100644 index 000000000..c3885ef30 --- /dev/null +++ b/File-Formats/PDF/Save-pdf-files/To-azure-blob-storage.md @@ -0,0 +1,85 @@ +--- +title: Save PDF file to Azure blob storage | Syncfusion +description: This page describes how to save PDF file to file azure blob storage in C# using Syncfusion .NET PDF library. +platform: file-formats +control: PDF +documentation: UG +--- +# Save PDF file to Azure Blob storage + +To save a PDF file to Azure blob storage, you can follow the steps below + + +Step 1: Create a simple console application + +![Project configuration window](Save-PDF-Images/Console-Application.png) + +Step 3: Install the [Syncfusion.Pdf.Net.Core ](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core) and [Microsoft.Azure.Storage.Blob](https://www.nuget.org/packages/Microsoft.Azure.Storage.Blob) NuGet packages as a reference to your project from the [NuGet.org](https://www.nuget.org/). +![NuGet package installation](Save-PDF-Images/Syncfusion.Pdf.Net.Core-nuget.png) +

+![NuGet package installation](Save-PDF-Images/Microsoft.Azure.Storage.Blob-nuget.png) + + +Step 4: Include the following namespaces in the Program.cs file. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + using Syncfusion.Pdf; + using Syncfusion.Pdf.Graphics; + using Syncfusion.Drawing; + using Microsoft.Azure.Storage; + using Microsoft.Azure.Storage.Blob; + +{% endhighlight %} + +{% endtabs %} + + +Step 5: Add the below code example to create a simple PDF and save in Azure blob storage. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + // Create a new PDF document + using (PdfDocument doc = new PdfDocument()) + { + // Add a page to the document. + PdfPage page = doc.Pages.Add(); + // Get the graphics object for drawing on the page. + PdfGraphics graphics = page.Graphics; + // Create a font to use for drawing text + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); + // Draw the text. + graphics.DrawString("Hello, World!", font, PdfBrushes.Black, new PointF(10, 10)); + // Create a memory stream to save the PDF document. + MemoryStream stream = new MemoryStream(); + doc.Save(stream); + // Write the contents of the memory stream to a file named "sample.pdf". + File.WriteAllBytes("sample.pdf", stream.ToArray()); + // Close the document + doc.Close(true); + } + // Parse the connection string for the Azure Storage Account. + CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connectionString); + // Create a client for accessing Blob storage. + CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); + // Get a reference to the container name. + CloudBlobContainer container = blobClient.GetContainerReference(containerName); + container.CreateIfNotExists(); + // Get a reference to the block blob name. + CloudBlockBlob blockBlob = container.GetBlockBlobReference(blobName); + // Open the local file "sample.pdf" for reading + using (var fileStream = File.OpenRead("sample.pdf")) + { + // Upload the contents of the local file to the Azure Blob Storage + blockBlob.UploadFromStream(fileStream); + } + +{% endhighlight %} + +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Save-PDF-file/To%20Azure%20Blob%20Storage). diff --git a/File-Formats/PDF/Save-pdf-files/To-dropbox-cloud-file-storage.md b/File-Formats/PDF/Save-pdf-files/To-dropbox-cloud-file-storage.md new file mode 100644 index 000000000..849c967ac --- /dev/null +++ b/File-Formats/PDF/Save-pdf-files/To-dropbox-cloud-file-storage.md @@ -0,0 +1,80 @@ +--- +title: Save PDF file to Dropbox cloud file storage| Syncfusion +description: This page describes how to save PDF file to Dropbox cloud file storage in C# using Syncfusion .NET PDF library. +platform: file-formats +control: PDF +documentation: UG +--- +# Save PDF file to Dropbox cloud file storage + +To save a PDF file to Dropbox cloud file storage, you can follow the steps below + +Step 1: Create a Dropbox API + + +To create a Dropbox API App, you should follow the official documentation provided by Dropbox [link](https://www.dropbox.com/developers/documentation/dotnet#tutorial). The process involves visiting the Dropbox Developer website and using their App Console to set up your API app. This app will allow you to interact with Dropbox programmatically, enabling secure access to files and data. + + + +Step 2: Create a simple console application +![Project configuration window](Save-PDF-Images/Console-Application.png) + +Step 3: Install the [Syncfusion.Pdf.Net.Core ](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core) and [Dropbox.Api](https://www.nuget.org/packages/Dropbox.Api) NuGet packages as a reference to your project from the [NuGet.org](https://www.nuget.org/). + +![NuGet package installation](Save-PDF-Images/Syncfusion.Pdf.Net.Core-nuget.png)

+![NuGet package installation](Save-PDF-Images/Dropbox.Api-nuget.png) + +Step 4: Include the following namespaces in the Program.cs file. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + using Syncfusion.Pdf.Graphics; + using Syncfusion.Pdf; + using Dropbox.Api; + using Dropbox.Api.Files; + using Syncfusion.Drawing; + +{% endhighlight %} + +{% endtabs %} + + +Step 5: Add the below code example to create a simple PDF and save in Dropbox cloud file storage. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + // Create a new PDF document. + PdfDocument doc = new PdfDocument(); + // Add a new page to the document. + PdfPage page = doc.Pages.Add(); + // Get the graphics object for the page to draw on. + PdfGraphics graphics = page.Graphics; + // Create a font for drawing text. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); + // Draw the text + graphics.DrawString("Hello, World!", font, PdfBrushes.Black, new PointF(10, 10)); + // Save the PDF to a memory stream. + MemoryStream stream = new MemoryStream(); + doc.Save(stream); + // Close the PDF document. + doc.Close(true); + var accessToken = "YOUR_ACCESS_TOKEN";// Replace with your actual access token + // Initialize a DropboxClient with the provided access token. + using (var dbx = new DropboxClient(accessToken)) + { + // Upload the PDF to Dropbox. + var uploadResult = await dbx.Files.UploadAsync( + "/path/to/save/Sample.pdf", + WriteMode.Overwrite.Instance, + body: new MemoryStream(stream.ToArray())); + } + +{% endhighlight %} + +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Save-PDF-file/To%20Dropbox%20Cloud%20Storage). diff --git a/File-Formats/PDF/Save-pdf-files/To-google-cloud-storage.md b/File-Formats/PDF/Save-pdf-files/To-google-cloud-storage.md new file mode 100644 index 000000000..488a83f32 --- /dev/null +++ b/File-Formats/PDF/Save-pdf-files/To-google-cloud-storage.md @@ -0,0 +1,78 @@ +--- +title: Save PDF file to Google cloud storage | Syncfusion +description: This page describes how to save PDF file to file google cloud storage in C# using Syncfusion .NET PDF library. +platform: file-formats +control: PDF +documentation: UG +--- +# Save PDF file to Google Cloud storage + +To save a PDF file to Google cloud storage, you can follow the steps below + + +Step 1: Create a simple console application + +![Project configuration window](Save-PDF-Images/Console-Application.png) + +Step 3: Install the [Syncfusion.Pdf.Net.Core ](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core) and [Google.Cloud.Storage.V1](https://www.nuget.org/packages/Google.Cloud.Storage.V1) NuGet packages as a reference to your project from the [NuGet.org](https://www.nuget.org/). +![NuGet package installation](Save-PDF-Images/Syncfusion.Pdf.Net.Core-nuget.png) +

+![NuGet package installation](Save-PDF-Images/Google.Cloud.Storage.V1-nuget.png) + + +Step 4: Include the following namespaces in the Program.cs file. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + using Syncfusion.Pdf; + using Google.Cloud.Storage.V1; + using Syncfusion.Pdf.Graphics; + using Google.Apis.Auth.OAuth2; + using Syncfusion.Drawing; + using System.IO; + +{% endhighlight %} + +{% endtabs %} + + +Step 5: Add the below code example to create a simple PDF and save in Google cloud storage. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + // Step 1: Create a PDF document + PdfDocument document = new PdfDocument(); + + // Step 2: Add a page + PdfPage page = document.Pages.Add(); + + // Step 3: Add content to the page (e.g., text, images, etc.) + PdfGraphics graphics = page.Graphics; + graphics.DrawString("Hello, World!", new PdfStandardFont(PdfFontFamily.Helvetica, 12), PdfBrushes.Black, new PointF(10, 10)); + + // Step 4: Save the PDF to a memory stream + MemoryStream stream = new MemoryStream(); + document.Save(stream); + document.Close(true); + + // Step 5: Upload the PDF to Google Cloud Storage + // Load the credentials file + GoogleCredential credential = GoogleCredential.FromFile("credentials.json");//Replace with your actual credentials.json + + // Create a storage client + StorageClient storage = StorageClient.Create(credential); + + // Upload the PDF to the specified bucket and object name + storage.UploadObject("bucketName", "Sample.pdf", null, stream);// + + + +{% endhighlight %} + +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Save-PDF-file/To%20Google%20Cloud%20Storage). diff --git a/File-Formats/PDF/Save-pdf-files/To-google-drive.md b/File-Formats/PDF/Save-pdf-files/To-google-drive.md new file mode 100644 index 000000000..6d3560d0f --- /dev/null +++ b/File-Formats/PDF/Save-pdf-files/To-google-drive.md @@ -0,0 +1,112 @@ +--- +title: Save PDF file to Google Drive | Syncfusion +description: This page describes how to save PDF file to file google drive in C# using Syncfusion .NET PDF library. +platform: file-formats +control: PDF +documentation: UG +--- +# Save PDF file to Google Drive + +To save a PDF file to Google Drive, you can follow the steps below + +Step 1: Set up Google Drive API + +You must set up a project in the Google Developers Console and enable the Google Drive API. Obtain the necessary credentials to access the API. For more information, view the official [link](https://developers.google.com/drive/api/guides/enable-sdk). + +Step 2: Create a simple console application + +![Project configuration window](Save-PDF-Images/Console-Application.png) + +Step 3: Install the [Syncfusion.Pdf.Net.Core ](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core) and [Google.Apis.Drive.v3](https://www.nuget.org/packages/Google.Apis.Drive.v3) NuGet packages as a reference to your project from the [NuGet.org](https://www.nuget.org/). +![NuGet package installation](Save-PDF-Images/Syncfusion.Pdf.Net.Core-nuget.png) +

+![NuGet package installation](Save-PDF-Images/Google.Apis.Drive.V3-nuget.png) + + +Step 4: Include the following namespaces in the Program.cs file. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + using Syncfusion.Pdf; + using Syncfusion.Pdf.Graphics; + using Google.Apis.Auth.OAuth2; + using Google.Apis.Drive.v3; + using Google.Apis.Services; + using Google.Apis.Util.Store; + using File = Google.Apis.Drive.v3.Data.File; + using Syncfusion.Drawing; + +{% endhighlight %} + +{% endtabs %} + + +Step 5: Add the below code example to create a simple PDF and save in google drive. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" %} + + // Create a new PDF document + PdfDocument document = new PdfDocument(); + // Add a new page to the document + PdfPage page = document.Pages.Add(); + // Get graphics object for the page + PdfGraphics graphics = page.Graphics; + // Draw text on the page + graphics.DrawString("Hello, World!", new PdfStandardFont(PdfFontFamily.Helvetica, 12), PdfBrushes.Black, new PointF(10, 10)); + // Create a memory stream to save the PDF document + MemoryStream stream = new MemoryStream(); + // Save the document to the memory stream + document.Save(stream); + // Close the document + document.Close(true); + + // Load Google Drive API credentials from a file + UserCredential credential; + string[] Scopes = { DriveService.Scope.Drive }; + string ApplicationName = "YourAppName"; + + using (var stream1 = new FileStream("credentials.json", FileMode.Open, FileAccess.Read))//Replace with your actual credentials.json + { + string credPath = "token.json"; + // Authorize the Google Drive API access + credential = GoogleWebAuthorizationBroker.AuthorizeAsync( + GoogleClientSecrets.Load(stream1).Secrets, + Scopes, + "user", + CancellationToken.None, + new FileDataStore(credPath, true)).Result; + } + // Create a new instance of Google Drive service + var service = new DriveService(new BaseClientService.Initializer() + { + HttpClientInitializer = credential, + ApplicationName = ApplicationName, + }); + + + // Create metadata for the file to be uploaded + var fileMetadata = new File() + { + Name = "Sample1.pdf", // Name of the file in Google Drive + MimeType = "application/pdf", + }; + FilesResource.CreateMediaUpload request; + + // Create a memory stream from the PDF document + using (var fs = new MemoryStream(stream.ToArray())) + { + // Create an upload request for Google Drive + request = service.Files.Create(fileMetadata, fs, "application/pdf"); + // Upload the file + request.Upload(); + } + +{% endhighlight %} + +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Save-PDF-file/To%20Google%20Drive). diff --git a/File-Formats/PDF/Working-with-Document-Conversions.md b/File-Formats/PDF/Working-with-Document-Conversions.md index 50fd76efb..4d2973aa4 100644 --- a/File-Formats/PDF/Working-with-Document-Conversions.md +++ b/File-Formats/PDF/Working-with-Document-Conversions.md @@ -1227,7 +1227,8 @@ FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.R imageConverter.Load(inputStream); //Convert PDF to Image. Stream outputStream = imageConverter.Convert(0, false, false); -return File(outputStream.ToArray(), System.Net.Mime.MediaTypeNames.Image.Png, "sample.png"); +MemoryStream stream = outputStream as MemoryStream; +return File(stream.ToArray(), System.Net.Mime.MediaTypeNames.Image.Jpeg, "sample.jpeg"); {% endhighlight %} diff --git a/File-Formats/PDF/Working-with-OCR/AWS-Textract.md b/File-Formats/PDF/Working-with-OCR/AWS-Textract.md index 7554046ce..249f53ffd 100644 --- a/File-Formats/PDF/Working-with-OCR/AWS-Textract.md +++ b/File-Formats/PDF/Working-with-OCR/AWS-Textract.md @@ -91,7 +91,7 @@ class AWSExternalOcrEngine : IOcrEngine stream.Position = 0; MemoryStream memoryStream = new MemoryStream(); stream.CopyTo(memoryStream); - PdfBitmap bitmap = new PdfBitmap(memoryStream); + PdfTiffImage bitmap = new PdfTiffImage(memoryStream); imageHeight = bitmap.Height; imageWidth = bitmap.Width; diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/AzureFunctions4.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/AzureFunctions4.png index 67f64c066..c3ae4b8e3 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/AzureFunctions4.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/AzureFunctions4.png differ diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-Azure-step3.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-Azure-step3.png index a8c2aa27d..3da0d0717 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-Azure-step3.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-Azure-step3.png differ diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-Azure-step4.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-Azure-step4.png index 1e43ea462..96e8c460f 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-Azure-step4.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-Azure-step4.png differ diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-creation-step3.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-creation-step3.png index a8c2aa27d..9a43ea638 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-creation-step3.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-creation-step3.png differ diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-creation-step4.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-creation-step4.png index 0a1bb2fe6..b46d35f4b 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-creation-step4.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/NET-sample-creation-step4.png differ diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-Core-NuGet-package.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-Core-NuGet-package.png index 0b8f5b0e2..6b036fbde 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-Core-NuGet-package.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-Core-NuGet-package.png differ diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-Docker-NuGet-package.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-Docker-NuGet-package.png index 137bac67b..ec25e3ba5 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-Docker-NuGet-package.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-Docker-NuGet-package.png differ diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-MVC-NuGet-package.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-MVC-NuGet-package.png index 4707cad3b..58df3ac37 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-MVC-NuGet-package.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-MVC-NuGet-package.png differ diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-NET-step3.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-NET-step3.png index 92bc3f0d5..cdf2b787b 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-NET-step3.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-NET-step3.png differ diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-WF-NuGet-package.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-WF-NuGet-package.png index 233cc44a0..ea3379138 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-WF-NuGet-package.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-WF-NuGet-package.png differ diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-WPF-NuGet-package.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-WPF-NuGet-package.png index 7e3156b10..bba65431f 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-WPF-NuGet-package.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/OCR-WPF-NuGet-package.png differ diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/azure_NuGet_package.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/azure_NuGet_package.png index 8d0e77c7a..f8595f950 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/azure_NuGet_package.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/azure_NuGet_package.png differ diff --git a/File-Formats/PDF/Working-with-OCR/OCR-Images/blazor_nuget_package.png b/File-Formats/PDF/Working-with-OCR/OCR-Images/blazor_nuget_package.png index f3d4d2acf..ea12abe41 100644 Binary files a/File-Formats/PDF/Working-with-OCR/OCR-Images/blazor_nuget_package.png and b/File-Formats/PDF/Working-with-OCR/OCR-Images/blazor_nuget_package.png differ diff --git a/File-Formats/PDF/Working-with-Watermarks.md b/File-Formats/PDF/Working-with-Watermarks.md index cf0cb8701..7d2717768 100644 --- a/File-Formats/PDF/Working-with-Watermarks.md +++ b/File-Formats/PDF/Working-with-Watermarks.md @@ -9,6 +9,9 @@ documentation: UG The Essential PDF provides support to add watermark or stamp with text and images in the PDF document. +To quickly get started, add Watermarks and Bookmarks to a PDF document in .NET using the PDF Library. Please, check this video: +{% youtube " https://www.youtube.com/watch?v=C6nYz8fn0To" %} + ## Adding text watermark in PDF document The below code illustrates how to draw the text watermark in new PDF document using [DrawString](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_DrawString_System_String_Syncfusion_Pdf_Graphics_PdfFont_Syncfusion_Pdf_Graphics_PdfPen_Syncfusion_Pdf_Graphics_PdfBrush_System_Drawing_PointF_) method of [PdfGraphics](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Graphics.PdfGraphics.html) class. The transparency can be applied to the text or images using [SetTransparency](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_SetTransparency_System_Single_) method and rotation can be applied using [RotateTransform](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_RotateTransform_System_Single_) method. diff --git a/File-Formats/PDF/installation/linux-installer/how-to-download.md b/File-Formats/PDF/installation/linux-installer/how-to-download.md index 9f1210f11..7895db7ff 100644 --- a/File-Formats/PDF/installation/linux-installer/how-to-download.md +++ b/File-Formats/PDF/installation/linux-installer/how-to-download.md @@ -1,12 +1,14 @@ --- layout: post -title: Downloading Syncfusion Essential Studio Linux installer - Syncfusion -description: Learn here about the how to download Syncfusion Essential Studio Linux installer from our syncfusion website with license. -platform: common +title: Downloading Syncfusion PDF linux installer - Syncfusion +description: Learn here about how to download the Syncfusion PDF linux installer from our Syncfusion website with license. +platform: file-formats +control: Installation and Deployment documentation: ug ---- -# Download Syncfusion Essential Studio Linux Installer +--- + +# Download Syncfusion PDF Linux Installer The Syncfusion installer can be downloaded from the [Syncfusion](https://www.syncfusion.com/) website. You can either download the licensed installer or try our trial installer depending on your license. @@ -28,17 +30,17 @@ Our 30-day trial can be downloaded in two ways. 1. You can evaluate our 30-day free trial by visiting the [Download Free Trial](https://www.syncfusion.com/downloads) page and select the product 2. After completing the required form or logging in with your registered Syncfusion account, you can download the trial installer from the confirmation page. (as shown in below screenshot.) - ![Trial and downloads of Syncfusion Essential Studio](images/trial-confirmation.png) + ![Trial and downloads of Syncfusion PDF](images/trial-confirmation.png) 3. With a trial license, only the latest version’s trial installer can be downloaded. -4. Unlock key is not required to install the Syncfusion Essential Studio Linux trial installer. +4. Unlock key is not required to install the Syncfusion PDF Linux trial installer. 5. Before the trial expires, you can download the trial installer at any time from your registered account’s [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page (as shown in below screenshot.) - ![Trial and downloads of Syncfusion Essential Studio](images/trial-download.png) + ![Trial and downloads of Syncfusion PDF](images/trial-download.png) -6. Click the More Download Options (element 2 in the above screenshot) button to get the Essential Studio Product Offline trial installer which is available in ZIP format. +6. Click the More Download Options (element 2 in the above screenshot) button to get the PDF Product Offline trial installer which is available in ZIP format. - ![License and downloads of Syncfusion Essential Studio](images/start-trial-download-offline-installer.png) + ![License and downloads of Syncfusion PDF](images/start-trial-download-offline-installer.png) ### Start Trials if using components through [NuGet.org](https://www.nuget.org/packages?q=syncfusion) @@ -48,7 +50,7 @@ You should initiate an evaluation if you have already obtained our components th N> You can generate the license key for your active trial products from [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page. This license key will be mandatory to use our trial products in your application. To know more about License key, refer this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/overview). - ![Trial and downloads of Syncfusion Essential Studio](images/start-trial-download.png) + ![Trial and downloads of Syncfusion PDF](images/start-trial-download.png) 2. To access this page, you must sign up\log in with your Syncfusion account. 3. Begin your trial by selecting the Syncfusion product. @@ -57,7 +59,7 @@ You should initiate an evaluation if you have already obtained our components th 4. After you've started the trial, go to the [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page to get the latest version trial installer. You can generate the [unlock key](https://www.syncfusion.com/kb/8069/how-to-generate-unlock-key-for-essentials-studio-products) and [license key](https://help.syncfusion.com/common/essential-studio/licensing/how-to-generate) here at any time before the trial period expires. (as shown in below screenshot.) - ![License and downloads of Syncfusion Essential Studio](images/start-trial-download-installer.png) + ![License and downloads of Syncfusion PDF](images/start-trial-download-installer.png) 5. You can find your current active trial products on the [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page. @@ -66,13 +68,13 @@ You should initiate an evaluation if you have already obtained our components th 1. Syncfusion licensed products will be available in the [License & Downloads](https://www.syncfusion.com/account/downloads) page under your registered Syncfusion account. 2. You can view all the licenses (both active and expired) associated with your account. -3. You can download Essential Studio Linux licensed installer by going to More Downloads Options (element 3 in the screenshot below). +3. You can download PDF Linux licensed installer by going to More Downloads Options (element 3 in the screenshot below). - ![License and downloads of Syncfusion Essential Studio](images/license-download.png) + ![License and downloads of Syncfusion PDF](images/license-download.png) -4. Unlock key is not required to install the Syncfusion Essential Studio Linux trial installer. +4. Unlock key is not required to install the Syncfusion PDF Linux trial installer. 5. For Linux OS, ZIP formats is available for download. - ![License and downloads of Syncfusion Essential Studio](images/Linux_Download.PNG) + ![License and downloads of Syncfusion PDF](images/Linux_Download.PNG) -You can also refer to the [**Essential Studio Linux installer**](https://help.syncfusion.com/common/essential-studio/installation/linux-installer/how-to-install) links for step-by-step installation guidelines. +You can also refer to the [**PDF Linux installer**](https://help.syncfusion.com/common/essential-studio/installation/linux-installer/how-to-install) links for step-by-step installation guidelines. diff --git a/File-Formats/PDF/installation/linux-installer/how-to-install.md b/File-Formats/PDF/installation/linux-installer/how-to-install.md index 7cfdbd9ce..90f63bc76 100644 --- a/File-Formats/PDF/installation/linux-installer/how-to-install.md +++ b/File-Formats/PDF/installation/linux-installer/how-to-install.md @@ -1,13 +1,14 @@ --- layout: post -title: Installing Syncfusion Essential Studio Linux installer - Syncfusion -description: Learn here about how to install Syncfusion Essential Studio Linux installer after downloading from our Syncfusion website. -platform: common -control: Essential Studio +title: Installing Syncfusion PDF linux installer-Syncfusion +description: Learn here about how to install Syncfusion PDF linux installer after downloading from our Syncfusion website. +platform: file-formats +control: Installation and Deployment documentation: ug + --- -# Installing Syncfusion Essential Studio Linux installer +# Installing Syncfusion PDF Linux installer ## Overview @@ -26,9 +27,9 @@ Syncfusion provides the Linux installer for the following Essential Studio produ ## Step-by-Step Installation -The steps below show how to install Essential Studio Linux installer. +The steps below show how to install PDF Linux installer. -1. Extract the Syncfusion Essential Studio Linux installer(.zip) file. The files are extracted in your machine. +1. Extract the Syncfusion PDF Linux installer(.zip) file. The files are extracted in your machine. ![Welcome wizard](images/Linux_Installer1.png) @@ -49,7 +50,7 @@ The steps below show how to install Essential Studio Linux installer. ## License key registration in samples -After the installation, the license key is required to register the demo source that is included in the Linux installer. To learn about the steps for license registration for the ASP.NET Core - EJ2 Linux installer, please refer to this. +After the installation, the license key is required to register the demo source that is included in the Mac installer. To learn about the steps for license registration for the ASP.NET Core - EJ2 Mac installer, please refer to this. * Register the license key in the [Program.cs](https://ej2.syncfusion.com/aspnetcore/documentation/licensing/how-to-register-in-an-application#for-aspnet-core-application-using-net-60) file if you created the ASP.NET Core web application with Visual Studio 2022 and .NET 6.0. * Register the license key in Configure method of [Startup.cs](https://ej2.syncfusion.com/aspnetcore/documentation/licensing/how-to-register-in-an-application#for-aspnet-core-application-using-net-50-or-net-31) \ No newline at end of file diff --git a/File-Formats/PDF/installation/linux-installer/images/Linux_Download.PNG b/File-Formats/PDF/installation/linux-installer/images/Linux_Download.PNG index b80307bfa..2d8a6788a 100644 Binary files a/File-Formats/PDF/installation/linux-installer/images/Linux_Download.PNG and b/File-Formats/PDF/installation/linux-installer/images/Linux_Download.PNG differ diff --git a/File-Formats/Presentation/Comments.md b/File-Formats/Presentation/Comments.md index c3e454817..169554e8c 100644 --- a/File-Formats/Presentation/Comments.md +++ b/File-Formats/Presentation/Comments.md @@ -331,4 +331,6 @@ pptxDoc.Close() {% endtabs %} -You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Comments/Delete-comment-by-position). \ No newline at end of file +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Comments/Delete-comment-by-position). + +N> [Modern comments](https://support.microsoft.com/en-us/office/modern-comments-in-powerpoint-c0aa37bb-82cb-414c-872d-178946ff60ec) are not supported in .NET PowerPoint library. diff --git a/File-Formats/Presentation/FAQ.md b/File-Formats/Presentation/FAQ.md index 3b4c6db56..39a6566ac 100644 --- a/File-Formats/Presentation/FAQ.md +++ b/File-Formats/Presentation/FAQ.md @@ -48,6 +48,18 @@ Current version of the Essential Presentation library does not provide support f You can improve the quality of converted images by specifying the image resolution. Refer – [Converting PowerPoint presentation to Images](/file-formats/presentation/getting-started#converting-powerpoint-presentation-to-images) +## Why metafile (*.wmf, *.emf) and TIFF images are not preserved in PPTX to PDF/Image conversion? + +In .NET Core or .NET targeting applications, metafile (*.wmf, *.emf) and TIFF images have some limitations in PresentationRenderer. Internally, PresentationRenderer use SkiaSharp graphics library to layout the text and images in PDF/Image conversion. And SkiaSharp library doesn’t support the metafile (*.emf, *.wmf) and TIFF images, so, it doesn’t preserve the images in the mentioned applications. + +If the PowerPoint contains metafile (*.wmf or *.emf) and TIFF images, internally, Presentation doesn't preserve these during the PPTX to PDF or image conversions. + +To preserve the expected images in the PDF/Image conversion, we suggest you convert the metafile and Tiff image formats to bitmap image format (JPEG or PNG) and then perform PPTX to PDF/Image conversion. + +**Suggestion** + +You can use the [WPF](https://www.nuget.org/packages/Syncfusion.PresentationToPdfConverter.Wpf/) or [Windows Forms](https://www.nuget.org/packages/Syncfusion.PresentationToPdfConverter.WinForms/) platform NuGet packages for .NET Core 3.0 or later versions targeting applications from v17.3.0.x and use the same C# [Windows-specific](https://help.syncfusion.com/file-formats/presentation/presentation-to-pdf) code examples for it. But in Mac and Linux environment, using the [WPF](https://www.nuget.org/packages/Syncfusion.PresentationToPdfConverter.Wpf/) or [Windows Forms](https://www.nuget.org/packages/Syncfusion.PresentationToPdfConverter.WinForms/) platform NuGet packages have limitations. + ## What are the NuGet packages to be installed to perform PowerPoint Presentation to PDF conversion in Linux OS? In Linux OS, perform PowerPoint presentation to PDF conversion using the .NET Core (Targeting .netcoreapp) application. Refer to [PowerPoint presentation to PDF conversion NuGet packages](https://help.syncfusion.com/file-formats/presentation/nuget-packages-required#converting-powerpoint-presentation-into-pdf) to know about the packages required to deploy the .NET Core (Targeting .netcoreapp) applications with PowerPoint presentation to PDF conversion capabilities. diff --git a/File-Formats/Presentation/create-read-edit-powerpoint-files-in-asp-net-web-forms.md b/File-Formats/Presentation/create-read-edit-powerpoint-files-in-asp-net-web-forms.md index 9f5d90456..5d2ac8e45 100644 --- a/File-Formats/Presentation/create-read-edit-powerpoint-files-in-asp-net-web-forms.md +++ b/File-Formats/Presentation/create-read-edit-powerpoint-files-in-asp-net-web-forms.md @@ -130,7 +130,7 @@ slide.Shapes.AddPicture(pictureStream, 499.79, 238.59, 364.54, 192.16); {% endtabs %} -You can download the image used in the sample from [here](http://www.syncfusion.com/downloads/support/directtrac/general/ze/Image-1995521764.zip). +You can download the image used in the sample from [here](https://www.syncfusion.com/downloads/support/directtrac/general/ze/Image-1995521764.zip). **Add a shape:** diff --git a/File-Formats/Presentation/create-read-edit-powerpoint-files-in-uwp.md b/File-Formats/Presentation/create-read-edit-powerpoint-files-in-uwp.md index 2dbf1fa29..66b2c5a98 100644 --- a/File-Formats/Presentation/create-read-edit-powerpoint-files-in-uwp.md +++ b/File-Formats/Presentation/create-read-edit-powerpoint-files-in-uwp.md @@ -156,7 +156,7 @@ slide.Shapes.AddPicture(pictureStream, 499.79, 238.59, 364.54, 192.16); {% endtabs %} -You can download the image used in the sample from [here](http://www.syncfusion.com/downloads/support/directtrac/general/ze/Image-1995521764.zip). +You can download the image used in the sample from [here](https://www.syncfusion.com/downloads/support/directtrac/general/ze/Image-1995521764.zip). **Add a shape:** diff --git a/File-Formats/Presentation/create-read-edit-powerpoint-files-in-windows-forms.md b/File-Formats/Presentation/create-read-edit-powerpoint-files-in-windows-forms.md index 10eec9279..a48667d44 100644 --- a/File-Formats/Presentation/create-read-edit-powerpoint-files-in-windows-forms.md +++ b/File-Formats/Presentation/create-read-edit-powerpoint-files-in-windows-forms.md @@ -128,7 +128,7 @@ slide.Shapes.AddPicture(pictureStream, 499.79, 238.59, 364.54, 192.16); {% endtabs %} -You can download the image used in the sample from [here](http://www.syncfusion.com/downloads/support/directtrac/general/ze/Image-1995521764.zip). +You can download the image used in the sample from [here](https://www.syncfusion.com/downloads/support/directtrac/general/ze/Image-1995521764.zip). **Add a shape:** diff --git a/File-Formats/Presentation/create-read-edit-powerpoint-files-in-wpf.md b/File-Formats/Presentation/create-read-edit-powerpoint-files-in-wpf.md index 74806a8af..a437ed398 100644 --- a/File-Formats/Presentation/create-read-edit-powerpoint-files-in-wpf.md +++ b/File-Formats/Presentation/create-read-edit-powerpoint-files-in-wpf.md @@ -162,7 +162,7 @@ slide.Shapes.AddPicture(pictureStream, 499.79, 238.59, 364.54, 192.16); {% endtabs %} -You can download the image used in the sample from [here](http://www.syncfusion.com/downloads/support/directtrac/general/ze/Image-1995521764.zip). +You can download the image used in the sample from [here](https://www.syncfusion.com/downloads/support/directtrac/general/ze/Image-1995521764.zip). **Add a shape:** diff --git a/File-Formats/Presentation/installation/linux-installer/how-to-download.md b/File-Formats/Presentation/installation/linux-installer/how-to-download.md index 9f1210f11..f079e6feb 100644 --- a/File-Formats/Presentation/installation/linux-installer/how-to-download.md +++ b/File-Formats/Presentation/installation/linux-installer/how-to-download.md @@ -1,12 +1,14 @@ --- layout: post -title: Downloading Syncfusion Essential Studio Linux installer - Syncfusion -description: Learn here about the how to download Syncfusion Essential Studio Linux installer from our syncfusion website with license. -platform: common +title: Downloading Syncfusion PowerPoint linux installer - Syncfusion +description: Learn here about how to download the Syncfusion PowerPoint linux installer from our Syncfusion website with license. +platform: file-formats +control: Installation and Deployment documentation: ug ---- -# Download Syncfusion Essential Studio Linux Installer +--- + +# Download Syncfusion PowerPoint Linux Installer The Syncfusion installer can be downloaded from the [Syncfusion](https://www.syncfusion.com/) website. You can either download the licensed installer or try our trial installer depending on your license. @@ -28,17 +30,17 @@ Our 30-day trial can be downloaded in two ways. 1. You can evaluate our 30-day free trial by visiting the [Download Free Trial](https://www.syncfusion.com/downloads) page and select the product 2. After completing the required form or logging in with your registered Syncfusion account, you can download the trial installer from the confirmation page. (as shown in below screenshot.) - ![Trial and downloads of Syncfusion Essential Studio](images/trial-confirmation.png) + ![Trial and downloads of Syncfusion PowerPoint](images/trial-confirmation.png) 3. With a trial license, only the latest version’s trial installer can be downloaded. -4. Unlock key is not required to install the Syncfusion Essential Studio Linux trial installer. +4. Unlock key is not required to install the Syncfusion PowerPoint Linux trial installer. 5. Before the trial expires, you can download the trial installer at any time from your registered account’s [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page (as shown in below screenshot.) - ![Trial and downloads of Syncfusion Essential Studio](images/trial-download.png) + ![Trial and downloads of Syncfusion PowerPoint](images/trial-download.png) -6. Click the More Download Options (element 2 in the above screenshot) button to get the Essential Studio Product Offline trial installer which is available in ZIP format. +6. Click the More Download Options (element 2 in the above screenshot) button to get the PowerPoint Product Offline trial installer which is available in ZIP format. - ![License and downloads of Syncfusion Essential Studio](images/start-trial-download-offline-installer.png) + ![License and downloads of Syncfusion PowerPoint](images/start-trial-download-offline-installer.png) ### Start Trials if using components through [NuGet.org](https://www.nuget.org/packages?q=syncfusion) @@ -48,7 +50,7 @@ You should initiate an evaluation if you have already obtained our components th N> You can generate the license key for your active trial products from [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page. This license key will be mandatory to use our trial products in your application. To know more about License key, refer this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/overview). - ![Trial and downloads of Syncfusion Essential Studio](images/start-trial-download.png) + ![Trial and downloads of Syncfusion PowerPoint](images/start-trial-download.png) 2. To access this page, you must sign up\log in with your Syncfusion account. 3. Begin your trial by selecting the Syncfusion product. @@ -57,7 +59,7 @@ You should initiate an evaluation if you have already obtained our components th 4. After you've started the trial, go to the [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page to get the latest version trial installer. You can generate the [unlock key](https://www.syncfusion.com/kb/8069/how-to-generate-unlock-key-for-essentials-studio-products) and [license key](https://help.syncfusion.com/common/essential-studio/licensing/how-to-generate) here at any time before the trial period expires. (as shown in below screenshot.) - ![License and downloads of Syncfusion Essential Studio](images/start-trial-download-installer.png) + ![License and downloads of Syncfusion PowerPoint](images/start-trial-download-installer.png) 5. You can find your current active trial products on the [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page. @@ -66,13 +68,13 @@ You should initiate an evaluation if you have already obtained our components th 1. Syncfusion licensed products will be available in the [License & Downloads](https://www.syncfusion.com/account/downloads) page under your registered Syncfusion account. 2. You can view all the licenses (both active and expired) associated with your account. -3. You can download Essential Studio Linux licensed installer by going to More Downloads Options (element 3 in the screenshot below). +3. You can download PowerPoint Linux licensed installer by going to More Downloads Options (element 3 in the screenshot below). - ![License and downloads of Syncfusion Essential Studio](images/license-download.png) + ![License and downloads of Syncfusion PowerPoint](images/license-download.png) -4. Unlock key is not required to install the Syncfusion Essential Studio Linux trial installer. +4. Unlock key is not required to install the Syncfusion PowerPoint Linux trial installer. 5. For Linux OS, ZIP formats is available for download. - ![License and downloads of Syncfusion Essential Studio](images/Linux_Download.PNG) + ![License and downloads of Syncfusion PowerPoint](images/Linux_Download.PNG) -You can also refer to the [**Essential Studio Linux installer**](https://help.syncfusion.com/common/essential-studio/installation/linux-installer/how-to-install) links for step-by-step installation guidelines. +You can also refer to the [**PowerPoint Linux installer**](https://help.syncfusion.com/common/essential-studio/installation/linux-installer/how-to-install) links for step-by-step installation guidelines. diff --git a/File-Formats/Presentation/installation/linux-installer/how-to-install.md b/File-Formats/Presentation/installation/linux-installer/how-to-install.md index 7cfdbd9ce..827ef5ec2 100644 --- a/File-Formats/Presentation/installation/linux-installer/how-to-install.md +++ b/File-Formats/Presentation/installation/linux-installer/how-to-install.md @@ -1,13 +1,14 @@ --- layout: post -title: Installing Syncfusion Essential Studio Linux installer - Syncfusion -description: Learn here about how to install Syncfusion Essential Studio Linux installer after downloading from our Syncfusion website. -platform: common -control: Essential Studio +title: Installing Syncfusion PowerPoint linux installer-Syncfusion +description: Learn here about how to install Syncfusion PowerPoint linux installer after downloading from our Syncfusion website. +platform: file-formats +control: Installation and Deployment documentation: ug + --- -# Installing Syncfusion Essential Studio Linux installer +# Installing Syncfusion PowerPoint Linux installer ## Overview @@ -26,9 +27,9 @@ Syncfusion provides the Linux installer for the following Essential Studio produ ## Step-by-Step Installation -The steps below show how to install Essential Studio Linux installer. +The steps below show how to install PowerPoint Linux installer. -1. Extract the Syncfusion Essential Studio Linux installer(.zip) file. The files are extracted in your machine. +1. Extract the Syncfusion PowerPoint Linux installer(.zip) file. The files are extracted in your machine. ![Welcome wizard](images/Linux_Installer1.png) @@ -49,7 +50,7 @@ The steps below show how to install Essential Studio Linux installer. ## License key registration in samples -After the installation, the license key is required to register the demo source that is included in the Linux installer. To learn about the steps for license registration for the ASP.NET Core - EJ2 Linux installer, please refer to this. +After the installation, the license key is required to register the demo source that is included in the Mac installer. To learn about the steps for license registration for the ASP.NET Core - EJ2 Mac installer, please refer to this. * Register the license key in the [Program.cs](https://ej2.syncfusion.com/aspnetcore/documentation/licensing/how-to-register-in-an-application#for-aspnet-core-application-using-net-60) file if you created the ASP.NET Core web application with Visual Studio 2022 and .NET 6.0. * Register the license key in Configure method of [Startup.cs](https://ej2.syncfusion.com/aspnetcore/documentation/licensing/how-to-register-in-an-application#for-aspnet-core-application-using-net-50-or-net-31) \ No newline at end of file diff --git a/File-Formats/Presentation/installation/linux-installer/images/Linux_Download.PNG b/File-Formats/Presentation/installation/linux-installer/images/Linux_Download.PNG index b80307bfa..2d8a6788a 100644 Binary files a/File-Formats/Presentation/installation/linux-installer/images/Linux_Download.PNG and b/File-Formats/Presentation/installation/linux-installer/images/Linux_Download.PNG differ diff --git a/File-Formats/Release-Notes/v23.2.5.md b/File-Formats/Release-Notes/v23.2.5.md new file mode 100644 index 000000000..031bd82b6 --- /dev/null +++ b/File-Formats/Release-Notes/v23.2.5.md @@ -0,0 +1,37 @@ +--- +title : Essential Studio for File Formats Weekly Nuget Release Release Notes +description : Essential Studio for File Formats Weekly Nuget Release Release Notes +platform : file-formats +documentation: ug +--- + +# Essential Studio for File Formats Release Notes + +{% include release-info.html date="November 23, 2023" version="v23.2.5" %} + +## DocIO + +* [UWP Release Notes](/uwp/release-notes/v23.2.5#docio){:target="_blank"} +* [Windows Forms Release Notes](/windowsforms/release-notes/v23.2.5#docio){:target="_blank"} +* [WPF Release Notes](/wpf/release-notes/v23.2.5#docio){:target="_blank"} + + +## PDF + +* [UWP Release Notes](/uwp/release-notes/v23.2.5#pdf){:target="_blank"} +* [Windows Forms Release Notes](/windowsforms/release-notes/v23.2.5#pdf){:target="_blank"} +* [WPF Release Notes](/wpf/release-notes/v23.2.5#pdf){:target="_blank"} + + +## Presentation + +* [Windows Forms Release Notes](/windowsforms/release-notes/v23.2.5#presentation){:target="_blank"} +* [WPF Release Notes](/wpf/release-notes/v23.2.5#presentation){:target="_blank"} +* [UWP Release Notes](/uwp/release-notes/v23.2.5#presentation){:target="_blank"} + + +## XlsIO + +* [UWP Release Notes](/uwp/release-notes/v23.2.5#xlsio){:target="_blank"} +* [Windows Forms Release Notes](/windowsforms/release-notes/v23.2.5#xlsio){:target="_blank"} +* [WPF Release Notes](/wpf/release-notes/v23.2.5#xlsio){:target="_blank"} \ No newline at end of file diff --git a/File-Formats/Release-Notes/v23.2.6.md b/File-Formats/Release-Notes/v23.2.6.md new file mode 100644 index 000000000..568f83032 --- /dev/null +++ b/File-Formats/Release-Notes/v23.2.6.md @@ -0,0 +1,37 @@ +--- +title : Essential Studio for File Formats Weekly Nuget Release Release Notes +description : Essential Studio for File Formats Weekly Nuget Release Release Notes +platform : file-formats +documentation: ug +--- + +# Essential Studio for File Formats Release Notes + +{% include release-info.html date="November 28, 2023" version="v23.2.6" %} + +## DocIO + +* [UWP Release Notes](/uwp/release-notes/v23.2.6#docio){:target="_blank"} +* [Windows Forms Release Notes](/windowsforms/release-notes/v23.2.6#docio){:target="_blank"} +* [WPF Release Notes](/wpf/release-notes/v23.2.6#docio){:target="_blank"} + + +## PDF + +* [UWP Release Notes](/uwp/release-notes/v23.2.6#pdf){:target="_blank"} +* [Windows Forms Release Notes](/windowsforms/release-notes/v23.2.6#pdf){:target="_blank"} +* [WPF Release Notes](/wpf/release-notes/v23.2.6#pdf){:target="_blank"} + + +## Presentation + +* [Windows Forms Release Notes](/windowsforms/release-notes/v23.2.6#presentation){:target="_blank"} +* [WPF Release Notes](/wpf/release-notes/v23.2.6#presentation){:target="_blank"} +* [UWP Release Notes](/uwp/release-notes/v23.2.6#presentation){:target="_blank"} + + +## XlsIO + +* [UWP Release Notes](/uwp/release-notes/v23.2.6#xlsio){:target="_blank"} +* [Windows Forms Release Notes](/windowsforms/release-notes/v23.2.6#xlsio){:target="_blank"} +* [WPF Release Notes](/wpf/release-notes/v23.2.6#xlsio){:target="_blank"} \ No newline at end of file diff --git a/File-Formats/Release-Notes/v23.2.7.md b/File-Formats/Release-Notes/v23.2.7.md new file mode 100644 index 000000000..4df4ff876 --- /dev/null +++ b/File-Formats/Release-Notes/v23.2.7.md @@ -0,0 +1,37 @@ +--- +title : Essential Studio for File Formats Weekly Nuget Release Release Notes +description : Essential Studio for File Formats Weekly Nuget Release Release Notes +platform : file-formats +documentation: ug +--- + +# Essential Studio for File Formats Release Notes + +{% include release-info.html date="December 05, 2023" version="v23.2.7" %} + +## DocIO + +* [UWP Release Notes](/uwp/release-notes/v23.2.7#docio){:target="_blank"} +* [Windows Forms Release Notes](/windowsforms/release-notes/v23.2.7#docio){:target="_blank"} +* [WPF Release Notes](/wpf/release-notes/v23.2.7#docio){:target="_blank"} + + +## PDF + +* [UWP Release Notes](/uwp/release-notes/v23.2.7#pdf){:target="_blank"} +* [Windows Forms Release Notes](/windowsforms/release-notes/v23.2.7#pdf){:target="_blank"} +* [WPF Release Notes](/wpf/release-notes/v23.2.7#pdf){:target="_blank"} + + +## Presentation + +* [Windows Forms Release Notes](/windowsforms/release-notes/v23.2.7#presentation){:target="_blank"} +* [WPF Release Notes](/wpf/release-notes/v23.2.7#presentation){:target="_blank"} +* [UWP Release Notes](/uwp/release-notes/v23.2.7#presentation){:target="_blank"} + + +## XlsIO + +* [UWP Release Notes](/uwp/release-notes/v23.2.7#xlsio){:target="_blank"} +* [Windows Forms Release Notes](/windowsforms/release-notes/v23.2.7#xlsio){:target="_blank"} +* [WPF Release Notes](/wpf/release-notes/v23.2.7#xlsio){:target="_blank"} \ No newline at end of file diff --git a/File-Formats/XlsIO/GCP_Images/Browse_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Browse_ExceltoImage.png new file mode 100644 index 000000000..dac8f8132 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Browse_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Browse_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Browse_ExceltoPDF.png new file mode 100644 index 000000000..ed0cc4490 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Browse_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Check_Yaml_Docker_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Check_Yaml_Docker_ExceltoImage.png new file mode 100644 index 000000000..586bcad99 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Check_Yaml_Docker_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Check_Yaml_Docker_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Check_Yaml_Docker_ExceltoPDF.png new file mode 100644 index 000000000..de10e6e1e Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Check_Yaml_Docker_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Configuration_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Configuration_ExceltoImage.png new file mode 100644 index 000000000..07a1a6015 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Configuration_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Configuration_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Configuration_ExceltoPDF.png new file mode 100644 index 000000000..90ee33cb1 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Configuration_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Deploy_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Deploy_ExceltoImage.png new file mode 100644 index 000000000..6b97b8a43 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Deploy_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Deploy_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Deploy_ExceltoPDF.png new file mode 100644 index 000000000..759551a5e Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Deploy_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Docker_File_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Docker_File_ExceltoImage.png new file mode 100644 index 000000000..3443f8851 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Docker_File_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Docker_File_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Docker_File_ExceltoPDF.png new file mode 100644 index 000000000..a3ac589ff Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Docker_File_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Ensure_Sample_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Ensure_Sample_ExceltoImage.png new file mode 100644 index 000000000..bafc66b4b Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Ensure_Sample_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Ensure_Sample_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Ensure_Sample_ExceltoPDF.png new file mode 100644 index 000000000..50caf7606 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Ensure_Sample_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Install_Nuget_HarfBuzzSharp.png b/File-Formats/XlsIO/GCP_Images/Install_Nuget_HarfBuzzSharp.png new file mode 100644 index 000000000..e602cb97d Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Install_Nuget_HarfBuzzSharp.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Install_Nuget_SkiaSharp.png b/File-Formats/XlsIO/GCP_Images/Install_Nuget_SkiaSharp.png new file mode 100644 index 000000000..a2bb7ec36 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Install_Nuget_SkiaSharp.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Install_Nuget_Syncfusion.png b/File-Formats/XlsIO/GCP_Images/Install_Nuget_Syncfusion.png new file mode 100644 index 000000000..edae2c84f Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Install_Nuget_Syncfusion.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Navigate_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Navigate_ExceltoImage.png new file mode 100644 index 000000000..2fa4c0ee3 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Navigate_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Navigate_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Navigate_ExceltoPDF.png new file mode 100644 index 000000000..6d9541f91 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Navigate_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Navigate_Publish_Folder_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Navigate_Publish_Folder_ExceltoImage.png new file mode 100644 index 000000000..6c7186b65 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Navigate_Publish_Folder_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Navigate_Publish_Folder_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Navigate_Publish_Folder_ExceltoPDF.png new file mode 100644 index 000000000..c2e27d2c1 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Navigate_Publish_Folder_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Output_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Output_ExceltoImage.png new file mode 100644 index 000000000..d8938a51d Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Output_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Output_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Output_ExceltoPDF.png new file mode 100644 index 000000000..0fcc2bd8e Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Output_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Publish_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Publish_ExceltoImage.png new file mode 100644 index 000000000..bde60183e Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Publish_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Publish_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Publish_ExceltoPDF.png new file mode 100644 index 000000000..71b909766 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Publish_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Run_Application_Command_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Run_Application_Command_ExceltoImage.png new file mode 100644 index 000000000..a46390842 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Run_Application_Command_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Run_Application_Command_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Run_Application_Command_ExceltoPDF.png new file mode 100644 index 000000000..d0f34b4d0 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Run_Application_Command_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Stop_Process_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Stop_Process_ExceltoImage.png new file mode 100644 index 000000000..53205e5dd Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Stop_Process_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Stop_Process_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Stop_Process_ExceltoPDF.png new file mode 100644 index 000000000..9d436970e Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Stop_Process_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/View_File_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/View_File_ExceltoImage.png new file mode 100644 index 000000000..c8b786034 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/View_File_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/View_File_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/View_File_ExceltoPDF.png new file mode 100644 index 000000000..f171349b4 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/View_File_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Web_View_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Web_View_ExceltoImage.png new file mode 100644 index 000000000..ea87a7eef Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Web_View_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Web_View_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Web_View_ExceltoPDF.png new file mode 100644 index 000000000..958bf5318 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Web_View_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Workspace_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Workspace_ExceltoImage.png new file mode 100644 index 000000000..07e0fe4be Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Workspace_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Workspace_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Workspace_ExceltoPDF.png new file mode 100644 index 000000000..12b9c4015 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Workspace_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Yaml_File_ExceltoImage.png b/File-Formats/XlsIO/GCP_Images/Yaml_File_ExceltoImage.png new file mode 100644 index 000000000..dd031affd Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Yaml_File_ExceltoImage.png differ diff --git a/File-Formats/XlsIO/GCP_Images/Yaml_File_ExceltoPDF.png b/File-Formats/XlsIO/GCP_Images/Yaml_File_ExceltoPDF.png new file mode 100644 index 000000000..981ecfa03 Binary files /dev/null and b/File-Formats/XlsIO/GCP_Images/Yaml_File_ExceltoPDF.png differ diff --git a/File-Formats/XlsIO/convert-excel-to-image-in-gcp.md b/File-Formats/XlsIO/convert-excel-to-image-in-gcp.md new file mode 100644 index 000000000..46615081b --- /dev/null +++ b/File-Formats/XlsIO/convert-excel-to-image-in-gcp.md @@ -0,0 +1,35 @@ +--- +title: Convert Excel to Image in Google Cloud Platform (GCP) | Syncfusion +description: Learn how to convert an Excel document to Image in Google Cloud Platform (GCP) using .NET Core Excel library (XlsIO) without Microsoft Excel or interop dependencies. +platform: file-formats +control: XlsIO +documentation: UG +--- + +# Convert Excel to Image in Google Cloud Platform (GCP) + +Syncfusion XlsIO is a [.NET Core Excel library](https://www.syncfusion.com/document-processing/excel-framework/net-core/excel-library) used to create, read, edit and **convert Excel documents** programmatically without **Microsoft Excel** or interop dependencies. Using this library, you can **convert an Excel document to Image in Google Cloud Platform (GCP)** within a few lines of code. + +N> If this is your first time working with Google Cloud Platform (GCP), please refer to the dedicated GCP resources. This section explains how to convert an Excel document to Image in C# using the .NET Core Excel (XlsIO) library in GCP. + +## Prerequisites + +Before we begin, make sure you have the following. + +* A [Google Cloud Platform (GCP)](https://console.cloud.google.com/getting-started) account with access to the App Engine service. + +## Google Cloud Platform (GCP) + + + + + + + +
+Google Cloud Platform
+NuGet package name
+App Engine +
+{{'[Syncfusion.XlsIORenderer.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIORenderer.Net.Core)' | markdownify}}
+{{'[SkiaSharp.NativeAssets.Linux v2.88.6](https://www.nuget.org/packages/SkiaSharp.NativeAssets.Linux/2.88.6)' | markdownify}}
{{'[HarfBuzzSharp.NativeAssets.Linux v7.3.0](https://www.nuget.org/packages/HarfBuzzSharp.NativeAssets.Linux/7.3.0)' |markdownify}}
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 new file mode 100644 index 000000000..36b98f908 --- /dev/null +++ b/File-Formats/XlsIO/convert-excel-to-image-in-google-app-engine.md @@ -0,0 +1,276 @@ +--- +title: Convert Excel to Image in Google App Engine | Syncfusion +description: Convert Excel to Image in Google App Engine using .NET Core Excel library (XlsIO) without Microsoft Excel or interop dependencies. +platform: file-formats +control: XlsIO +documentation: UG +--- + +# Convert Excel document to Image in Google App Engine + +Syncfusion XlsIO is a [.NET Core Excel library](https://www.syncfusion.com/document-processing/excel-framework/net-core/excel-library) used to create, read, edit and **convert Excel documents** programmatically without **Microsoft Excel** or interop dependencies. Using this library, you can **convert an Excel document to Image in Google App Engine**. + +## Set up App Engine + +Step 1: Open the **Google Cloud Console** and click the **Activate Cloud Shell** button. + +![Activate Cloud Shell](GCP_Images/App_Engine_Getting_Started.png) + +Step 2: Click the **Cloud Shell Editor** button to view the **Workspace**. + +![Open Editor in Cloud Shell](GCP_Images/Activate_Cloud_Shell.png) + +Step 3: Open **Cloud Shell Terminal**, run the following **command** to confirm authentication. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +gcloud auth list + +{% endhighlight %} +{% endtabs %} + +![Authentication for App Engine](GCP_Images/Authentication.png) + +Step 4: Click the **Authorize** button. + +![Click Authorize button](GCP_Images/Authorize_Button.png) + +## Create an application for App Engine + +Step 1: Open Visual Studio and select the ASP.NET Core Web app (Model-View-Controller) template. + +![Create ASP.NET Core Web application in Visual Studio](GCP_Images/CreateProject_Create_Excel.png) + +Step 2: Configure your new project according to your requirements. + +![Configure your project](GCP_Images/Configuration_ExceltoImage.png) + +Step 3: Click the **Create** button. + +![Click create button](GCP_Images/Additional_Information_Create_Excel.png) + +Step 4: Install the following **Nuget packages** in your application from [Nuget.org](https://www.nuget.org/). + +* [Syncfusion.XLsIORenderer.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIORenderer.Net.Core) +* [SkiaSharp.NativeAssets.Linux v2.88.6](https://www.nuget.org/packages/SkiaSharp.NativeAssets.Linux/2.88.6) +* [HarfBuzzSharp.NativeAssets.Linux v7.3.0](https://www.nuget.org/packages/HarfBuzzSharp.NativeAssets.Linux/7.3.0) + +![Install Syncfusion.XlsIORenderer.Net.Core Nuget Package](GCP_Images/Install_Nuget_Syncfusion.png) +![Install SkiaSharp.NativeAssets.Linux Nuget Package](GCP_Images/Install_Nuget_SkiaSharp.png) +![Install HarfBuzzSharp.NativeAssets.Linux Nuget Package](GCP_Images/Install_Nuget_HarfBuzzSharp.png) + +N> Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to add "Syncfusion.Licensing" assembly reference and 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. + +Step 5: Include the following namespaces in the **HomeController.cs** file. + +{% tabs %} +{% highlight c# tabtitle="C#" %} + +using Syncfusion.XlsIO; +using Syncfusion.XlsIORenderer; + +{% endhighlight %} +{% endtabs %} + +Step 6: A default action method named Index will be present in HomeController.cs. Right click on Index method and select **Go To View** where you will be directed to its associated view page **Index.cshtml**. + +Step 7: Add a new button in the Index.cshtml as shown below. + +{% tabs %} +{% highlight c# tabtitle="C#" %} + +@{ + Html.BeginForm("ConvertExcelToImage", "Home", FormMethod.Get); + { +
+ +
+ } + Html.EndForm(); +} + +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. + +{% tabs %} +{% highlight c# tabtitle="C#" %} + +using (ExcelEngine excelEngine = new ExcelEngine()) +{ + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + FileStream excelStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read); + IWorkbook workbook = application.Workbooks.Open(excelStream); + IWorksheet worksheet = workbook.Worksheets[0]; + + //Initialize XlsIO renderer. + application.XlsIORenderer = new XlsIORenderer(); + + //Create the MemoryStream to save the image. + MemoryStream imageStream = new MemoryStream(); + + //Save the converted image to MemoryStream. + worksheet.ConvertToImage(worksheet.UsedRange, imageStream); + imageStream.Position = 0; + + //Download image in the browser. + return File(imageStream, "application/jpeg", "Sample.jpeg"); +} + +{% endhighlight %} +{% endtabs %} + +## Move application to App Engine + +Step 1: Open the **Cloud Shell editor**. + +![Cloud Shell Editor](GCP_Images/Cloud_Shell_Editor.png) + +Step 2: Drag and drop the sample from your local machine to **Workspace**. + +![Open the Home Workspace](GCP_Images/Workspace_ExceltoImage.png) + +N> If you have your sample application in your local machine, drag and drop it into the Workspace. If you created the sample using the Cloud Shell terminal command, it will be available in the Workspace. + +Step 3: Open the Cloud Shell Terminal and run the following **command** to view the files and directories within your **current Workspace**. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +ls + +{% endhighlight %} +{% endtabs %} + +![Open the Home Workspace](GCP_Images/View_File_ExceltoImage.png) + +Step 4: Run the following **command** to navigate which sample you want run. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +cd Convert-Excel-to-Image + +{% endhighlight %} +{% endtabs %} + +![Open the Home Workspace](GCP_Images/Navigate_ExceltoImage.png) + +Step 5: To ensure that the sample is working correctly, please run the application using the following command. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +dotnet run --urls=http://localhost:8080 + +{% endhighlight %} +{% endtabs %} + +![Run the application using command](GCP_Images/Run_Application_Command_ExceltoImage.png) + +Step 6: Verify that the application is running properly by accessing the **Web View** -> **Preview on port 8080**. + +![Verify the application is running properly](GCP_Images/Web_View_ExceltoImage.png) + +Step 7: Now you can see the sample output on the preview page. + +![Sample output in browser](GCP_Images/Ensure_Sample_ExceltoImage.png) + +Step 8: Close the preview page and return to the terminal then press **Ctrl+C** for which will typically stop the process. + +![Close the preview page](GCP_Images/Stop_Process_ExceltoImage.png) + +## Publish the application + +Step 1: Run the following command in **Cloud Shell Terminal** to publish the application. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +dotnet publish -c Release + +{% endhighlight %} +{% endtabs %} + +![Publish the application](GCP_Images/Publish_ExceltoImage.png) + +Step 2: Run the following command in **Cloud Shell Terminal** to navigate to the publish folder. +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +cd bin/Release/net6.0/publish/ + +{% endhighlight %} +{% endtabs %} + +![Publish the application](GCP_Images/Navigate_Publish_Folder_ExceltoImage.png) + +## Configure app.yaml and docker file + +Step 1: Add the app.yaml file to the publish folder with the following contents. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +cat <> app.yaml +env: flex +runtime: custom +EOT + +{% endhighlight %} +{% endtabs %} + +![Add required files to publish folder](GCP_Images/Yaml_File_ExceltoImage.png) + +Step 2: Add the Docker file to the publish folder with the following contents. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +cat <> Dockerfile +FROM mcr.microsoft.com/dotnet/aspnet:6.0 +RUN apt-get update -y && apt-get install libfontconfig -y +ADD / /app +EXPOSE 8080 +ENV ASPNETCORE_URLS=http://*:8080 +WORKDIR /app +ENTRYPOINT [ "dotnet", "Convert-Excel-to-Image.dll"] +EOT + +{% endhighlight %} +{% endtabs %} + + +![Add required files to publish folder](GCP_Images/Docker_File_ExceltoImage.png) + +Step 3: You can ensure **Docker** and **app.yaml** files are added in **Workspace**. + +![Add required files to publish folder](GCP_Images/Check_Yaml_Docker_ExceltoImage.png) + +## Deploy to App Engine + +Step 1: To deploy the application to the App Engine, run the following command in Cloud Shell Terminal. Afterwards, retrieve the **URL** from the Cloud Shell Terminal. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +gcloud app deploy --version v0 + +{% endhighlight %} +{% endtabs %} + +!["Add required files to publish folder](GCP_Images/Deploy_ExceltoImage.png) + +Step 2: Open the **URL** to access the application, which has been successfully deployed. + +!["Add required files to publish folder](GCP_Images/Browse_ExceltoImage.png) + +A complete working example of how to convert an Excel document to Image in GCP is present on [this GitHub page](https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Getting%20Started/ASP.NET%20Core/Convert%20Excel%20to%20Image). + +By executing the program, you will get the **image** as follows. The output will be saved in **bin** folder. + +![Excel to Image in Google App Engine](GCP_Images/Output_ExceltoImage.png) + +Click [here](https://www.syncfusion.com/document-processing/excel-framework/net-core) to explore the rich set of Syncfusion Excel library (XlsIO) features. + +An online sample link to [convert an Excel document to Image](https://ej2.syncfusion.com/aspnetcore/Excel/WorksheetToImage#/material3) in ASP.NET Core. \ No newline at end of file diff --git a/File-Formats/XlsIO/convert-excel-to-pdf-in-gcp.md b/File-Formats/XlsIO/convert-excel-to-pdf-in-gcp.md new file mode 100644 index 000000000..744c3aac0 --- /dev/null +++ b/File-Formats/XlsIO/convert-excel-to-pdf-in-gcp.md @@ -0,0 +1,35 @@ +--- +title: Convert Excel to PDF in GCP | Syncfusion +description: Learn how to convert an Excel document to PDF in Google Cloud Platform (GCP) using .NET Core Excel library (XlsIO) without Microsoft Excel or interop dependencies. +platform: file-formats +control: XlsIO +documentation: UG +--- + +# Convert Excel to PDF in Google Cloud Platform (GCP) + +Syncfusion XlsIO is a [.NET Core Excel library](https://www.syncfusion.com/document-processing/excel-framework/net-core/excel-library) used to create, read, edit and **convert Excel documents** programmatically without **Microsoft Excel** or interop dependencies. Using this library, you can **convert an Excel document to PDF in Google Cloud Platform (GCP)** within a few lines of code. + +N> If this is your first time working with Google Cloud Platform (GCP), please refer to the dedicated GCP resources. This section explains how to convert an Excel document to PDF in C# using the .NET Core Exel (XlsIO) library in GCP. + +## Prerequisites + +Before we begin, make sure you have the following. + +* A [Google Cloud Platform (GCP)](https://console.cloud.google.com/getting-started) account with access to the App Engine service. + +## Google Cloud Platform (GCP) + + + + + + + +
+Google Cloud Platform
+NuGet package name
+App Engine +
+{{'[Syncfusion.XlsIORenderer.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIORenderer.Net.Core)' | markdownify}}
+{{'[SkiaSharp.NativeAssets.Linux v2.88.6](https://www.nuget.org/packages/SkiaSharp.NativeAssets.Linux/2.88.6)' | markdownify}}
{{'[HarfBuzzSharp.NativeAssets.Linux v7.3.0](https://www.nuget.org/packages/HarfBuzzSharp.NativeAssets.Linux/7.3.0)' |markdownify}}
\ No newline at end of file diff --git a/File-Formats/XlsIO/convert-excel-to-pdf-in-google-app-engine.md b/File-Formats/XlsIO/convert-excel-to-pdf-in-google-app-engine.md new file mode 100644 index 000000000..798b6373f --- /dev/null +++ b/File-Formats/XlsIO/convert-excel-to-pdf-in-google-app-engine.md @@ -0,0 +1,278 @@ +--- +title: Convert Excel to PDF in Google App Engine | Syncfusion +description: Convert Excel to PDF in Google App Engine using .NET Core Excel (XlsIO) library without Microsoft Excel or interop dependencies. +platform: file-formats +control: XlsIO +documentation: UG +--- + +# Convert Excel document to PDF in Google App Engine + +Syncfusion XlsIO is a [.NET Core Excel library](https://www.syncfusion.com/document-processing/excel-framework/net-core/excel-library) used to create, read, edit and **convert Excel documents** programmatically without **Microsoft Excel** or interop dependencies. Using this library, you can **convert an Excel document to PDF in Google App Engine**. + +## Set up App Engine + +Step 1: Open the **Google Cloud Console** and click the **Activate Cloud Shell** button. + +![Activate Cloud Shell](GCP_Images/App_Engine_Getting_Started.png) + +Step 2: Click the **Cloud Shell Editor** button to view the **Workspace**. + +![Open Editor in Cloud Shell](GCP_Images/Activate_Cloud_Shell.png) + +Step 3: Open **Cloud Shell Terminal**, run the following **command** to confirm authentication. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +gcloud auth list + +{% endhighlight %} +{% endtabs %} + +![Authentication for App Engine](GCP_Images/Authentication.png) + +Step 4: Click the **Authorize** button. + +![Click Authorize button](GCP_Images/Authorize_Button.png) + +## Create an application for App Engine + +Step 1: Open Visual Studio and select the ASP.NET Core Web app (Model-View-Controller) template. + +![Create ASP.NET Core Web application in Visual Studio](GCP_Images/CreateProject_Create_Excel.png) + +Step 2: Configure your new project according to your requirements. + +![Configure your project](GCP_Images/Configuration_ExceltoPDF.png) + +Step 3: Click the **Create** button. + +![Click create button](GCP_Images/Additional_Information_Create_Excel.png) + +Step 4: Install the following **Nuget packages** in your application from [Nuget.org](https://www.nuget.org/). + +* [Syncfusion.XLsIORenderer.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIORenderer.Net.Core) +* [SkiaSharp.NativeAssets.Linux v2.88.6](https://www.nuget.org/packages/SkiaSharp.NativeAssets.Linux/2.88.6) +* [HarfBuzzSharp.NativeAssets.Linux v7.3.0](https://www.nuget.org/packages/HarfBuzzSharp.NativeAssets.Linux/7.3.0) + +![Install Syncfusion.XlsIORenderer.Net.Core Nuget Package](GCP_Images/Install_Nuget_Syncfusion.png) +![Install SkiaSharp.NativeAssets.Linux Nuget Package](GCP_Images/Install_Nuget_SkiaSharp.png) +![Install HarfBuzzSharp.NativeAssets.Linux Nuget Package](GCP_Images/Install_Nuget_HarfBuzzSharp.png) + +N> Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to add "Syncfusion.Licensing" assembly reference and 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. + +Step 5: Include the following namespaces in the **HomeController.cs** file. + +{% tabs %} +{% highlight c# tabtitle="C#" %} + +using Syncfusion.XlsIO; +using Syncfusion.XlsIORenderer; +using Syncfusion.Pdf; + +{% endhighlight %} +{% endtabs %} + +Step 6: A default action method named Index will be present in HomeController.cs. Right click on Index method and select **Go To View** where you will be directed to its associated view page **Index.cshtml**. + +Step 7: Add a new button in the Index.cshtml as shown below. + +{% tabs %} +{% highlight c# tabtitle="C#" %} + +@{Html.BeginForm("ConvertExceltoPDF", "Home", FormMethod.Get); +{ +
+ +
+} +Html.EndForm(); +} + +{% endhighlight %} +{% endtabs %} + +Step 8: Add a new action method **ConvertExceltoPDF** in HomeController.cs and include the below code snippet to **convert the Excel document to Pdf** and download it. +{% tabs %} +{% highlight c# tabtitle="C#" %} +using (ExcelEngine excelEngine = new ExcelEngine()) +{ + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + FileStream excelStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read); + IWorkbook workbook = application.Workbooks.Open(excelStream); + + //Initialize XlsIO renderer. + XlsIORenderer renderer = new XlsIORenderer(); + + //Convert Excel document into PDF document + PdfDocument pdfDocument = renderer.ConvertToPDF(workbook); + + //Create the MemoryStream to save the converted PDF. + MemoryStream pdfStream = new MemoryStream(); + + //Save the converted PDF document to MemoryStream. + pdfDocument.Save(pdfStream); + pdfStream.Position = 0; + + //Download PDF document in the browser. + return File(pdfStream, "application/pdf", "Sample.pdf"); +} +{% endhighlight %} +{% endtabs %} + +## Move application to App Engine + +Step 1: Open the **Cloud Shell editor**. + +![Cloud Shell Editor](GCP_Images/Cloud_Shell_Editor.png) + +Step 2: Drag and drop the sample from your local machine to **Workspace**. + +![Open the Home Workspace](GCP_Images/Workspace_ExceltoPDF.png) + +N> If you have your sample application in your local machine, drag and drop it into the Workspace. If you created the sample using the Cloud Shell terminal command, it will be available in the Workspace. + +Step 3: Open the Cloud Shell Terminal and run the following **command** to view the files and directories within your **current Workspace**. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +ls + +{% endhighlight %} +{% endtabs %} + +![Open the Home Workspace](GCP_Images/View_File_ExceltoPDF.png) + +Step 4: Run the following **command** to navigate which sample you want run. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +cd Convert-Excel-to-PDF + +{% endhighlight %} +{% endtabs %} + +![Open the Home Workspace](GCP_Images/Navigate_ExceltoPDF.png) + +Step 5: To ensure that the sample is working correctly, please run the application using the following command. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +dotnet run --urls=http://localhost:8080 + +{% endhighlight %} +{% endtabs %} + +![Run the application using command](GCP_Images/Run_Application_Command_ExceltoPDF.png) + +Step 6: Verify that the application is running properly by accessing the **Web View** -> **Preview on port 8080**. + +![Verify the application is running properly](GCP_Images/Web_View_ExceltoPDF.png) + +Step 7: Now you can see the sample output on the preview page. + +![Sample output in browser](GCP_Images/Ensure_Sample_ExceltoPDF.png) + +Step 8: Close the preview page and return to the terminal then press **Ctrl+C** for which will typically stop the process. + +![Close the preview page](GCP_Images/Stop_Process_ExceltoPDF.png) + +## Publish the application + +Step 1: Run the following command in **Cloud Shell Terminal** to publish the application. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +dotnet publish -c Release + +{% endhighlight %} +{% endtabs %} + +![Publish the application](GCP_Images/Publish_ExceltoPDF.png) + +Step 2: Run the following command in **Cloud Shell Terminal** to navigate to the publish folder. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +cd bin/Release/net6.0/publish/ + +{% endhighlight %} +{% endtabs %} + +![Publish the application](GCP_Images/Navigate_Publish_Folder_ExceltoPDF.png) + +## Configure app.yaml and docker file + +Step 1: Add the app.yaml file to the publish folder with the following contents. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +cat <> app.yaml +env: flex +runtime: custom +EOT + +{% endhighlight %} +{% endtabs %} + +![Add required files to publish folder](GCP_Images/Yaml_File_ExceltoPDF.png) + +Step 2: Add the Docker file to the publish folder with the following contents. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +cat <> Dockerfile +FROM mcr.microsoft.com/dotnet/aspnet:6.0 +RUN apt-get update -y && apt-get install libfontconfig -y +ADD / /app +EXPOSE 8080 +ENV ASPNETCORE_URLS=http://*:8080 +WORKDIR /app +ENTRYPOINT [ "dotnet", "Convert-Excel-to-PDF.dll"] +EOT + +{% endhighlight %} +{% endtabs %} + +![Add required files to publish folder](GCP_Images/Docker_File_ExceltoPDF.png) + +Step 3: You can ensure **Docker** and **app.yaml** files are added in **Workspace**. + +![Add required files to publish folder](GCP_Images/Check_Yaml_Docker_ExceltoPDF.png) + +## Deploy to App Engine + +Step 1: To deploy the application to the App Engine, run the following command in Cloud Shell Terminal. Afterwards, retrieve the **URL** from the Cloud Shell Terminal. + +{% tabs %} +{% highlight c# tabtitle="CLI" %} + +gcloud app deploy --version v0 + +{% endhighlight %} +{% endtabs %} + +!["Add required files to publish folder](GCP_Images/Deploy_ExceltoPDF.png) + +Step 2: Open the **URL** to access the application, which has been successfully deployed. + +!["Add required files to publish folder](GCP_Images/Browse_ExceltoPDF.png) + +A complete working example of how to convert an Excel document to PDF in GCP is present on [this GitHub page](https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Getting%20Started/ASP.NET%20Core/Convert%20Excel%20to%20PDF). + +By executing the program, you will get the **PDF document** as follows. The output will be saved in **bin** folder. + +![Excel to PDF in Google App Engine](GCP_Images/Output_ExceltoPDF.png) + +Click [here](https://www.syncfusion.com/document-processing/excel-framework/net-core) to explore the rich set of Syncfusion Excel library (XlsIO) features. + +An online sample link to [convert an Excel document to PDF](https://ej2.syncfusion.com/aspnetcore/Excel/ExcelToPDF#/material3) in ASP.NET Core. \ No newline at end of file diff --git a/File-Formats/XlsIO/installation/linux-installer/how-to-download.md b/File-Formats/XlsIO/installation/linux-installer/how-to-download.md index 9f1210f11..733286484 100644 --- a/File-Formats/XlsIO/installation/linux-installer/how-to-download.md +++ b/File-Formats/XlsIO/installation/linux-installer/how-to-download.md @@ -1,12 +1,14 @@ --- layout: post -title: Downloading Syncfusion Essential Studio Linux installer - Syncfusion -description: Learn here about the how to download Syncfusion Essential Studio Linux installer from our syncfusion website with license. -platform: common +title: Downloading Syncfusion Excel linux installer - Syncfusion +description: Learn here about how to download the Syncfusion Excel linux installer from our Syncfusion website with license. +platform: file-formats +control: Installation and Deployment documentation: ug ---- -# Download Syncfusion Essential Studio Linux Installer +--- + +# Download Syncfusion Excel Linux Installer The Syncfusion installer can be downloaded from the [Syncfusion](https://www.syncfusion.com/) website. You can either download the licensed installer or try our trial installer depending on your license. @@ -28,17 +30,17 @@ Our 30-day trial can be downloaded in two ways. 1. You can evaluate our 30-day free trial by visiting the [Download Free Trial](https://www.syncfusion.com/downloads) page and select the product 2. After completing the required form or logging in with your registered Syncfusion account, you can download the trial installer from the confirmation page. (as shown in below screenshot.) - ![Trial and downloads of Syncfusion Essential Studio](images/trial-confirmation.png) + ![Trial and downloads of Syncfusion Excel](images/trial-confirmation.png) 3. With a trial license, only the latest version’s trial installer can be downloaded. -4. Unlock key is not required to install the Syncfusion Essential Studio Linux trial installer. +4. Unlock key is not required to install the Syncfusion Excel Linux trial installer. 5. Before the trial expires, you can download the trial installer at any time from your registered account’s [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page (as shown in below screenshot.) - ![Trial and downloads of Syncfusion Essential Studio](images/trial-download.png) + ![Trial and downloads of Syncfusion Excel](images/trial-download.png) -6. Click the More Download Options (element 2 in the above screenshot) button to get the Essential Studio Product Offline trial installer which is available in ZIP format. +6. Click the More Download Options (element 2 in the above screenshot) button to get the Excel Product Offline trial installer which is available in ZIP format. - ![License and downloads of Syncfusion Essential Studio](images/start-trial-download-offline-installer.png) + ![License and downloads of Syncfusion Excel](images/start-trial-download-offline-installer.png) ### Start Trials if using components through [NuGet.org](https://www.nuget.org/packages?q=syncfusion) @@ -48,7 +50,7 @@ You should initiate an evaluation if you have already obtained our components th N> You can generate the license key for your active trial products from [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page. This license key will be mandatory to use our trial products in your application. To know more about License key, refer this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/overview). - ![Trial and downloads of Syncfusion Essential Studio](images/start-trial-download.png) + ![Trial and downloads of Syncfusion Excel](images/start-trial-download.png) 2. To access this page, you must sign up\log in with your Syncfusion account. 3. Begin your trial by selecting the Syncfusion product. @@ -57,7 +59,7 @@ You should initiate an evaluation if you have already obtained our components th 4. After you've started the trial, go to the [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page to get the latest version trial installer. You can generate the [unlock key](https://www.syncfusion.com/kb/8069/how-to-generate-unlock-key-for-essentials-studio-products) and [license key](https://help.syncfusion.com/common/essential-studio/licensing/how-to-generate) here at any time before the trial period expires. (as shown in below screenshot.) - ![License and downloads of Syncfusion Essential Studio](images/start-trial-download-installer.png) + ![License and downloads of Syncfusion Excel](images/start-trial-download-installer.png) 5. You can find your current active trial products on the [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page. @@ -66,13 +68,13 @@ You should initiate an evaluation if you have already obtained our components th 1. Syncfusion licensed products will be available in the [License & Downloads](https://www.syncfusion.com/account/downloads) page under your registered Syncfusion account. 2. You can view all the licenses (both active and expired) associated with your account. -3. You can download Essential Studio Linux licensed installer by going to More Downloads Options (element 3 in the screenshot below). +3. You can download Excel Linux licensed installer by going to More Downloads Options (element 3 in the screenshot below). - ![License and downloads of Syncfusion Essential Studio](images/license-download.png) + ![License and downloads of Syncfusion Excel](images/license-download.png) -4. Unlock key is not required to install the Syncfusion Essential Studio Linux trial installer. +4. Unlock key is not required to install the Syncfusion Excel Linux trial installer. 5. For Linux OS, ZIP formats is available for download. - ![License and downloads of Syncfusion Essential Studio](images/Linux_Download.PNG) + ![License and downloads of Syncfusion Excel](images/Linux_Download.PNG) -You can also refer to the [**Essential Studio Linux installer**](https://help.syncfusion.com/common/essential-studio/installation/linux-installer/how-to-install) links for step-by-step installation guidelines. +You can also refer to the [**Excel Linux installer**](https://help.syncfusion.com/common/essential-studio/installation/linux-installer/how-to-install) links for step-by-step installation guidelines. diff --git a/File-Formats/XlsIO/installation/linux-installer/how-to-install.md b/File-Formats/XlsIO/installation/linux-installer/how-to-install.md index 7cfdbd9ce..302b75166 100644 --- a/File-Formats/XlsIO/installation/linux-installer/how-to-install.md +++ b/File-Formats/XlsIO/installation/linux-installer/how-to-install.md @@ -1,13 +1,14 @@ --- layout: post -title: Installing Syncfusion Essential Studio Linux installer - Syncfusion -description: Learn here about how to install Syncfusion Essential Studio Linux installer after downloading from our Syncfusion website. -platform: common -control: Essential Studio +title: Installing Syncfusion Excel linux installer-Syncfusion +description: Learn here about how to install Syncfusion Excel linux installer after downloading from our Syncfusion website. +platform: file-formats +control: Installation and Deployment documentation: ug + --- -# Installing Syncfusion Essential Studio Linux installer +# Installing Syncfusion Excel Linux installer ## Overview @@ -26,9 +27,9 @@ Syncfusion provides the Linux installer for the following Essential Studio produ ## Step-by-Step Installation -The steps below show how to install Essential Studio Linux installer. +The steps below show how to install Excel Linux installer. -1. Extract the Syncfusion Essential Studio Linux installer(.zip) file. The files are extracted in your machine. +1. Extract the Syncfusion Excel Linux installer(.zip) file. The files are extracted in your machine. ![Welcome wizard](images/Linux_Installer1.png) @@ -49,7 +50,7 @@ The steps below show how to install Essential Studio Linux installer. ## License key registration in samples -After the installation, the license key is required to register the demo source that is included in the Linux installer. To learn about the steps for license registration for the ASP.NET Core - EJ2 Linux installer, please refer to this. +After the installation, the license key is required to register the demo source that is included in the Mac installer. To learn about the steps for license registration for the ASP.NET Core - EJ2 Mac installer, please refer to this. * Register the license key in the [Program.cs](https://ej2.syncfusion.com/aspnetcore/documentation/licensing/how-to-register-in-an-application#for-aspnet-core-application-using-net-60) file if you created the ASP.NET Core web application with Visual Studio 2022 and .NET 6.0. * Register the license key in Configure method of [Startup.cs](https://ej2.syncfusion.com/aspnetcore/documentation/licensing/how-to-register-in-an-application#for-aspnet-core-application-using-net-50-or-net-31) \ No newline at end of file diff --git a/File-Formats/XlsIO/installation/linux-installer/images/Linux_Download.PNG b/File-Formats/XlsIO/installation/linux-installer/images/Linux_Download.PNG index b80307bfa..2d8a6788a 100644 Binary files a/File-Formats/XlsIO/installation/linux-installer/images/Linux_Download.PNG and b/File-Formats/XlsIO/installation/linux-installer/images/Linux_Download.PNG differ diff --git a/File-Formats/installation/linux-installer/how-to-download.md b/File-Formats/installation/linux-installer/how-to-download.md index 9f1210f11..ee60dba2f 100644 --- a/File-Formats/installation/linux-installer/how-to-download.md +++ b/File-Formats/installation/linux-installer/how-to-download.md @@ -1,12 +1,14 @@ --- layout: post -title: Downloading Syncfusion Essential Studio Linux installer - Syncfusion -description: Learn here about the how to download Syncfusion Essential Studio Linux installer from our syncfusion website with license. -platform: common +title: Downloading Syncfusion FileFormats Linux installer - Syncfusion +description: Learn here about how to download the Syncfusion FileFormats Linux installer from our Syncfusion website with license. +platform: file-formats +control: Installation and Deployment documentation: ug ---- -# Download Syncfusion Essential Studio Linux Installer +--- + +# Download Syncfusion File-Formats Linux Installer The Syncfusion installer can be downloaded from the [Syncfusion](https://www.syncfusion.com/) website. You can either download the licensed installer or try our trial installer depending on your license. @@ -28,17 +30,17 @@ Our 30-day trial can be downloaded in two ways. 1. You can evaluate our 30-day free trial by visiting the [Download Free Trial](https://www.syncfusion.com/downloads) page and select the product 2. After completing the required form or logging in with your registered Syncfusion account, you can download the trial installer from the confirmation page. (as shown in below screenshot.) - ![Trial and downloads of Syncfusion Essential Studio](images/trial-confirmation.png) + ![Trial and downloads of Syncfusion File-Formats](images/trial-confirmation.png) 3. With a trial license, only the latest version’s trial installer can be downloaded. -4. Unlock key is not required to install the Syncfusion Essential Studio Linux trial installer. +4. Unlock key is not required to install the Syncfusion File-Formats Linux trial installer. 5. Before the trial expires, you can download the trial installer at any time from your registered account’s [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page (as shown in below screenshot.) - ![Trial and downloads of Syncfusion Essential Studio](images/trial-download.png) + ![Trial and downloads of Syncfusion File-Formats](images/trial-download.png) -6. Click the More Download Options (element 2 in the above screenshot) button to get the Essential Studio Product Offline trial installer which is available in ZIP format. +6. Click the More Download Options (element 2 in the above screenshot) button to get the File-Formats Product Offline trial installer which is available in ZIP format. - ![License and downloads of Syncfusion Essential Studio](images/start-trial-download-offline-installer.png) + ![License and downloads of Syncfusion File-Formats](images/start-trial-download-offline-installer.png) ### Start Trials if using components through [NuGet.org](https://www.nuget.org/packages?q=syncfusion) @@ -48,7 +50,7 @@ You should initiate an evaluation if you have already obtained our components th N> You can generate the license key for your active trial products from [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page. This license key will be mandatory to use our trial products in your application. To know more about License key, refer this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/overview). - ![Trial and downloads of Syncfusion Essential Studio](images/start-trial-download.png) + ![Trial and downloads of Syncfusion File-Formats](images/start-trial-download.png) 2. To access this page, you must sign up\log in with your Syncfusion account. 3. Begin your trial by selecting the Syncfusion product. @@ -57,7 +59,7 @@ You should initiate an evaluation if you have already obtained our components th 4. After you've started the trial, go to the [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page to get the latest version trial installer. You can generate the [unlock key](https://www.syncfusion.com/kb/8069/how-to-generate-unlock-key-for-essentials-studio-products) and [license key](https://help.syncfusion.com/common/essential-studio/licensing/how-to-generate) here at any time before the trial period expires. (as shown in below screenshot.) - ![License and downloads of Syncfusion Essential Studio](images/start-trial-download-installer.png) + ![License and downloads of Syncfusion File-Formats](images/start-trial-download-installer.png) 5. You can find your current active trial products on the [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page. @@ -66,13 +68,13 @@ You should initiate an evaluation if you have already obtained our components th 1. Syncfusion licensed products will be available in the [License & Downloads](https://www.syncfusion.com/account/downloads) page under your registered Syncfusion account. 2. You can view all the licenses (both active and expired) associated with your account. -3. You can download Essential Studio Linux licensed installer by going to More Downloads Options (element 3 in the screenshot below). +3. You can download File-Formats Linux licensed installer by going to More Downloads Options (element 3 in the screenshot below). - ![License and downloads of Syncfusion Essential Studio](images/license-download.png) + ![License and downloads of Syncfusion File-Formats](images/license-download.png) -4. Unlock key is not required to install the Syncfusion Essential Studio Linux trial installer. +4. Unlock key is not required to install the Syncfusion File-Formats Linux trial installer. 5. For Linux OS, ZIP formats is available for download. - ![License and downloads of Syncfusion Essential Studio](images/Linux_Download.PNG) + ![License and downloads of Syncfusion File-Formats](images/Linux_Download.PNG) -You can also refer to the [**Essential Studio Linux installer**](https://help.syncfusion.com/common/essential-studio/installation/linux-installer/how-to-install) links for step-by-step installation guidelines. +You can also refer to the [**File-Formats Linux installer**](https://help.syncfusion.com/common/essential-studio/installation/linux-installer/how-to-install) links for step-by-step installation guidelines. diff --git a/File-Formats/installation/linux-installer/how-to-install.md b/File-Formats/installation/linux-installer/how-to-install.md index fc005d89e..ca9438244 100644 --- a/File-Formats/installation/linux-installer/how-to-install.md +++ b/File-Formats/installation/linux-installer/how-to-install.md @@ -1,13 +1,14 @@ --- layout: post -title: Installing Syncfusion Essential Studio Linux installer - Syncfusion -description: Learn here about how to install Syncfusion Essential Studio Linux installer after downloading from our Syncfusion website. -platform: common -control: Essential Studio +title: Installing Syncfusion FileFormats Linux installer-Syncfusion +description: Learn here about how to install Syncfusion FileFormats Linux installer after downloading from our Syncfusion website. +platform: file-formats +control: Installation and Deployment documentation: ug + --- -# Installing Syncfusion Essential Studio Linux installer +# Installing Syncfusion File-Formats Linux installer ## Overview @@ -26,9 +27,9 @@ Syncfusion provides the Linux installer for the following Essential Studio produ ## Step-by-Step Installation -The steps below show how to install Essential Studio Linux installer. +The steps below show how to install File-Formats Linux installer. -1. Extract the Syncfusion Essential Studio Linux installer(.zip) file. The files are extracted in your machine. +1. Extract the Syncfusion File-Formats Linux installer(.zip) file. The files are extracted in your machine. ![Welcome wizard](images/Linux_Installer1.png) @@ -49,7 +50,7 @@ The steps below show how to install Essential Studio Linux installer. ## License key registration in samples -After the installation, the license key is required to register the demo source that is included in the Linux installer. To learn about the steps for license registration for the JavaScript - EJ2 linux installer, please refer to this. +After the installation, the license key is required to register the demo source that is included in the Mac installer. To learn about the steps for license registration for the ASP.NET Core - EJ2 Mac installer, please refer to this. -* [Register Syncfusion License key in the project](https://ej2.syncfusion.com/react/documentation/licensing/license-key-registration#register-syncfusion-license-key-in-the-project) -* [Register the license key using the npx command](https://ej2.syncfusion.com/react/documentation/licensing/license-key-registration#register-syncfusion-license-key-using-the-npx-command) \ No newline at end of file +* Register the license key in the [Program.cs](https://ej2.syncfusion.com/aspnetcore/documentation/licensing/how-to-register-in-an-application#for-aspnet-core-application-using-net-60) file if you created the ASP.NET Core web application with Visual Studio 2022 and .NET 6.0. +* Register the license key in Configure method of [Startup.cs](https://ej2.syncfusion.com/aspnetcore/documentation/licensing/how-to-register-in-an-application#for-aspnet-core-application-using-net-50-or-net-31) \ No newline at end of file diff --git a/File-Formats/installation/linux-installer/images/Linux_Download.PNG b/File-Formats/installation/linux-installer/images/Linux_Download.PNG index 9065e61ce..2d8a6788a 100644 Binary files a/File-Formats/installation/linux-installer/images/Linux_Download.PNG and b/File-Formats/installation/linux-installer/images/Linux_Download.PNG differ diff --git a/File-Formats/installation/offline-installer/how-to-download.md b/File-Formats/installation/offline-installer/how-to-download.md index 0d38a5f99..3cde0d25b 100644 --- a/File-Formats/installation/offline-installer/how-to-download.md +++ b/File-Formats/installation/offline-installer/how-to-download.md @@ -10,7 +10,7 @@ documentation: ug # Downloading Syncfusion FileFormats offline installer -[DocIO](https://www.syncfusion.com/word-framework/net),[PDF](https://www.syncfusion.com/document-processing/pdf-framework/net),[Presentation](https://www.syncfusion.com/document-processing/powerpoint-framework/net), and [XlsIO](https://www.syncfusion.com/document-processing/excel-framework/net) controls will be included in the Syncfusion FileFormats installer. You can either download the licensed installer or try our trial installer depending on your license. +[DocIO](https://www.syncfusion.com/document-processing/word-framework/net),[PDF](https://www.syncfusion.com/document-processing/pdf-framework/net),[Presentation](https://www.syncfusion.com/document-processing/powerpoint-framework/net), and [XlsIO](https://www.syncfusion.com/document-processing/excel-framework/net) controls will be included in the Syncfusion FileFormats installer. You can either download the licensed installer or try our trial installer depending on your license. - Trial Installer - Licensed Installer