<< Click to display table of contents >> TRVReportHelper.SavePDF |
Saves a document in RichView as a PDF file.
function SavePDF(const FileName: TRVUnicodeString;
PageWidth, PageHeight: Integer;
PDFInfo: PRVPDFMetadata = nil): Boolean;
(introduced in v22)
This method works only if a PDF saving engine is available. Currently, it is implemented only in FireMonkey version, using Skia4Delphi. You can check availability of a PDF saving engine using CanSavePDF method.
Internally, this method calls Init and FormatNextPage methods.
Parameters
FileName – output file name
PageWidth, PageHeight – page size
PDFInfo – pointer to TRVPDFMetadata structure containing PDF creation parameter. This parameter is optional, use nil to create PDF with default parameters.
See: