ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / PDF functions
  • Properties specific to pdfTextElement variables
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
pdfTextElement (Type of variable)
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.
Caution: All properties of the pdfTextElement variable are read-only because the text of a PDF file cannot be modified.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
MyPDF is pdfDocument = "test.pdf"
 
FOR EACH DocumentPage OF MyPDF.Page
FOR EACH PageElement OF DocumentPage.TextElement
Trace(PageElement.Text)
END
END
Remarks

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: 05/02/2023

Send a report | Local help