TdxPDFCustomViewer.Clear Method
Closes the loaded PDF document.
Declaration
procedure Clear; override;
Remarks
This procedure does the following:
Clears the view state history;
Sets the HandTool property to False;
Clears all the content selections and highlights;
Unloads the PDF document;
Destroys the PDF Viewer’s Document object;
Raises the OnDocumentUnloaded event;
Clears the search string if the OptionsFindPanel.ClearSearchStringOnClose property is set to True.
You can allow end-users to close the document by linking the CloseDocument command to an element of your UI.
Note
To identify if the PDF Viewer has the loaded document, call the IsDocumentLoaded function.
See Also