Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
8247b98
Merge pull request #1825 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 1, 2024
6038260
Added new md file for Working-with-Supported-LaTeX
Feb 2, 2024
3434117
Merge pull request #1832 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 5, 2024
18f832c
Update Release notes md file - Dev
Feb 6, 2024
ba5187e
Merge pull request #1835 from syncfusion-content/IN-179961-Release-no…
Poovarasan-Karthikeyan Feb 6, 2024
dea7f96
Merge pull request #1846 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 8, 2024
28e55fa
Merge pull request #1853 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 10, 2024
3cb8949
Merge pull request #1856 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 12, 2024
17566dd
Note content update for 24.2.5 - file formats
Feb 13, 2024
8a6af58
Merge pull request #1857 from syncfusion-content/Release-Notes-Update
Poovarasan-Karthikeyan Feb 13, 2024
68625e6
Merge pull request #1862 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 13, 2024
61d0ec6
Merge pull request #1866 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 14, 2024
11a4e74
Update alert content 24.2.6 in FileFormats
Feb 15, 2024
99085f2
Merge pull request #1868 from syncfusion-content/IN-180208-Release-no…
Poovarasan-Karthikeyan Feb 15, 2024
a2d73de
Merge pull request #1870 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 15, 2024
f9e9cae
Merge pull request #1873 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 17, 2024
342133f
Merge pull request #1876 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 19, 2024
fd85796
Release notes alert update - 24.2.7
Feb 20, 2024
4e4cdc9
Merge pull request #1878 from syncfusion-content/Releasse-Notes
Poovarasan-Karthikeyan Feb 20, 2024
b465472
Merge branch 'development' of https://github.com/syncfusion-content/f…
HazaraShaik Feb 21, 2024
210f084
Addressed the feedbacks
AnburasanSaravanan Feb 21, 2024
f2de295
ES-864081-Crop-Picture
Feb 22, 2024
da18a18
Modify the codes
Feb 22, 2024
f5f2f6c
ES-868571-Modify existing code slide.add API in presentation
Feb 22, 2024
9794442
Merge pull request #1886 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 23, 2024
1a620cd
Merge pull request #1890 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 25, 2024
c0bf010
Merge pull request #1885 from syncfusion-content/ES-868571-Modfy-Exis…
MohanaselvamJothi Feb 26, 2024
dbbd9ce
Merge pull request #1827 from syncfusion-content/ES-868708-LaTeX-Symbols
MohanaselvamJothi Feb 26, 2024
a6b87aa
Merge pull request #1893 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Feb 26, 2024
1f7e361
Feedback addressed
Feb 27, 2024
0851473
Note content update - dev
Feb 27, 2024
e11b8f9
Updated UG documentation content to support integration of signature …
AntroSF4052 Feb 27, 2024
153c620
Updated Jenkinsfile
SyncfusionBuild Feb 27, 2024
a19b6cd
Merge pull request #1884 from syncfusion-content/ES-864081-Crop-Picture
MohanaselvamJothi Feb 29, 2024
4a108cd
Merge branch 'development' of https://github.com/syncfusion-content/f…
AntroSF4052 Feb 29, 2024
92947b7
Merge pull request #1899 from syncfusion-content/Task_860867
chinnumuniyappan Feb 29, 2024
113afb1
Merge pull request #1896 from syncfusion-content/Release-Notes-Update
Poovarasan-Karthikeyan Feb 29, 2024
f24afa1
ES-865474-Table0fFigures
Mar 5, 2024
9fe2c2a
Added screenshots
Mar 5, 2024
b03c316
Renamed
Mar 5, 2024
c9df933
Alt text changed
Mar 6, 2024
2005b00
Update Release version 24.2.9 - dev
Mar 6, 2024
b6d9f67
Remove github link
Mar 6, 2024
f24c200
Content modified
Mar 6, 2024
afbfca6
Feedbacks addressed
Mar 6, 2024
cf7c9dc
Add API link
Mar 6, 2024
9479e8c
Modify crop value
Mar 6, 2024
2db5335
Description modified
Mar 7, 2024
2f2fb7a
Description modified
Mar 7, 2024
e5fe7e4
Merge pull request #1913 from syncfusion-content/ES-865474-TableofFig…
MohanaselvamJothi Mar 7, 2024
3724f03
Remote GoTo action UG
AntroSF4052 Mar 11, 2024
c92425b
Added the release notes MD file and corresponding node entry in the T…
DeepakRajSundar Mar 11, 2024
64304fc
Merge branch 'development' of https://github.com/syncfusion-content/f…
AntroSF4052 Mar 11, 2024
ce8ddde
Resolved cI failure.
AntroSF4052 Mar 11, 2024
bb6da24
Merge pull request #1931 from syncfusion-content/Task_874816
chinnumuniyappan Mar 11, 2024
b6ea37b
Crop value modified.
Mar 11, 2024
7cea25c
Merge pull request #1932 from syncfusion-content/ES-864081-Crop-pictures
MohanaselvamJothi Mar 11, 2024
a3ceb4b
Merge branch 'hotfix/hotfix-v24.2.3' into development
DeepakRajSundar Mar 12, 2024
163c7cd
Merge remote-tracking branch 'remotes/origin/hotfix/hotfix-v24.2.3' i…
DeepakRajSundar Mar 12, 2024
ce3700d
SEO-180837-File-Formats-Redirection
Scholar-jaruha Mar 13, 2024
d97fad9
876039: Resolve UG Documentation staging error.
Sri-hari-haran-g Mar 13, 2024
7229d7a
Merge pull request #1939 from syncfusion-content/876039_dev
chinnumuniyappan Mar 13, 2024
10fb4dc
Moved to Development
Mar 13, 2024
4718679
Moved to development
Mar 13, 2024
8e00ab1
Update FAQ.md
Mar 13, 2024
cf0e010
Merge pull request #1942 from syncfusion-content/ES-868612-Leader-lin…
MohanaselvamJothi Mar 13, 2024
3fe2395
Merge pull request #1943 from syncfusion-content/ES-259460-FAQ-Preser…
MohanaselvamJothi Mar 13, 2024
76f5dbb
876039: 'tabs' tag was never closed issue resolved.
Sri-hari-haran-g Mar 13, 2024
43a3ae9
Remove unwanted spaces
Mar 13, 2024
a5187e2
Merge pull request #1944 from syncfusion-content/876039
chinnumuniyappan Mar 13, 2024
458e93d
Merge pull request #1945 from syncfusion-content/ES-865474-TableofCon…
MohanaselvamJothi Mar 13, 2024
6f6cd6a
To fix CI issue
Scholar-jaruha Mar 14, 2024
720de71
IN-181125 Added the release notes MD file for v25.1.35 and correspond…
DeepakRajSundar Mar 14, 2024
d53de85
876039: Resolve UG Documentation staging error.
Sri-hari-haran-g Mar 14, 2024
d0b84a4
Merge pull request #1948 from syncfusion-content/876039_ug
chinnumuniyappan Mar 14, 2024
9ffbaac
Update FAQ.md
MohanaselvamJothi Mar 14, 2024
7f610a2
Update FAQ.md
MohanaselvamJothi Mar 14, 2024
c870250
Updated as per hotfix
MohanaselvamJothi Mar 14, 2024
2c159a9
Merge pull request #1951 from syncfusion-content/ES-865474-TableofCon…
MohanaselvamJothi Mar 14, 2024
c7fee39
Merge pull request #1946 from Syncfusion-Content/hotfix/hotfix-v24.2.3
SyncfusionBuild Mar 14, 2024
2518263
Update Convert-HTML-to-PDF-in-AWS-Lambda.md
Scholar-jaruha Mar 14, 2024
20f6bad
Update Convert-HTML-to-PDF-in-AWS-Lambda.md
Scholar-jaruha Mar 14, 2024
661811c
Update Convert-HTML-to-PDF-in-AWS-Lambda.md
Scholar-jaruha Mar 14, 2024
78e3be8
876039: Resolve UG Documentation staging error.
Sri-hari-haran-g Mar 14, 2024
b44f991
876039: Resolve UG Documentation staging error.
Sri-hari-haran-g Mar 14, 2024
2b07d71
Merge pull request #1955 from syncfusion-content/876039_hotfix
chinnumuniyappan Mar 14, 2024
1515422
Merge pull request #1957 from syncfusion-content/876039_development
chinnumuniyappan Mar 14, 2024
01aca96
Merge pull request #1941 from syncfusion-content/SEO-180837-File-Form…
Aishwarya-Ganesan Mar 14, 2024
4d7bdb4
Merge remote-tracking branch 'remotes/origin/hotfix/hotfix-v24.2.3' i…
DeepakRajSundar Mar 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion File-Formats-toc.html

Large diffs are not rendered by default.

574 changes: 574 additions & 0 deletions File-Formats/DocIO/Working-with-Table-Of-Contents.md

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
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.
description: Learn how to 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**.
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**.

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: Convert HTML to PDF in AWS Lambda | Syncfusion
description: Convert HTML to PDF in AWS Lambda using Syncfusion .NET HTML converter library.
description: Learn here about how to 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**.
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**.

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

Expand Down
39 changes: 28 additions & 11 deletions File-Formats/PDF/Convert-HTML-To-PDF/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ You can set the runtimes folder path explicitly in BlinkPath property in BlinkCo
<br/><br/>
Ex path: <i>C:\HtmlConversion\HTMl-to-PDF\HTMl-to-PDF\bin\Debug\net7.0\runtimes\win-x64\native\</i>
<br/><br/>
{% highlight c# tabtitle="C# [Cross-platform]" %}
{% tabs %}
{% highlight C# %}

//Initialize the HTML to PDF converter.
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
Expand All @@ -52,6 +53,7 @@ document.Save(fileStream);
document.Close(true);

{% endhighlight %}
{% endtabs %}
</td>
</tr>

Expand Down Expand Up @@ -137,13 +139,15 @@ Also, please add the following command line arguments in our converter setting.
<table>
<tr>
<td>
{% highlight %}
{% tabs %}
{% highlight C# tabtitle="C#" %}

//Set command line arguments to run without sandbox.
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");

{% endhighlight %}
{% endtabs %}
</td>
</tr>
</table>
Expand Down Expand Up @@ -247,12 +251,14 @@ blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
</th>
<td>To overcome the exception, you can add read, write, and execute permissions for the temporary folder. Refer to the following code sample to set the temp folder.
<br><br/>
{% highlight %}
{% tabs %}
{% highlight C# tabtitle="C#" %}

BlinkConverterSettings settings = new BlinkConverterSettings();
settings.TempPath = "D://MyProject//bin";

{% endhighlight %}
{% endtabs %}
</td>
</tr>

Expand Down Expand Up @@ -330,7 +336,8 @@ Check the HTML file or URL is rendered properly in Chrome browser's print previe
<br><br/>
<img src="htmlconversion_images/Troubleshooting_webpage_exception_Linux.png" alt="ExcludeAssets">
<br><br/>
{% highlight %}
{% tabs %}
{% highlight C# tabtitle="C#" %}

COPY . /app
WORKDIR /app
Expand All @@ -339,6 +346,7 @@ RUN chmod +x /app/runtimes/linux/native/chrome && \
chmod +x /app/runtimes/linux/native/chrome-wrapper

{% endhighlight %}
{% endtabs %}
</td>
</tr>
</table>
Expand All @@ -362,12 +370,14 @@ RUN chmod +x /app/runtimes/linux/native/chrome && \
</th>
<td>To overcome this issue, add suitable delay for the conversion using the <a href="https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.BlinkConverterSettings.html#Syncfusion_HtmlConverter_BlinkConverterSettings_AdditionalDelay">AdditionalDelay</a> property of the HTMLConverter.
<br><br/>
{% highlight %}
{% tabs %}
{% highlight C# tabtitle="C#" %}

BlinkConverterSettings settings = new BlinkConverterSettings();
settings.AdditionalDelay = 4000;

{% endhighlight %}
{% endtabs %}
</td>
</tr>

Expand Down Expand Up @@ -431,12 +441,14 @@ Refer to this <a href="https://www.syncfusion.com/kb/10258/how-to-convert-html-t
</th>
<td>You can able to bypass the invalid SSL certificate errors using the command line arguments property of Blink converter settings.
<br><br/>
{% highlight %}
{% tabs %}
{% highlight C# tabtitle="C#" %}

BlinkConverterSettings settings = new BlinkConverterSettings();
settings.CommandLineArguments.Add("--ignore-certificate-errors");

{% endhighlight %}
{% endtabs %}
</td>
</tr>
</table>
Expand All @@ -461,13 +473,15 @@ settings.CommandLineArguments.Add("--ignore-certificate-errors");
</th>
<td>We can resolve this permission related failure in the Blink rendering engine using below command line arguments in our converter settings.
<br><br/>
{% highlight %}
{% tabs %}
{% highlight C# tabtitle="C#" %}

//Set command line arguments to run without sandbox.
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");

{% endhighlight %}
{% endtabs %}
</td>
</tr>
</table>
Expand Down Expand Up @@ -591,7 +605,7 @@ To resolve this issue, we can install the chromium using the docker file and set
Docker File:<br><br>
{% tabs %}

{% highlight %}
{% highlight C# tabtitle="C#" %}

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base

Expand All @@ -615,9 +629,12 @@ Docker File:<br><br>

{% endhighlight %}

{% endtabs %}

Code snippet:
{% tabs %}

{% highlight %}
{% highlight C# tabtitle="C#" %}

BlinkConverterSettings settings = new BlinkConverterSettings();

Expand Down Expand Up @@ -657,7 +674,7 @@ To resolve this issue, we can add inline styles in element. However, we have att

{% tabs %}

{% highlight c# tabtitle="C# [Cross-platform]" %}
{% highlight C# tabtitle="C#" %}

HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
//Initialize blink converter settings.
Expand Down Expand Up @@ -698,7 +715,7 @@ You can downloaded a complete working sample from [GitHub](https://github.com/Sy

{% tabs %}

{% highlight %}
{% highlight C# %}

//Set command line arguments to run without the sandbox.

Expand Down
97 changes: 97 additions & 0 deletions File-Formats/PDF/Working-with-DigitalSignature.md
Original file line number Diff line number Diff line change
Expand Up @@ -4065,4 +4065,101 @@ ldoc.Close(True)

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

## Integrating signature and timestamp certificates into the Document Secure Store (DSS).

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.

{% tabs %}

{% highlight c# tabtitle="C# [Cross-platform]" %}

//Loads an existing document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Gets the signature field
PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField;
//Add public Certificates
List<X509Certificate2> x509Certificate2s = new List<X509Certificate2>();
//Create long term validation of the signature.
signatureField.Signature.CreateLongTermValidity(x509Certificate2s , true);
//Save the document into stream
MemoryStream stream = new MemoryStream();
document.Save(stream);
//Close the document
document.Close(true);
//Loads the stream from the document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream);
// Access the Document Security Store details
PdfDocumentSecureStore pdfDocumentSecureStore = loadedDocument.DocumentSecureStore;
// Store the DSS certificates on X509Certificate2 certificates.
X509Certificate2[] cert2 = pdfDocumentSecureStore.Certificates;
foreach(X509Certificate2 cert in cert2)
{
PdfCertificate certificate = new PdfCertificate(cert);
}
// Close the document
loadedDocument.Close(true);

{% endhighlight %}

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

//Gets the stream from the document
FileStream documentStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
//Loads an existing signed PDF document
PdfLoadedDocument document = new PdfLoadedDocument(documentStream);
//Gets the signature field
PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField;
//Add public Certificates
List<X509Certificate2> x509Certificate2s = new List<X509Certificate2>();
//Create long term validation of the signature.
signatureField.Signature.CreateLongTermValidity(x509Certificate2s, true);
//Save the document into stream
MemoryStream stream = new MemoryStream();
document.Save(stream);
//Close the document
document.Close(true);
//Loads an existing steam
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream);
//Access the Document Security Store details
PdfDocumentSecureStore pdfDocumentSecureStore = loadedDocument.DocumentSecureStore;
//Store the DSS certificates on X509Certificate2 certificates.
X509Certificate2[] cert2 = pdfDocumentSecureStore.Certificates;
foreach(X509Certificate2 cert in cert2)
{
PdfCertificate certificate = new PdfCertificate(cert);
}
// Close the document
loadedDocument.Close(true);

{% endhighlight %}

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

'Loads an existing signed PDF document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Gets the signature field
Dim signatureField As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField)
'Add public Certificates
Dim x509Certificate2s As List(Of X509Certificate2) = New List(Of X509Certificate2)
'Create long term validation of the signature.
signatureField.Signature.CreateLongTermValidity(x509Certificate2s, true)
Dim stream As MemoryStream = New MemoryStream
document.Save(stream)
'Close the document
document.Close(true)
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument(stream)
'Access the Document Security Store details
Dim pdfDocumentSecureStore As PdfDocumentSecureStore = loadedDocument.DocumentSecureStore
'Store the DSS certificates on X509Certificate2 certificates.
Dim cert2() As X509Certificate2 = pdfDocumentSecureStore.Certificates
For Each cert As X509Certificate2 In cert2
Dim certificate As PdfCertificate = New PdfCertificate(cert)
Next
' Close the document
loadedDocument.Close(true)

{% endhighlight %}

{% endtabs %}

N> This method retrieves the images when rendered on the signed signature field appearance; otherwise, it will return null.
Loading