Skip to content

Commit bcd7fa6

Browse files
Merge pull request #1958 from Syncfusion-Content/development
DOCINFRA-2341_merged_using_automation
2 parents 55a0e33 + 4d7bdb4 commit bcd7fa6

17 files changed

+1005
-19
lines changed

File-Formats-toc.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

File-Formats/DocIO/Working-with-Table-Of-Contents.md

Lines changed: 574 additions & 0 deletions
Large diffs are not rendered by default.
25.4 KB
Loading
25.9 KB
Loading

File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-AWS-Elastic-Beanstalk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Convert HTML to PDF in AWS Elastic Beanstalk | Syncfusion
3-
description: Convert HTML to PDF in AWS Elastic Beanstalk using Syncfusion .NET HTML converter library.
3+
description: Learn how to convert HTML to PDF in AWS Elastic Beanstalk using Syncfusion .NET HTML converter library.
44
platform: file-formats
55
control: PDF
66
documentation: UG
77
---
88

99
# Convert HTML to PDF file in AWS Elastic Beanstalk
1010

11-
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**.
11+
The Syncfusion [HTML to PDF converter](https://www.syncfusion.com/document-processing/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**.
1212

1313
## Steps to convert HTML to PDF using Blink in AWS Elastic Beanstalk
1414

File-Formats/PDF/Convert-HTML-To-PDF/Convert-HTML-to-PDF-in-AWS-Lambda.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Convert HTML to PDF in AWS Lambda | Syncfusion
3-
description: Convert HTML to PDF in AWS Lambda using Syncfusion .NET HTML converter library.
3+
description: Learn here about how to convert HTML to PDF in AWS Lambda using Syncfusion .NET HTML converter library.
44
platform: file-formats
55
control: PDF
66
documentation: UG
77
---
88

99
# Convert HTML to PDF file in AWS Lambda
1010

11-
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**.
11+
The Syncfusion [HTML to PDF converter](https://www.syncfusion.com/document-processing/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**.
1212

1313
Refer to the following steps to convert HTML to PDF in AWS Lambda
1414

File-Formats/PDF/Working-with-DigitalSignature.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4065,4 +4065,101 @@ ldoc.Close(True)
40654065

40664066
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Digital%20Signature/Get-images-from-the-existing-signed-signature-field).
40674067

4068+
## Integrating signature and timestamp certificates into the Document Secure Store (DSS).
4069+
4070+
Effortlessly Integrate **signature and timestamp** certificates into the Document Security Store (DSS) with the Essential PDF Library. This streamlined process enhances certificate management, ensuring robust validation for your PDF documents. Below is a code example demonstrating how to include certificates when creating Long-Term Validity (LTV) from an external signature, utilizing the [CreateLongTermValidity](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Security.PdfSignature.html#Syncfusion_Pdf_Security_PdfSignature_CreateLongTermValidity_System_Collections_Generic_List_System_Security_Cryptography_X509Certificates_X509Certificate2__System_Boolean_) method in the [PdfSignature](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Security.PdfSignature.html) class.
4071+
4072+
{% tabs %}
4073+
4074+
{% highlight c# tabtitle="C# [Cross-platform]" %}
4075+
4076+
//Loads an existing document
4077+
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
4078+
//Gets the signature field
4079+
PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField;
4080+
//Add public Certificates
4081+
List<X509Certificate2> x509Certificate2s = new List<X509Certificate2>();
4082+
//Create long term validation of the signature.
4083+
signatureField.Signature.CreateLongTermValidity(x509Certificate2s , true);
4084+
//Save the document into stream
4085+
MemoryStream stream = new MemoryStream();
4086+
document.Save(stream);
4087+
//Close the document
4088+
document.Close(true);
4089+
//Loads the stream from the document
4090+
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream);
4091+
// Access the Document Security Store details
4092+
PdfDocumentSecureStore pdfDocumentSecureStore = loadedDocument.DocumentSecureStore;
4093+
// Store the DSS certificates on X509Certificate2 certificates.
4094+
X509Certificate2[] cert2 = pdfDocumentSecureStore.Certificates;
4095+
foreach(X509Certificate2 cert in cert2)
4096+
{
4097+
PdfCertificate certificate = new PdfCertificate(cert);
4098+
}
4099+
// Close the document
4100+
loadedDocument.Close(true);
4101+
4102+
{% endhighlight %}
4103+
4104+
{% highlight c# tabtitle="C# [Windows-specific]" %}
4105+
4106+
//Gets the stream from the document
4107+
FileStream documentStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
4108+
//Loads an existing signed PDF document
4109+
PdfLoadedDocument document = new PdfLoadedDocument(documentStream);
4110+
//Gets the signature field
4111+
PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField;
4112+
//Add public Certificates
4113+
List<X509Certificate2> x509Certificate2s = new List<X509Certificate2>();
4114+
//Create long term validation of the signature.
4115+
signatureField.Signature.CreateLongTermValidity(x509Certificate2s, true);
4116+
//Save the document into stream
4117+
MemoryStream stream = new MemoryStream();
4118+
document.Save(stream);
4119+
//Close the document
4120+
document.Close(true);
4121+
//Loads an existing steam
4122+
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream);
4123+
//Access the Document Security Store details
4124+
PdfDocumentSecureStore pdfDocumentSecureStore = loadedDocument.DocumentSecureStore;
4125+
//Store the DSS certificates on X509Certificate2 certificates.
4126+
X509Certificate2[] cert2 = pdfDocumentSecureStore.Certificates;
4127+
foreach(X509Certificate2 cert in cert2)
4128+
{
4129+
PdfCertificate certificate = new PdfCertificate(cert);
4130+
}
4131+
// Close the document
4132+
loadedDocument.Close(true);
4133+
4134+
{% endhighlight %}
4135+
4136+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
4137+
4138+
'Loads an existing signed PDF document
4139+
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
4140+
'Gets the signature field
4141+
Dim signatureField As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField)
4142+
'Add public Certificates
4143+
Dim x509Certificate2s As List(Of X509Certificate2) = New List(Of X509Certificate2)
4144+
'Create long term validation of the signature.
4145+
signatureField.Signature.CreateLongTermValidity(x509Certificate2s, true)
4146+
Dim stream As MemoryStream = New MemoryStream
4147+
document.Save(stream)
4148+
'Close the document
4149+
document.Close(true)
4150+
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument(stream)
4151+
'Access the Document Security Store details
4152+
Dim pdfDocumentSecureStore As PdfDocumentSecureStore = loadedDocument.DocumentSecureStore
4153+
'Store the DSS certificates on X509Certificate2 certificates.
4154+
Dim cert2() As X509Certificate2 = pdfDocumentSecureStore.Certificates
4155+
For Each cert As X509Certificate2 In cert2
4156+
Dim certificate As PdfCertificate = New PdfCertificate(cert)
4157+
Next
4158+
' Close the document
4159+
loadedDocument.Close(true)
4160+
4161+
{% endhighlight %}
4162+
4163+
{% endtabs %}
4164+
40684165
N> This method retrieves the images when rendered on the signed signature field appearance; otherwise, it will return null.

File-Formats/PDF/Working-with-action.md

Lines changed: 121 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ document.Close(True)
253253
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Actions/Add-JavaScript-action-to-the-PDF-document/).
254254

255255
N> You can refer more PDF JavaScript code in **PdfJavaScriptAction** from the below developer guide.
256-
N> [https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/pdfs/acrobatsdk_jsdevguide.pdf](https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/pdfs/acrobatsdk_jsdevguide.pdf)
256+
N> [https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsdevguide/index.html](https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsdevguide/index.html)
257257

258258
### URI action
259259

@@ -779,6 +779,126 @@ document.Close(True)
779779

780780
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Actions/Reset-form-fields-in-the-PDF-document).
781781

782+
## Remote GoTo action:
783+
784+
The PdfRemoteGoToAction in a PDF document enables users to navigate to a specific destination within a remote PDF file. This feature seamlessly directs users to specific pages or locations in another PDF document.
785+
786+
{% tabs %}
787+
788+
{% highlight c# tabtitle="C# [Cross-platform]" %}
789+
790+
//Create a new PDF document
791+
PdfDocument document = new PdfDocument();
792+
//Create a new page
793+
PdfPage page = document.Pages.Add();
794+
//Create font and font style
795+
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold);
796+
//Create a new PdfButtonField
797+
PdfButtonField submitButton = new PdfButtonField(page, "submitButton");
798+
submitButton.Bounds = new RectangleF(25, 160, 100, 20);
799+
submitButton.Font = font;
800+
submitButton.Text = "Open file";
801+
submitButton.BackColor = new PdfColor(181, 191, 203);
802+
//Create a new remote destination
803+
PdfRemoteDestination remoteDestination = new PdfRemoteDestination();
804+
remoteDestination.RemotePageNumber = 3;
805+
remoteDestination.Mode = PdfDestinationMode.FitToPage;
806+
//Create a new PdfRemoteGoToAction
807+
PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination);
808+
//Set the IsNewWindow
809+
goToAction.IsNewWindow = true;
810+
//Add the action to the button.
811+
submitButton.Actions.GotFocus = goToAction;
812+
//Add the submit button to a new document
813+
document.Form.Fields.Add(submitButton);
814+
//Save the document into stream
815+
MemoryStream stream = new MemoryStream();
816+
document.Save(stream);
817+
stream.Position = 0;
818+
//Close the document
819+
document.Close(true);
820+
// Defining the ContentType for the PDF file
821+
string contentType = "application/pdf";
822+
//Define the file name
823+
string fileName = "Output.pdf";
824+
//Create a FileContentResult object by using the file contents, content type, and file name
825+
return File(stream, contentType, fileName);
826+
827+
{% endhighlight %}
828+
829+
{% highlight c# tabtitle="C# [Windows-specific]" %}
830+
831+
//Create a new PDF document
832+
PdfDocument document = new PdfDocument();
833+
//Create a new page
834+
PdfPage page = document.Pages.Add();
835+
//Create font and font style
836+
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold);
837+
//Create a new PdfButtonField
838+
PdfButtonField submitButton = new PdfButtonField(page, "submitButton");
839+
submitButton.Bounds = new RectangleF(25, 160, 100, 20);
840+
submitButton.Font = font;
841+
submitButton.Text = "Open file";
842+
submitButton.BackColor = new PdfColor(181, 191, 203);
843+
//Create a new remote destination
844+
PdfRemoteDestination remoteDestination = new PdfRemoteDestination();
845+
remoteDestination.RemotePageNumber = 3;
846+
remoteDestination.Mode = PdfDestinationMode.FitToPage;
847+
//Create a new PdfRemoteGoToAction
848+
PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination);
849+
//Set the IsNewWindow
850+
goToAction.IsNewWindow = true;
851+
//Add the goToAction
852+
submitButton.Actions.GotFocus = goToAction;
853+
//Add the submit button to a new document
854+
document.Form.Fields.Add(submitButton);
855+
//Save the document into stream
856+
MemoryStream stream = new MemoryStream();
857+
document.Save(stream);
858+
stream.Position = 0;
859+
//Close the document
860+
document.Close(true);
861+
862+
{% endhighlight %}
863+
864+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
865+
866+
'Create a new document
867+
Dim document As PdfDocument = New PdfDocument
868+
'Create a new page
869+
Dim page As PdfPage = document.Pages.Add
870+
'Create a new font and font style
871+
Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold)
872+
'Create a new Buttonfield
873+
Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton")
874+
submitButton.Bounds = New RectangleF(25, 160, 100, 20)
875+
submitButton.Font = font
876+
submitButton.Text = "Open file"
877+
submitButton.BackColor = New PdfColor(181, 191, 203)
878+
'Create a new PdfRemoteDestination
879+
Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination
880+
remoteDestination.RemotePageNumber = 3
881+
remoteDestination.Mode = PdfDestinationMode.FitToPage
882+
'Create a new PdfRemoteGoToAction
883+
Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", remoteDestination)
884+
'Set the IsNewWindow
885+
goToAction.IsNewWindow = true
886+
'Add the goToAction
887+
submitButton.Actions.GotFocus = goToAction
888+
'Add the submit button to a new document
889+
document.Form.Fields.Add(submitButton)
890+
Dim stream As MemoryStream = New MemoryStream
891+
document.Save(stream)
892+
stream.Position = 0
893+
'Close the document
894+
document.Close(true)
895+
896+
{% endhighlight %}
897+
898+
{% endtabs %}
899+
900+
You can download a complete working sample from [GitHub]
901+
782902
## Adding an action to the form field
783903

784904
Essential PDF provides support to add various actions to the form fields. The following code example illustrates how to add actions to the form field in PDF document using [PdfFieldActions](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Interactive.PdfFieldActions.html) class.

File-Formats/Presentation/Convert-PowerPoint-to-Image-in-MAUI.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ documentation: UG
88

99
# Convert PowerPoint to Image in .NET MAUI
1010

11-
Syncfusion PowerPoint is a [.NET MAUI PowerPoint library](https://www.syncfusion.com/powerpoint-framework/maui/powerpoint-library) used to create, read, edit and convert PowerPoint presentation programmatically without **Microsoft PowerPoint** or interop dependencies. Using this library, you can **convert a PowerPoint to image in .NET MAUI**.
11+
Syncfusion PowerPoint is a [.NET MAUI PowerPoint library](https://www.syncfusion.com/document-processing/powerpoint-framework/maui/powerpoint-library) used to create, read, edit and convert PowerPoint presentation programmatically without **Microsoft PowerPoint** or interop dependencies. Using this library, you can **convert a PowerPoint to image in .NET MAUI**.
1212

1313
## Prerequisites
14-
To create .NET Multi-platform App UI (.NET MAUI) apps, you need the latest versions of Visual Studio 2022 and .NET 6. For more details, refer [here](https://docs.microsoft.com/en-us/dotnet/maui/get-started/installation).
14+
To create .NET Multi-platform App UI (.NET MAUI) apps, you need the latest versions of Visual Studio 2022 and .NET 6. For more details, refer [here](https://learn.microsoft.com/en-us/dotnet/maui/get-started/installation?view=net-maui-8.0&tabs=vswin).
1515

1616
## Steps to convert PowerPoint to Image programmatically
1717

@@ -174,6 +174,6 @@ Refer the below helper files and add them into the mentioned project. These help
174174
</tr>
175175
</table>
176176

177-
Click [here](https://www.syncfusion.com/document-processing/powerpoint-framework/maui) to explore the rich set of Syncfusion PowerPoint Library (Presentation) features.
177+
Click [here](https://www.syncfusion.com/document-processing/powerpoint-framework/maui/powerpoint-library) to explore the rich set of Syncfusion PowerPoint Library (Presentation) features.
178178

179179
An online sample link to [convert PowerPoint Presentation to image](https://ej2.syncfusion.com/aspnetcore/PowerPoint/PPTXToImage#/material3) in ASP.NET Core.

File-Formats/Presentation/Convert-PowerPoint-to-Image-in-Xamarin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Step 1: Create a new C# **Xamarin.Forms** application project.
1616

1717
![Create Xamarin project](Workingwith_Xamarin/Project-Open-and-Save.png)
1818

19-
Step 2: Select a project template and required platforms to deploy the application. In this application the portable assemblies to be shared across multiple platforms, the .NET Standard code sharing strategy has been selected. For more details about code sharing refer [here](https://docs.microsoft.com/en-us/xamarin/cross-platform/app-fundamentals/code-sharing).
19+
Step 2: Select a project template and required platforms to deploy the application. In this application the portable assemblies to be shared across multiple platforms, the .NET Standard code sharing strategy has been selected. For more details about code sharing refer [here](https://learn.microsoft.com/en-us/xamarin/cross-platform/app-fundamentals/code-sharing).
2020

2121
![Create Xamarin CodeSharing Option](Workingwith_Xamarin/Template-Project-Open-and-Save.png)
2222

0 commit comments

Comments
 (0)