ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / PDF functions
  • Properties specific to pdfTextElement variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
pdfTextElement (Variable type)
In french: pdfElémentTexte
The pdfTextElement type is used to find out all the characteristics of a text element in a PDF page. The characteristics of this element are returned by several WLanguage properties. For example, it is possible find out the position of the text and its content, for searching purposes.
Warning: All properties of the variable pdfTextElement VARIABLE variable are read-only, as the text of a PDF file cannot be modified.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
MonPDF is pdfDocument = "test.pdf" 

FOR EACH PageDocument OF MonPDF.Page
	FOR EACH ElémentPage OF PageDocument.ElémentTexte
		Trace(ElémentPage.Texte)
	END
END
Properties

Properties specific to pdfTextElement variables

The following properties can be used to handle a text element in a PDF file:
Property nameType usedEffect
FontNameCharacter stringName of the font used to draw the text element.
This property is read-only.
iPhone/iPad Font details are not available.
FontSizeRealSize of the font used to draw the text element (in typographic point, 72PPP).
This property is read-only.
iPhone/iPad Font details are not available.
HeightRealHeight of rectangle indicating the position and size of the element in the page (in millimeters).
This property is read-only.
TextCharacter stringText of element.
This property is read-only.
WidthRealWidth of rectangle indicating the position and size of the element in the page (in millimeters).
This property is read-only.
XRealX position of the rectangle indicating the position and size of the element in the page (in millimeters).
This property is read-only.
YRealY position of the rectangle indicating the position and size of the element in the page (in millimeters).
This property is read-only.
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help