TVirtualUI.PreviewPdf Method
Description
This method displays a specified PDF file in the end-user’s web browser. Unlike the PrintPdf method, it disables printing options within the viewer, though standard browser printing commands remain functional.
Syntax
procedure PreviewPdf(const AFileName: WideString); safecall;
Parameters
| Parameter | Type | Description |
|---|---|---|
AFileName |
WideString | The name of the PDF file to display |
See Also
- Related Method: PrintPdf
- Key Difference: PreviewPdf restricts the built-in viewer’s print functionality, whereas PrintPdf allows full printing capabilities