TRVPrint.SavePDF

<< Click to display table of contents >>

TRVPrint.SavePDF

Saves a document as a PDF file.

function SavePDF(const FileName: TRVUnicodeString;
  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.

This method requires an active virtual printer mode. It uses VirtualPrinter.PageWidth and PageHeight properties.

Internally, this method calls FormatPages method.

Parameters

FileName – output file name

PDFInfo – pointer to TRVPDFMetadata structure containing PDF creation parameter. This parameter is optional, use nil to create PDF with default parameters.

See:

▪TRVReportHelper.SavePDF.