Skip to main content
Table of Contents

TTMSFNCWebBrowser.PrintToPDF Method

Saves the current page as a PDF file using the supplied settings.

API unit family: TMSFNCWebBrowser Declaring type: TTMSFNCWebBrowser

Overloads

Overload 1

Saves the current page as a PDF file using the supplied settings.

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

Parameters

Name Description
AFileName Destination file path for the PDF.
APrintSettings Layout settings for the PDF output. See TTMSFNCWebBrowserPrintSettings.

Overload 2

Saves the current page as a PDF file using default settings.

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

Parameters

Name Description
AFileName Destination file path for the PDF.