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 .NET Developer Tools
Gnostice Document Studio .NET

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

PDFOne .NET

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

Our Delphi/C++Builder developer tools
Gnostice Document Studio Delphi

Multi-format document-processing component suite for Delphi/C++Builder developers, covering both VCL and FireMonkey platforms.

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.

Our Java developer tools
Gnostice Document Studio Java

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

PDFOne (for Java)

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

Our Platform-Agnostic Cloud and On-Premises APIs
StarDocs

Cloud-hosted and On-Premises REST-based document-processing and document-viewing APIs

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