Use IronPDF with in-Engine Mode

Difference between Native & Engine

IronPDF has some performance-intensive functions that you may choose to run remotely. While IronPDF does not require IronPdfEngine to run, setting up IronPdfEngine as a remote service is an optional way to avoid platform-specific Chrome compatibility issues on older operating systems and mobile environments.

Get started with IronPDF

Start using IronPDF in your project today with a free trial.

First Step:
green arrow pointer


How using Engine changes the way you code with IronPDF

When using the Engine configuration, we recommend installing IronPdf.Slim instead of the full IronPdf package from NuGet, as the Engine manages all the extra bulk included in the Native package.

Install-Package IronPdf.Slim

After installing IronPdf.Slim, configure the connection settings by pointing IronPDF to your IronPdfEngine instance. Add the following code at the startup of your application (or before calling any IronPDF method):

Extra Line of Configuration Code to add to your C# code

Assuming that IronPdfEngine runs remotely at 123.456.7.8:33350:

// Establish a connection with the remote IronPdfEngine
// Remember to replace the IP address and port with your actual server details
Installation.ConnectToIronPdfHost(
    IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350")
);

// Additional code for your application
// Establish a connection with the remote IronPdfEngine
// Remember to replace the IP address and port with your actual server details
Installation.ConnectToIronPdfHost(
    IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350")
);

// Additional code for your application
' Establish a connection with the remote IronPdfEngine
' Remember to replace the IP address and port with your actual server details
Installation.ConnectToIronPdfHost(IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350"))

' Additional code for your application
$vbLabelText   $csharpLabel

How does IronPdfEngine Work?

IronPdfEngine is a containerized server designed to manage various IronPDF operations, including creating, writing, editing, and reading PDFs, all using the gRPC protocol. Built as a self-contained C# .NET application, IronPdfEngine operates independently, eliminating the need for the .NET runtime during execution. We handle the gRPC connection for you so you can focus on the coding!

Other clarifications for IronPdfEngine

IronPdf .NET does not require IronPdfEngine to run. IronPdfEngine is just an optional way to use IronPdf. By default, IronPdf for .NET will not use IronPdfEngine.

Please note
Each version of IronPdf for .NET requires a specific version of IronPdfEngine. Cross-version support is not available. For IronPdf for .NET, the required version of IronPdfEngine will always match. For example, IronPdf 2024.2.2 will use IronPdfEngine 2024.2.2

IronPdf .NET with Remote IronPdfEngine

The IronPdf.slim NuGet package is the only package needed to use IronPdf for .NET with Remote IronPdfEngine.

Please note
If you are using IronPdf or IronPdf.Linux, you may use IronPdf.slim instead to reduce your application size.

Assuming that IronPdfEngine runs remotely at 123.456.7.8:33350.

Install IronPdf using NuGet:

Install-Package IronPdf

After installing IronPdf.slim, you just need to tell IronPdf where IronPdfEngine is (please make sure that address is accessible, not blocked by firewall). Use the IronPdfConnectionConfiguration class to configure the connection settings. Add the below code to the initial stage of your application (or just before calling any IronPdf method).

// Connect to the remote IronPdfEngine
Installation.ConnectToIronPdfHost(
    IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350")
);
// Connect to the remote IronPdfEngine
Installation.ConnectToIronPdfHost(
    IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350")
);
' Connect to the remote IronPdfEngine
Installation.ConnectToIronPdfHost(IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350"))
$vbLabelText   $csharpLabel

Simple as that! After this, your application will be connected to the Remote IronPdfEngine!


IronPdfEngine Limitations

  • Currently, IronPdfEngine does not support horizontal scaling yet (load balancing with multiple instances) because we store the processing PDF file binaries inside the server memory and use PdfDocumentId for communicating between server and client. This also minimizes bandwidth usage and increases the processing speed.
  • To run IronPdfEngine Docker remotely, you need to ensure that the IronPdfEngine port is reachable.
  • IronPdfEngine Docker running on Linux x64 (Debian) using official ubuntu:22.04 based images may produce PDF output that is slightly different from what you would get running IronPdf locally due to different OS behavior.
  • Since IronPdfEngine Docker is Linux-based, it requires Linux Containers daemon (select Switch to Linux Containers if you are using Windows).
  • IronPdfEngine binaries are not cross-platform, so we build them for each platform specifically.
  • Cross-version support is not available.

Frequently Asked Questions

What is the core engine used for managing PDF operations remotely?

IronPdfEngine is a containerized server designed to manage various IronPDF operations using the gRPC protocol. It allows for remote execution of PDF generation and manipulation tasks.

Do I need the remote server component to use the PDF library?

No, IronPdfEngine is optional. IronPDF for .NET can run without IronPdfEngine, which is used primarily for remote execution to avoid platform-specific issues.

How does the remote engine enhance PDF generation?

IronPdfEngine allows you to run PDF generation tasks remotely, which can help in avoiding compatibility issues with older systems and mobile environments.

What is the difference between the PDF library and its remote server component?

IronPdf is the library for PDF generation and manipulation, while IronPdfEngine is an optional server component that can run these processes remotely.

What package should I install to use the remote server component?

You should install the IronPdf.Slim package from NuGet when using IronPdfEngine as it includes only the necessary components.

How do I connect my application to a remote server for PDF operations?

Use the IronPdfConnectionConfiguration class to configure the connection settings in your application, pointing it to the remote IronPdfEngine server.

Are there any limitations using the remote server for PDF operations?

Yes, IronPdfEngine does not support horizontal scaling, requires the Linux Containers daemon for Docker on Windows, and the binaries are platform-specific with no cross-version support.

What are the benefits of using the remote server with the PDF library?

Using IronPdfEngine allows for remote execution of PDF tasks, potentially reducing platform-specific issues and improving performance in certain environments.

Can the remote server be used on Linux systems?

Yes, IronPdfEngine can be run on Linux systems, specifically using official Ubuntu-based Docker images.

Is it necessary to update the remote server component when updating the PDF library?

Yes, each version of IronPDF requires a matching version of IronPdfEngine as cross-version support is not available.

Chaknith Bin
Software Engineer
Chaknith works on IronXL and IronBarcode. He has deep expertise in C# and .NET, helping improve the software and support customers. His insights from user interactions contribute to better products, documentation, and overall experience.