You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

EvoPdf.RtfToPdf

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

EvoPdf.RtfToPdf

EVO RTF to PDF Library for .NET can be easily integrated in your applications targeting the .NET Framework to create PDF documents from RTF documents. This version of the library is compatible with .NET Framework on Windows platforms. For .NET Core and .NET Standard, .NET Framework 4.6.2 and above applications on Windows you can use the Word to PDF library from EvoPdf.WordToPdf.NetCore NuGet package. EVO RTF to PDF Library for .NET is compatible with Windows platforms which support .NET Framework 4.0 and above, including: * .NET Framework 4.0 up to 4.6.1 * Windows 32-bit (x86) and 64-bit (x64) * Azure Cloud Services and Azure Virtual Machines * Web, Console and Desktop applications Main Features: * Convert RTF strings to PDF documents * Convert RTF files to PDF documents * Set PDF page size and orientation * Add header and footer to the PDF document

10.0.0
nugetNuGet
Version published
Maintainers
1
Created
Source

EVO RTF to PDF Library for .NET

EVO RTF to PDF Library for .NET can be easily integrated in your applications targeting the .NET Framework to create PDF documents from RTF documents. You can see the http://www.evopdf.com/rtf-to-pdf-converter.aspx product page for a complete list of library features.

This version of the library is compatible with .NET Framework on Windows platforms.

For .NET Core and .NET Standard, .NET Framework 4.6.2 and above applications on Windows you can use the Word to PDF library from EvoPdf.WordToPdf.NetCore NuGet package.

Main Features

  • Convert RTF strings to PDF documents
  • Convert RTF files to PDF documents
  • Set PDF page size and orientation
  • Add header and footer to the PDF document

Compatibility

EVO RTF to PDF Library for .NET is compatible with Windows platforms which support .NET Framework 4.0 and above, including:

  • .NET Framework 4.0 up to 4.6.1
  • Windows 32-bit (x86) and 64-bit (x64)
  • Azure Cloud Services and Azure Virtual Machines
  • Web, Console and Desktop applications

Getting Started

After the reference to library was added to your project you are now ready to start writing code to convert RTF to PDF in your .NET application. You can copy the C# code lines from the section below to create a PDF document from a RTF document and save the resulted PDF to a memory buffer for further processing, to a PDF file or send it to browser for download in ASP.NET applications.

C# Code Samples

At the top of your C# source file add the 'using EvoPdf.RtfToPdf;' statement to make available the EVO RTF to PDF API for your .NET application.

// add this using statement at the top of your C# file
using EvoPdf.RtfToPdf;

To convert a RTF file to a PDF file you can use the C# code below.

// create the converter object in your code where you want to run conversion
PdfConverter converter = new PdfConverter();

// convert the RTF file to a PDF file
converter.SavePdfFromRtfFileToFile("my_rtf_file_path", "RtfToFile.pdf");

To convert a RTF file to a PDF document in a memory buffer and then save it to a file you can use the C# code below.

// create the converter object in your code where you want to run conversion
PdfConverter converter = new PdfConverter();

// convert a RTF file to a memory buffer
byte[] rtfToPdfBuffer = converter.GetPdfBytesFromRtfFile("my_rtf_file_path");

// write the memory buffer to a PDF file
System.IO.File.WriteAllBytes("RtfToMemory.pdf", rtfToPdfBuffer);

To convert in your ASP.NET MVC applications a RTF file to a PDF document in a memory buffer and then send it for download to browser you can use the C# code below.

// create the converter object in your code where you want to run conversion
PdfConverter converter = new PdfConverter();

// convert a RTF file to a memory buffer
byte[] rtfToPdfBuffer = converter.GetPdfBytesFromRtfFile("my_rtf_file_path");

FileResult fileResult = new FileContentResult(rtfToPdfBuffer, "application/pdf");
fileResult.FileDownloadName = "RtfToPdf.pdf";
return fileResult;

To convert in your ASP.NET Web Forms application a RTF file to a PDF document in a memory buffer and then send it for download to browser you can use the C# code below.

// create the converter object in your code where you want to run conversion
PdfConverter converter = new PdfConverter();

// convert a RTF file to a memory buffer
byte[] rtfToPdfBuffer = converter.GetPdfBytesFromRtfFile("my_rtf_file_path");

HttpResponse httpResponse = HttpContext.Current.Response;
httpResponse.AddHeader("Content-Type", "application/pdf");
httpResponse.AddHeader("Content-Disposition",
    String.Format("attachment; filename=RtfToPdf.pdf; size={0}",
    rtfToPdfBuffer.Length.ToString()));
httpResponse.BinaryWrite(rtfToPdfBuffer);
httpResponse.End();

Free Trial

You can download the full EVO RTF to PDF Converter for .NET Framework package from http://www.evopdf.com/download.aspx page of the website.

The package for .NET Framework contains the product binaries, demo Visual Studio project with full C# code for Windows Forms and ASP.NET Web Forms targeting .NET Framework 4 and later versions, the library documentation in CHM format.

You can evaluate the library for free as long as it is needed to ensure that the solution fits your application needs.

Licensing

The EVO PDF Software licenses are perpetual which means they never expire for a version of the product and include free maintenance for the first year. You can find more details about licensing in http://www.evopdf.com/buy.aspx page of the website.

Support

For technical and sales questions or for general inquiries about our software and company you can contact us using the email addresses from http://www.evopdf.com/contact.aspx page of the website.

Keywords

rtf

FAQs

Package last updated on 14 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.