eDocEngine VCL
Create documents and reports in 18 formats
Compatibility
Delphi C++Builder

Exporting TRichView (.RVF) Files to PDF Using eDocEngine VCL

Learn to create a PDF version of your TRichView files in just five lines of code.
By Ashwini

In this tip, we will see how to convert RichView documents to PDF using eDocEngine VCL. Here are the steps:

  1. Drop TRichViewEdit, TRVPrint, and TRVStyle components from RichView palette on a Delphi form application.
  2. Connect RichViewEdit1.Style property to RVStyle1.
  3. From eDocEngine Additionals tab, add TgtRichViewInterface interface to the form.
  4. From eDocEngine tab, add TgtPDFEngine component to the form.
  5. To connect Gnostice RichView Interface to the eDocEngine component:
    1. On the form, select gtRichViewInterface1.
    2. In the Properties window, select the Engine property and click the drop-down icon to select the PDF engine gtPDFEngine1.
  6. In the code window, add the following code:
    procedure TForm1.Button1Click(Sender: TObject);
    begin
      // Load the input .RVF file into the 
      // TRichViewEdit component
      RichViewEdit1.InsertRVFFromFileEd('C:\Input.rvf');
    
      // Assign the TRichViewEdit component as the 
      // source for the TRVPrint object.
      RVPrint1.AssignSource(RichViewEdit1);
    
      // Apply formatting for all pages
      RVPrint1.FormatPages(rvdoALL);
    
      // Specify output PDF filename
      gtPDFEngine1.FileName := 'Output.pdf';
    
      // Export the RVF file to PDF
      gtRichViewInterface1.RenderDocument(RVPrint1, False);
    end;  
    
---o0O0o---

Downloads:

---o0O0o---

Our Developer Tools
eDocEngine VCL

A Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools.

PDFtoolkit VCL

A Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents.

XtremePDFConverter VCL

A Delphi/C++Builder component to intelligently convert PDF to user-friendly Word RTF documents.

PDFOne .NET

A .NET PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, and bookmark PDF documents in .NET applications.

XtremeDocumentStudio .NET

Multi-format document-processing component suite for .NET developers

PDFOne (for Java™)

A Java™ PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, bookmark PDF documents in Java™ applications.

XtremeFontEngine (for Java)

Java font engine to render glyphs from Type 1, Type 2 (CFF), and TrueType fonts

Our Office Productivity Applications
Free PDF Reader

A free, fast, and portable application for viewing, printing and converting PDF documents.

Privacy | Legal | Feedback | Newsletter | Resellers © 2002-2013 Gnostice Information Technologies Private Limited. All rights reserved.

This site is best viewed on a screen with minimum resolution of 1152 x 864 pixels. Windows XP users are advised to use Microsoft ClearType Tuning for optimal experience. Also, please use the latest version of a standards-compliant browser such as Firefox, Opera, or Dragon (Chromium).