PDF Engine and TRichView

General TRichView support forum. Please post your questions here
Post Reply
dominicelliott
Posts: 1
Joined: Tue Mar 26, 2024 3:10 am

PDF Engine and TRichView

Post by dominicelliott »

Hello,

Is it possible to create PDF files from a TRichView component ? If so, is there an example ?

Many thanks
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: PDF Engine and TRichView

Post by Sergey Tkachenko »

TRichView does not have its own methods for PDF export.
However, it can use third-party PDF engines.

1. If you use FireMonkey, you can use PDF engine of Skia4Delphi.
Just use TRVPrint.SavePDF or TRVReportHelper.SavePDF.
Skia4Delphi is included in Delphi 12, or can be downloaded from https://github.com/skia4delphi/skia4delphi/releases
(Do not use GetIt version of Skia4Delphi if it is older than version 6).

2, In VCL version, you can use third-party tools: eDocEngine (commercial), SynPDF (free), LLPDFLib (free)
Demo projects can be found in <TRichView Dir>\ThirdParty\Export\ folder.
Post Reply