ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
DisplayModeAutoWhenLoading (Property)
In french: ModeAffichageAutoAuChargement
The DisplayModeAutoWhenLoading property is used to determine and change the display mode when loading a PDF document. The display mode (1 page, 2 pages, 2 pages with cover) used can correspond to:
  • the display mode specified in the control.
  • the preferred display mode specified in the PDF file.
By default, the PDF Reader control respects the display preferences of PDF file.
Example
// Forces the document to be displayed in 1-page mode
PDF_MyPDFReader.DisplayModeAutoWhenLoading = False
PDF_MyPDFReader.DisplayMode = displayModeOnePage
PDFReaderOpen(PDF_MyPDFReader, "MyDocument.pdf")
Syntax

Finding out the behavior of display mode in relation to the preferences of PDF document Hide the details

<Result> = <PDF Reader control>.DisplayModeAutoWhenLoading
<Result>: Boolean
  • True if the display mode used when loading a PDF document in the control is the one specified in the PDF document. The display mode used will be automatically modified to correspond to the preferences specified in the PDF file.
  • False otherwise. The display mode used will not be changed when opening a PDF file.
<PDF Reader control>: Control name
Name of PDF Reader control to use.

Modifying the behavior of display mode in relation to the preferences of PDF document Hide the details

<PDF Reader control>.DisplayModeAutoWhenLoading = <New mode>
<PDF Reader control>: Control name
Name of PDF Reader control to use.
<New mode>: Boolean
  • True if the display mode used when loading a PDF document in the control is the one specified in the PDF document. The display mode used will be automatically modified to correspond to the preferences specified in the PDF file.
  • False otherwise. The display mode used will not be changed when opening a PDF file.
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help