Skip to main content
Table of Contents

ITMSFNCCustomWebBrowserPrint.PrintToPDF Method

Saves the current page as a PDF file at the specified path using the specified print settings.

API unit family: TMSFNCWebBrowser Declaring type: ITMSFNCCustomWebBrowserPrint

Overloads

Overload 1

Saves the current page as a PDF file at the specified path using the specified print settings.

FMX.TMSFNCWebBrowser.hppPascalC++
procedure PrintToPDF(AFileName: string; APrintSettings: TTMSFNCWebBrowserPrintSettings); overload;
virtual void __fastcall PrintToPDF(System::UnicodeString AFileName, const TTMSFNCWebBrowserPrintSettings &APrintSettings) = 0 /* overload */;

Parameters

Name Description
AFileName Destination file path for the exported PDF.
APrintSettings Print settings used for the PDF layout.

Overload 2

Saves the current page as a PDF file at the specified path using default print settings.

FMX.TMSFNCWebBrowser.hppPascalC++
procedure PrintToPDF(AFileName: string); overload;
virtual void __fastcall PrintToPDF(System::UnicodeString AFileName) = 0 /* overload */;

Parameters

Name Description
AFileName Destination file path for the exported PDF.