Page 1 of 1

PDF Engine and TRichView

Posted: Tue Mar 26, 2024 3:12 am
by dominicelliott
Hello,

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

Many thanks

Re: PDF Engine and TRichView

Posted: Tue Mar 26, 2024 9:06 am
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.