TVirtualUI.PrintPdf Method
Description
This method transmits a specified PDF file for display in the end-user’s web browser.
Syntax
procedure PrintPdf(const AFileName: WideString); safecall;
Parameters
| Parameter | Type | Description |
|---|---|---|
AFileName |
WideString | The name of the PDF file to be printed |
Remarks
The PrintPdf method functions similarly to the DownloadFile method, with one key distinction: it configures the content-type as application/pdf when downloading the file.