PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 25 feature!
  • Properties specific to the description of pdfPage variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
pdfPage (Type of variable)
In french: pdfPage
The pdfPage type is used to define all the advanced characteristics of a page of a PDF document loaded in memory. The characteristics of this page can be defined and modified by several WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Versions 250064 and later
Versions 25 and later
iPhone/iPad From version 25 Update 1 (250064), this type of variable is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this type of variable is available in Android Widget mode.
Android From version 25 Update 1 (250064), this type of variable is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this type of variable is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this type of variable is available for WEBDEV sites in Linux.
New in version 25
iPhone/iPad From version 25 Update 1 (250064), this type of variable is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this type of variable is available in Android Widget mode.
Android From version 25 Update 1 (250064), this type of variable is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this type of variable is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this type of variable is available for WEBDEV sites in Linux.
iPhone/iPad From version 25 Update 1 (250064), this type of variable is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this type of variable is available in Android Widget mode.
Android From version 25 Update 1 (250064), this type of variable is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this type of variable is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this type of variable is available for WEBDEV sites in Linux.
New in version 250064
Versions 25 and later
iPhone/iPad From version 25 Update 1 (250064), this type of variable is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this type of variable is available in Android Widget mode.
Android From version 25 Update 1 (250064), this type of variable is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this type of variable is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this type of variable is available for WEBDEV sites in Linux.
New in version 25
iPhone/iPad From version 25 Update 1 (250064), this type of variable is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this type of variable is available in Android Widget mode.
Android From version 25 Update 1 (250064), this type of variable is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this type of variable is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this type of variable is available for WEBDEV sites in Linux.
iPhone/iPad From version 25 Update 1 (250064), this type of variable is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this type of variable is available in Android Widget mode.
Android From version 25 Update 1 (250064), this type of variable is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this type of variable is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this type of variable is available for WEBDEV sites in Linux.
Versions 25 and later
iPhone/iPad From version 25 Update 1 (250064), this type of variable is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this type of variable is available in Android Widget mode.
Android From version 25 Update 1 (250064), this type of variable is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this type of variable is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this type of variable is available for WEBDEV sites in Linux.
New in version 25
iPhone/iPad From version 25 Update 1 (250064), this type of variable is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this type of variable is available in Android Widget mode.
Android From version 25 Update 1 (250064), this type of variable is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this type of variable is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this type of variable is available for WEBDEV sites in Linux.
iPhone/iPad From version 25 Update 1 (250064), this type of variable is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this type of variable is available in Android Widget mode.
Android From version 25 Update 1 (250064), this type of variable is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this type of variable is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this type of variable is available for WEBDEV sites in Linux.
Example
MyPDF is pdfDocument = "test.pdf"
 
FOR EACH DocumentPage OF MyPDF..Page
Trace(DocumentPage..Height)
END
 
PDFSave(MyPDF, "passwordtest.pdf")
 
// It is also possible to use prefixed syntax
// MyPDF.Save("passwordtest.pdf")
MyPDFDoc is pdfDocument = PDFOpen("C:\temp\Myguide.pdf")
Trace(MyPDFDoc..PDFVersion)
Trace(MyPDFDoc..Author)
Trace(MyPDFDoc..Page..Count)
Trace(MyPDFDoc..Page[1]..Width)
Trace(MyPDFDoc..Page[36]..Height)
 
FOR EACH ATextElement OF MyPDFDoc..Page[2]..TextElement
Trace(ATextElement..Text + " X = " +
ATextElement..X + " Y = " + ATextElement..Y + " L = " +
ATextElement..Width + " H = " + ATextElement..Height)
END
 
MyPDFDoc2 is pdfDocument = "C:\temp\plan.pdf"
// Add pages
Add(MyPDFDoc2..Page, MyPDFDoc..Page[5])
// Insert pages
Insert(MyPDFDoc2..Page, 1, MyPDFDoc..Page[32])
// Save modified PDF
PDFSave(MyPDFDoc2,"MyPDFDoc2.pdf")
ShellExecute("MyPDFDoc2.pdf")
Remarks

Properties specific to the description of pdfPage variables

The following properties can be used to handle a page of a PDF document:
Property nameType usedEffect
TextElementArray of pdfTextElementInformation about the text in the page.
HeightRealPage height in millimeters.
If this height is changed, the page is automatically resized and the elements are repositioned.
iPhone/iPad This property is available in read-only.
WidthRealPage width in millimeters.
If this width is changed, the page is automatically resized and the elements are repositioned.
iPhone/iPad This property is available in read-only.
OrientationString constantAllows you to find out and modify the orientation of the page:
  • Orient0: Default orientation.
  • Orient90: Page oriented at 90°.
  • Orient180: Page oriented at 180°.
  • Orient270: Page oriented at 270°.

Remark: These properties can be handled by using one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment