Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
0f04bc7
985863-ug: UG documentation feedback for PDF library- Part 2
sameerkhan001 Oct 8, 2025
04eb8c4
985863-ug: Added two md files.
sameerkhan001 Oct 8, 2025
8b5061c
985863-ug: Modified 3 md files.
sameerkhan001 Oct 8, 2025
1bb765b
985863-ug: Updated four files.
sameerkhan001 Oct 9, 2025
80047fc
Merge branch 'hotfix/hotfix-v31.1.17' of https://github.com/syncfusio…
sameerkhan001 Oct 9, 2025
c95eb71
Task-824021-Exclude BlinkBinaries folder
irfanajaffer Oct 9, 2025
e5daaa0
Task-642687-Updated the Html To Pdf in linux UG
irfanajaffer Oct 9, 2025
191d993
Task-642687-- Updated with Image files
irfanajaffer Oct 9, 2025
237115d
updated title
irfanajaffer Oct 9, 2025
f8eb7e7
985863-ug: Added nine file changes.
sameerkhan001 Oct 9, 2025
c4cc78b
resolved errors
irfanajaffer Oct 9, 2025
74ed41a
Merge branch 'hotfix/hotfix-v31.1.17' of https://github.com/syncfusio…
sameerkhan001 Oct 9, 2025
9da7e2d
986588:Details provided for 'next' in styles document Editor
ManoSF4839 Oct 14, 2025
8dda4f2
Merge branch 'hotfix/hotfix-v31.2.2' into Task-824021-BlinkUG
irfanajaffer Oct 16, 2025
e7f6040
Merge branch 'hotfix/hotfix-v31.2.2' of https://github.com/syncfusion…
irfanajaffer Oct 16, 2025
02c1dc1
Merge branch 'Task-824021-BlinkUG' of https://github.com/syncfusion-c…
irfanajaffer Oct 16, 2025
c000250
Merge branch 'hotfix/hotfix-v31.2.2' into Task-642687-LinuxHtmltoPDF
irfanajaffer Oct 16, 2025
6aa31da
removed unwanted changes
irfanajaffer Oct 16, 2025
3aa61d6
Merge branch 'hotfix/hotfix-v31.2.2' into 985863-ug
sameerkhan001 Oct 17, 2025
b129e89
Merge branch '986588-nextH' of https://github.com/syncfusion-content/…
ManoSF4839 Oct 17, 2025
9f6c4ca
986588: Details provided for next in styles document Editor
ManoSF4839 Oct 17, 2025
f20afe4
985764: Update screen reader support in UG document Editor
ManoSF4839 Oct 17, 2025
1f9f004
983454: Add note in UG exported PDF Document editor
ManoSF4839 Oct 17, 2025
289d268
983454: resolved CI failures
ManoSF4839 Oct 17, 2025
793690c
Update title for PDF export documentation Ci failure
ManoSF4839 Oct 17, 2025
a4e042e
Merge pull request #1533 from syncfusion-content/Task-824021-BlinkUG
chinnumuniyappan Oct 17, 2025
2abc3b5
Merge pull request #1534 from syncfusion-content/Task-642687-LinuxHtm…
chinnumuniyappan Oct 17, 2025
c996ac5
986143-ug: Updated the SignerName details also in the Signature infor…
sameerkhan001 Oct 9, 2025
62ba33e
986143-ug: Resolved CI failures.
sameerkhan001 Oct 10, 2025
15834d5
Merge pull request #1523 from syncfusion-content/985863-ug
chinnumuniyappan Oct 17, 2025
7f2e273
985863-1: UG documentation feedback for PDF library- Part 2
sameerkhan001 Oct 10, 2025
4261c2b
985863-1: Changed the six md files.
sameerkhan001 Oct 10, 2025
2a44f3e
985863-1: Resolved CI failures.
sameerkhan001 Oct 10, 2025
c1fed9c
Merge branch 'hotfix/hotfix-v31.2.2' of https://github.com/syncfusion…
sameerkhan001 Oct 17, 2025
527d9af
Merge pull request #1538 from syncfusion-content/985863-1
chinnumuniyappan Oct 17, 2025
d13c6a7
Merge pull request #1535 from syncfusion-content/986143-ug
chinnumuniyappan Oct 17, 2025
ae5d7ca
Merge pull request #1583 from syncfusion-content/986588-nextHot
MohanaselvamJothi Oct 17, 2025
aaf5c15
Merge pull request #1584 from syncfusion-content/985764-screenlast
MohanaselvamJothi Oct 17, 2025
bb3bccf
Merge pull request #1585 from syncfusion-content/983454-imageHot
MohanaselvamJothi Oct 17, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,62 @@ Step 3: Select the function worker as .NET 8.0 isolated (Long-term support), and
![Convert HTMLToPDF Azure Functions Step3](Azure_images\Azure-function-linux\AzureFunctions3.png)

Step 4: Install the [Syncfusion.HtmlToPdfConverter.Net.Linux](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Linux/) NuGet package as a reference to your .NET Core application [NuGet.org](https://www.nuget.org/).
![Convert HTMLToPDF Azure Functions Step3](Azure_images\Azure-function-linux\Nuget-package.png)
![Convert HTMLToPDF Azure Functions Step4](Azure_images\Azure-function-linux\Nuget-package.png)

N> Starting with v16.2.0.x, if you reference Syncfusion<sup>&reg;</sup> 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<sup>&reg;</sup> license key in your application to use our components.

Step 5: Include the following namespaces in Function1.cs file.

Step 5: Create a shell file with the below commands in the project and name it as dependenciesInstall.sh. In this article, these steps have been followed to install dependencies packages.

{% highlight bash tabtitle="Shell" %}

echo "Starting dependencies installation script..."


if ! command -v rsync &> /dev/null; then
echo "rsync could not be found, installing..."
apt-get update && apt-get install -yq rsync
fi

FILE_PATH="/home/site/wwwroot/Package/usr/lib/x86_64-linux-gnu/libnss3.so"
if [ -f "$FILE_PATH" ]; then
echo "Dependencies file exists."
PACKAGE_USR="/home/site/wwwroot/Package/usr/lib/x86_64-linux-gnu"
if [ -d "$PACKAGE_USR" ]; then
echo "Copying user libraries..."
rsync -av --update /home/site/wwwroot/Package/usr/lib/ /usr/lib/
echo "Copied successfully..."
fi
else
echo "Package directory does not exist. Installing dependencies..."
apt-get update && apt-get install -yq --no-install-recommends \
libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 \
libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 \
libx11-6 libx11-xcb1 libxcb1 libxcursor1 libxdamage1 libxext6 \
libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 libnss3 libgbm1

mkdir -p /home/site/wwwroot/Package/usr/lib/x86_64-linux-gnu
mkdir -p /home/site/wwwroot/Package/lib/x86_64-linux-gnu

PACKAGE_USR="/home/site/wwwroot/Package/usr/lib/x86_64-linux-gnu"
if [ -d "$PACKAGE_USR" ]; then
echo "Copying user libraries to package..."
rsync -av /usr/lib/x86_64-linux-gnu/ /home/site/wwwroot/Package/usr/lib/x86_64-linux-gnu
fi
fi

echo "Dependencies installation script completed."

{% endhighlight %}

![Convert HTMLToPDF Azure Functions Step5](htmlconversion_images\ShellCommand.png)

Step 6: Set Copy to Output Directory as “Copy if newer” to the dependenciesInstall.sh file.

![Convert HTMLToPDF Azure Functions Step6](htmlconversion_images\CopyToNewer.png)

Step 7: Include the following namespaces in Function1.cs file.

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

Expand All @@ -39,7 +90,7 @@ Step 5: Include the following namespaces in Function1.cs file.

{% endhighlight %}

Step 6: This Azure Function converts HTML to PDF using HTTP triggers. It handles GET/POST requests, processes the HTML, and returns a PDF response.
Step 8: This Azure Function converts HTML to PDF using HTTP triggers. It handles GET/POST requests, processes the HTML, and returns a PDF response.

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

Expand Down Expand Up @@ -67,7 +118,7 @@ Step 6: This Azure Function converts HTML to PDF using HTTP triggers. It handles

{% endhighlight %}

step 7: Use the following code example in the HtmlToPdfConvert method to convert HTML to a PDF document using the [Convert](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html#Syncfusion_HtmlConverter_HtmlToPdfConverter_Convert_System_String_) method in the [HtmlToPdfConverter](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html) class. The Blink command line arguments are configured based on the given [CommandLineArguments](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.BlinkConverterSettings.html#Syncfusion_HtmlConverter_BlinkConverterSettings_CommandLineArguments) property of the [BlinkConverterSettings](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.BlinkConverterSettings.html) class.
step 9: Use the following code example in the HtmlToPdfConvert method to convert HTML to a PDF document using the [Convert](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html#Syncfusion_HtmlConverter_HtmlToPdfConverter_Convert_System_String_) method in the [HtmlToPdfConverter](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html) class. The Blink command line arguments are configured based on the given [CommandLineArguments](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.BlinkConverterSettings.html#Syncfusion_HtmlConverter_BlinkConverterSettings_CommandLineArguments) property of the [BlinkConverterSettings](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.BlinkConverterSettings.html) class.

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

Expand Down Expand Up @@ -99,6 +150,7 @@ public byte[] HtmlToPdfConvert(string htmlText)
Bottom = 20
}
};

htmlConverter.ConverterSettings = settings;

// Convert HTML to PDF
Expand Down Expand Up @@ -127,7 +179,7 @@ N> settings.CommandLineArguments.Add("--disable-setuid-sandbox");
N> ```
N> These arguments are only required when using **older versions** of the library that depend on Blink in sandbox-restricted environments.

Step 8: This code is designed to ensure that the necessary Linux packages for HTML to PDF conversion are installed if the operating system is Linux. It adjusts file permissions and executes a shell script to carry out the installation.
Step 10: This code is designed to ensure that the necessary Linux packages for HTML to PDF conversion are installed if the operating system is Linux. It adjusts file permissions and executes a shell script to carry out the installation.

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

Expand Down Expand Up @@ -195,7 +247,7 @@ private static void InstallLinuxPackages()
{% endhighlight %}


Step 9: Add the following helper methods to copy and set permission to the BlinkBinariesLinux folder.
Step 11: Add the following helper methods to copy and set permission to the BlinkBinariesLinux folder.

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

Expand Down Expand Up @@ -257,7 +309,7 @@ private static void SetExecutablePermission(string tempBlinkDir)

{% endhighlight %}

Step 10: Include the below enum in the Function1.cs file.
Step 12: Include the below enum in the Function1.cs file.

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

Expand Down Expand Up @@ -318,4 +370,5 @@ An online sample link to [convert HTML to PDF document](https://ej2.syncfusion.c

Click [here](https://www.syncfusion.com/document-processing/pdf-framework/net-core/html-to-pdf) to explore the rich set of Syncfusion<sup>&reg;</sup> 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.

An online sample link to [convert HTML to PDF document](https://ej2.syncfusion.com/aspnetcore/PDF/HtmltoPDF#/material3) in ASP.NET Core.
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
Expand Up @@ -1546,5 +1546,26 @@ N> We have option to exclude the default Blink binaries from the installation pa

</PackageReference>

{% endhighlight %}
{% endtabs %}

## How to Exclude BlinkBinaries or Runtime Files in Build or Deployment

The runtime files, or blink binaries, will be copied into a bin or published folder while building and publishing the application.
By including the <ExcludeAssets>native</ExcludeAssets> option in the package reference of the csproj file, you can exclude the runtime files or blink binaries from being copied into the bin or publish folder while building and publishing the application. But you need to place the BlinkBinaries in the server disk and set the BlinkPath in the BlinkConverterSettings to perform the conversion.

N> Using this approach, you can reduce the deployment size on your own servers.

Refer to the following package reference:

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

<ItemGroup>
<PackageReference Include="Syncfusion.HtmlToPdfConverter.Net.Windows" Version="31.1.23">
<ExcludeAssets>native</ExcludeAssets>
</PackageReference>
</ItemGroup>

{% endhighlight %}
{% endtabs %}
2 changes: 1 addition & 1 deletion Document-Processing/PDF/PDF-Library/NET/Split-Documents.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ loadedDocument.Close(true);
Imports Syncfusion.Pdf.Parsing

'Create the values.
Dim values As Integer(,) = New Integer(,) {{2, 5},{8, 10}}
Dim values As Integer(,) = New Integer(,) {{2, 5}, {8, 10}}
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Set a output path
Expand Down
Loading