CloseDocument

Document management, viewer interaction

Description

Closes the displayed document and resets the control; any open in-place form editor is closed without saving, the background prefetcher is stopped and freed, and a library instance the control created itself is freed

Page number, file name, password and view rotation are cleared, all highlight regions, search hits, selections and selection text are dropped, the focused field and active region are reset, the page metrics and bitmap cache are emptied and the view repaints

A library attached through AttachLibrary is only released, never freed, and calling CloseDocument with no document open is a safe no-op

Syntax

Delphi

Procedure TPDFlibViewer.CloseDocument;

See also

TPDFlibViewer, LoadFromFile, AttachLibrary, Lib