IVirtualUI::PrintPdf Method
Sends the specified PDF file to be shown on the end-user’s web browser.
Syntax
HRESULT _stdcall PrintPdf([in] BSTR AFileName);
Parameters
| Parameter | Type | Description |
|---|---|---|
AFileName |
BSTR | The name of the PDF file to be sent. |
Return Value
| Type | Description |
|---|---|
| HRESULT | Standard COM return value indicating success or failure. |
Remarks
PrintPdf operates similarly to the DownloadFile method, with a key distinction: it downloads the file with a content-type: application/pdf rather than a generic file download content type.