C# PDF Library
How to install, deploy XDoc.PDF C# PDF library to a .NET web, Windows application.
Online C# Guide for .NET XDoc.PDF Component Installation, Deployment and Distribution
Download & Install XDoc.PDF C# PDF library for .NET project
RasterEdge XDoc.PDF library includes three version of dlls
- .NET Standard 2.0
- .NET Framework 4.x
- .NET Framework 2.x and 3.x
Download DLLs on .NET Standard 2.0
You can download the XDoc.PDF trial package, which includes all RasterEdge dlls for .NET Standard 2.0.
The downloaded folder "/Bin/NetStandard2.0/" includes all dlls built by .NET Standard 2.0, and they are compatible with
- .NET 8, .NET 7, .NET 6, .NET 5, .NET Core 3.x & 2.x
- .NET Framework 4.8.1, 4.8, 4.7.2, 4.7.1, 4.7, 4.6.2
- Console, Web, and Desktop Apps
Download DLLs on .NET Framework 4.x, 3.x, and 2.x
You can download the .NET Framework 4.x, 3.x, 2.x version dll at
https://www.rasteredge.com/download-eval/xdoc-sdk-net-framework-download.php
Install PDF C# library on .NET 8, 7, 6, 5, and .NET Core web, Windows applications
It is an easy task to download and install XDoc.PDF for .NET 8, 7, 6, 5, and .NET Core applications
- Download and unzip the XDoc.PDF trial package
- Download the following Nuget Packages from Visual Studio Nuget Packages Manager
- System.Drawing.Common (>= Version 6.0.0)
- System.IO.Packaging (>= Version 6.0.0)
- Newtonsoft.Json (>= Version 11.0.2)
- WaterTrans.GlyphLoader (>= Version 1.0.0)
- In Visual Studio project Solution Explorer, right click "References", and select "Add References...".
Click "Browse...", and navigate to the unzip folder, select all dlls names start with "RasterEdge." from folder "/Bin/NetStandard2.0/"
-
Copy all VC++ DLLs (both x86 and x64 versions) manually to the same folder as the assembly "RasterEdge.Imaging.Basic.dll".
Note: the trial version dll will be expired in 40 days. If you need extend the trial period, please send request email to support@rasteredge.com
Install on .NET Framework 4.x, 3.x and 2.x projects
It is an easy task to download and install XDoc.PDF.
- Download and unzip the XDoc.PDF for .NET Framework trial package
- In your Visual Studio project Solution Explorer, right click "References", and select "Add References..."
- Click "Browse...", and navigate to the unzip folder, select all dlls names start with "RasterEdge."
Grant Temp Folder Access Permission
Purpose of the temporary working folder
Some features in the PDF C# library, such as file conversion etc., may create temporary files for storing intermediate data content.
These files would be removed automatically after these features have been finished (no matter successful or failed).
The SDK would put all such temporary files in a certain folder, which called temporary working folder, for unified management.
What happens if the folder has not been set properly
Those features required intermediate data content would be interrupted or partially completed if the application has no permissions to create file(s) in the temporary working folder.
How to set the temporary working folder for the application
By default, this temporary working folder is set to the same folder as the running application.
Users could change it through the static property 'DefaultTempFolder' in class SystemSetting.
RasterEdge.Imaging.Basic.SystemSetting.DefaultTempFolder = "D:\\Temp";
Remarks:
- It MUST grant full permissions to the target folder.
- Property value must be an absolute path.
Publish and depploy .NET Project with C# PDF library
Deploy .NET Windows Forms (WinForms) App to a local folder
- In Visual Studio 2022, go to toolbar Build > Publish Selection. Choose Folder, and click Next.
- In Specific target section, choose Folder, and click Next
- In Location section, Use the default Folder location "bin\Release\net6.0-windows\publish\", and click Finish
- Click Publish to deploy the .NET project to a local folder
- Open folder "bin\Release\net6.0-windows\publish\", copy all VC++ DLLs (both x86 and x64 versions) manually to the same folder as the assembly
"RasterEdge.Imaging.Basic.dll".
Supported .NET Versions
XDoc.PDF DLLs are built by three .NET platforms:
- .NET Standard 2.0
- .NET Framework 4.0
- .NET Framework 2.0
.NET Standard 2.0
XDoc.PDF DLLs (based on .NET Standard 2.0) are supporting the following .NET versions
- .NET and .NET Core: 8.0, 7.0, 6.0, 5.0, 3.1, 3.0, 2.2, 2.1, 2.0
- .NET Framework: 4.8.1, 4.8, 4.7.2, 4.7.1, 4.7, 4.6.2
.NET Framework 4.0
XDoc.PDF DLLs (based on .NET Framework 4.0) are supporting the following .NET versions
- .NET Framework: 4.x
.NET Framework 2.0
XDoc.PDF DLLs (based on .NET Framework 2.0) are supporting the following .NET versions
- .NET Framework: 3.x and 2.x
Microsoft Viusal C++ Compatibility
XDoc.PDF DLLs (built by .NET Framework 4.0 and .NET Framework 2.0) requires Microsoft Visual C++ runtime libraries to be installed.
The Microsoft Visual C++ Redistributable package must match your app's target architecture.
You can download Microsoft Visual C++ library here