ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2025 feature!
Help / WLanguage / WLanguage functions / Standard functions / PDF functions
  • Properties specific to pdfControl variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The pdfControl type is used to get all the characteristics and values of a control present in a PDF form.
You can define and change the characteristics of this control using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Get controls present in the PDF file. 
// The different controls of the PDF file are displayed in a Looper control
// Each characteristic of the control corresponds to a row in the Looper control

LooperDeleteAll(LOOP_Control)
CurrentPDF is pdfDocument = PDF_NoName1.Value
sPath is string = CurrentPDF.Value
Trace(sPath)
FOR i = 1 _TO_ CurrentPDF.Page.Count
	page is pdfPage = CurrentPDF.Page[i]
	FOR j = 1 _TO_ page.Control.Count
		control is pdfControl = page.Control[j]
		let sName = control.Name
		let sValue = control.Value
		let sType = ControlTypeToReadableFormat(control.Type)
		let sOptions = ListOption(control)
		// Add details in the Looper control
		LOOP_Control.AddLine(i, j, sName, sType, sValue, sOptions)
		IF sValue <> "" THEN
			LOOP_Control[LOOP_Control.Count].EDT_Value.BackgroundColor = TooltipYellow
		END
		IF sOptions = "" THEN
			LOOP_Control[LOOP_Control.Count].EDT_Option.Grayed = True
		ELSE
			LOOP_Control[LOOP_Control.Count].EDT_Option.Grayed =False
		END
	END
END

INTERNAL PROCEDURE ListOption(control is pdfControl): string
	sOptions is string
	FOR i = 1 _TO_ control.Option.Count
		IF sOptions <> "" THEN sOptions += CR
		sOptions += i + ": " + control.Option[i].Caption
	END
	RETURN sOptions
END
INTERNAL PROCEDURE ControlTypeToReadableFormat(nType): string
	SWITCH nType
		CASE typText: RETURN "Edit control"
		CASE typComboWE: RETURN "Editable Combo Box"
		CASE typComboNE: RETURN "Non-editable Combo Box"
		CASE typCheckBox: RETURN "Check Box"
		CASE typRadioButton: RETURN "Radio Button"
		CASE typList: RETURN "List Box"
		OTHER CASE: RETURN "Unknown"
	END
END
Properties

Properties specific to pdfControl variables

The following properties can be used to define the characteristics of pdfControl variables:
Property nameType usedEffect
New in SaaS
Height
RealControl height in millimeters.
This property is read-only.
Note: This property is only available from WINDEV Suite SaaS 2025 Update 3.
For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
NameCharacter stringName of the control present in the PDF form.
This property is read-only.
OptionArray of pdfControlOptionControl value. This value can be modified.
TypeInteger constantType of control:
  • typComboWE: Editable Combo Box.
  • typComboNE: Non-editable Combo Box.
  • typCheckBox: Check Box.
  • typList: List of elements.
  • typRadioButton: Radio Button.
  • typText: Text input control.
This property is read-only.
ValueCorresponding typeValue contained in the control. This value can be modified.
New in SaaS
Width
RealControl width in millimeters.
This property is read-only.
Note: This property is only available from WINDEV Suite SaaS 2025 Update 3.
For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
New in SaaS
X
RealHorizontal position of the control in the page, in millimetres.
This property is read-only.
Note: This property is only available from WINDEV Suite SaaS 2025 Update 3.
For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
New in SaaS
Y
RealVertical position of the control in the page, in millimetres.
This property is read-only.
Note: This property is only available from WINDEV Suite SaaS 2025 Update 3.
For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2025

Send a report | Local help