|
- Properties specific to the description of pdfPage variables
pdfPage (Type of variable) In french: pdfPage
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 prefix 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( MonDocPDF2, "MonDocPDF2.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 name | Type used | Effect |
---|
ElementText | Array of pdfTextElement | Information about the text in the page. | Height | Real | Page height in millimeters. If this height is changed, the page is automatically resized and the elements are repositioned. | Width | Real | Page width in millimeters. If this width is changed, the page is automatically resized and the elements are repositioned. | Orientation | String constant | Allows 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°.
|
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |