property Visible: Boolean; // published, inherited from TControl
Setting Visible := False removes the viewer from the screen without destroying it; the underlying PDFium document, current page, zoom factor and selection state are all preserved. When the property is set back to True the cached state appears again straight away and a repaint is queued automatically
Hiding the viewer is a useful way to switch between alternative document views, such as a thumbnail-only mode and the full reader, without recreating the component. Because PDFium page handles stay open while hidden, the user can move between views quickly with no reload delay
Visibility also follows container controls: if the parent panel is invisible, the viewer is invisible regardless of its own setting. The framework still raises OnShow / OnHide notifications on the form so application code can keep toolbars in step
True on a published TWinControlPdfView1.Active := False or Pdf1.CloseAsyncRendering := False first — otherwise queued rendering may continue briefly
// Toggle between thumbnail mode and full reader on a button click
procedure TForm1.btnToggleViewClick(Sender: TObject);
begin
ThumbnailGrid.Visible := PdfView1.Visible;
PdfView1.Visible := not PdfView1.Visible;
if PdfView1.Visible then
PdfView1.SetFocus;
end;