• PDF Editor

    edit PDF file

    Powerful PDF Editor helps you edit any PDF file just like in a Word Processor. You can modify text content, edit images and watermark, and manage pages with adding, deleting, and extracting pages to create new PDF.

Linux RTF to PDF

create PDF from RTF

Is there any possibility to convert RTF to PDF file via the command line on Linux?

RTF format is wide supported by all major text editors. It ideally suits for sharing text information between different programs and platforms. But if you need to protect it from copying or editing, it is reasonable to convert RTF to PDF. We looked around but can’t seem to find a good solution on Linux.

Linux RTF to PDF Converter

The Linux RTF to PDF Metamorphosis .Net is just a class library. To deploy it you will need only two lines of code. By the instrumentality of our C# assembly you will add these functions into your application:

  • Convert RTF to PDF managed C# library
  • Convert string, url, or file HTML, XHTML to PDF;
  • Convert string or file Text and RTF to PDF;
  • Split and merge PDF documents
  • Create PDF without Adobe Acrobat or MS Office

Free Trial DownloadBuy Now | From $339.00

PDF Creator Linux


Why We Choose Linux RTF to PDF Converter

Study formats such PDF, RTF, and HTML is not a simple matter. Therefore, much other converting components use standard Windows-dlls. For example, to parse HTML can be used mshtml.dll which comes with Internet Explorer.

If you’re the one who faces the problem converting RTF to PDF on Linux, don’t worry, this mufti-platform Mac, Windows, Linux RTF to PDF Converter could help you. The program ia called PDF Metamorphosis .NET, which is a C# library component to convert RTF to PDF in C# on Linux, Mac, Windows platform. It can also batch convert Text, XHTML and HTML to PDF with tables, images, fonts, colors and text formatting completely.

With this unique RTF to PDF converter, you don’t need any other dlls or dependencies. Our component is fully independent and can be used in Meduim Trust level. It could open the HTML or XHTML file with CSS, or even download it from Internet. Read the contents of HTML, understand all the tags and transform it to PDF format.

This Windows, Mac Linux RTF to PDF Converter can read HTML and RTF documents directly and convert RTF to PDF without Adobe Acrobat® or MS Office®. By the way, you can batch convert RTF to PDF in one conversion.

With the help of “PDF Metamorphosis .Net”, any .Net application can easily transform RTF documents to PDF format. For example, to convert a RTF to PDF in C# you will only need to add a reference to the PdfMetamorphosis.dll and type a few lines of code:

SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();

string rtfPath = @"c:\Crime and Punishment.rtf";
string pdfPath = @"c:\Crime and Punishment.pdf";

p.RtfToPdfConvertFile(rtfPath, pdfPath);

The library gives you a full set of API to convert RTF to PDF and completely retains the document structure. Furthermore, during conversion to PDF you may adjust following:

  • Set page size, orientation and margins.
  • Set a single font face, size and color for your PDF document.
  • Add custom headers and footers.
  • Add page numbering.
  • Add custom watermarks to your PDF.
  • Specify the version of produced PDF.
  • Embed all fonts inside PDF.

Convert RTF to PDF in C#, VB.Net and ASP.Net

rtf format

Input RTF documents

  • Reads all types of RTF documents 1.0 – 1.9.1
  • Owns RTF parser.

rtf format

Output PDF documents

  • Creates different types of PDF, including PDF/A.
  • Custom page properties, header, footer, page numbers.
  • Adding custom watermarks.

.NET framwork

Requrements and Tech

  • Requires only .Net 2.0 or above.
  • Compatible with all .Net languages and supports all Operating Systems where .Net Framework can be used.
  • Written in managed C#, which makes it absolutely standalone and an independent library.

1. Export RTF to PDF in C#:

SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();            

if (p != null)
string rtfPath = @"d:\Anna Karenina.rtf";
string pdfPath = Path.ChangeExtension(rtfPath, ".pdf");

if (p.RtfToPdfConvertFile(rtfPath, pdfPath)==0)

2. Convert RTF to PDF in memory using C#:

SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();            

if (p != null)
string rtfPath = @"d:\Anna Karenina.rtf";
string rtfString = File.ReadAllText(rtfPath);


byte[] pdfBytes = p.RtfToPdfConvertByte(rtfString);

3. Convert RTF to PDF and add custom header & footer using C#:

// How to add page header and footer
SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();

// Add custom header in HTML format.
string headerInHtml = "
You are welcome!
"; p.PageSettings.Header.Html(headerInHtml); // Add customer footer in RTF format. string footerInRtf = @"{\i Italic Header}"; p.PageSettings.Footer.Rtf(footerInRtf); string rtfFile = @"c:\The Brothers Karamazov.rtf"; string pdfFile = Path.ChangeExtension(rtfFile, ".pdf"); int result = p.RtfToPdfConvertFile(rtfFile, pdfFile);

4. Convert RTF to PDF, set the single font, embed the font in PDF – VB.Net:

' How to set a single font for the whole PDF document.
Dim p As New SautinSoft.PdfMetamorphosis()

' After purchasing the license, please insert your serial number here to activate the component
'p.Serial = "XXXXXXXXXXX";

' Let's make that the all text in PDF became in 'Courier New' font
p.TextSettings.FontFace.Custom("Courier New")
' Set also a single font size 10
p.TextSettings.FontSize = 10
' Set also single text color
p.TextSettings.FontColor = System.Drawing.Color.FromArgb(33, 150, 150)

' Embed all fonts inside PDF.
p.PdfSettings.EmbedAllFonts = True

Dim rtfPath As String = "c:\War and Peace.rtf"
Dim pdfPath As String = "c:\War and Peace.pdf"

Dim result As Integer = p.RtfToPdfConvertFile(rtfPath, pdfPath)

Platform Independence

The RTF to PDF Converter is completely created with managed C#. And it requires only .Net 2.0 platform or above. Using Linux RTF to PDF, you can easily create any type of a 32-bit or 64-bit .NET application including ASP.NET, Web Services and WinForms. And it is Multi-Platform component, you may use it to build your application with Mono platform for Linux and Mac (http://www.mono-project.com).

Advantage of this Linux RTF to PDF

The Linux RTF to PDF can convert any file like XHTML, HTML and RTF to PDF document with such advantages:

  1. Save a time and cost of developing of my application. You will need to only add the reference to “PdfMetamorphosis.dll” and write 3-4 C# lines to get ability create PDF from HTML, RTF, Text or PDF from DOCX.
  2. The one product provides me by set of API to convert from Text, RTF, HTML to PDF at once, split and merge PDF documents.
  3. Because of this is absolutely standalone PDF library, I don’t need to worry about the availability of Adobe Acrobat, MS Word, OpenOffice or other software on the my client’s computers.
  4. My software will have the one of the fastest API to convert into PDF documents and therefore my clients will not have any delays during creating PDF documents.
  5. I don’t need to worry about accuracy of source HTML and RTF documents. PDF Metamorphosis .Net can “eat” any types, versions and produce for me a valid PDF document.
  6. My license will never expires. I pay a one time and can use PDF Metamorphosis .Net for a whole life without any additional fees.
  7. As bonus, I get unlimited technical support during a whole life for free and independently of the date of my purchasing.

Leave a Reply

Your email address will not be published. Required fields are marked *

  • PDF iPad Transfer

    PDF iPad Transfer

    Transfer PDF and ePub files between PC and iPad, iPhone, iPod Touch quickly. Additionally, PDF iPad transfer also enables you to import, export and delete multiple ePub and PDF files stored on any Apple iOS device via desktop.