THotPDF.SetLoadedViewerPreferences Method
Sets the reader display preferences for the loaded PDF document, controlling interface behaviours such as initial display mode, toolbars, and navigation panels upon opening
Declaration
procedure SetLoadedViewerPreferences(APrefs: THPDFViewerPreferences);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
APrefs | THPDFViewerPreferences record type, containing reader preference flags such as HideToolbar, HideMenubar, and FitWindow |
Usage notes
This member returns no value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field or catalogue object is finalised
- This method replaces the entire ViewerPreferences dictionary; the existing preferences should be read before calling to avoid accidental resets
- Changes must be saved before they can be written to the output file