|
- Properties specific to the description of pdfDocument variables
- Remarks
- WLanguage functions that use docDocument variables
pdfDocument (Type of variable) In french: pdfDocument
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 pdfDocument variables The following properties can be used to handle a PDF document: | | | Property name | Type used | Effect |
---|
Author | Character string | Author of the document (only if this information is available in the PDF document). This property is available in read-only. | CreationDate | DateTime | Document creation date and time (only if this information is available in the PDF document). This property is available in read-only. | ModificationDate | DateTime | Date and time of last modification of the document (only if this information is available in the PDF document). This property is available in read-only. | Generator | Character string | Name of the program that generated the document (only if this information is available in the PDF document). This property is available in read-only. | Keyword | Character string | Document keyword (only if this information is available in the PDF document). If several keywords are specified, the separator used depends on the generator. This property is available in read-only. | Page | Array of pdfPage | Pages of the PDF document. It is possible to delete or add pages to a document using array management functions ( Add, Delete, ... on the array of pdfPage variables). | Attachment | Array of pdfAttachment | Attachments of PDF document. It is possible to delete or add attachments to a document using array management functions ( Add, Delete, ... on the array of pdfAttachment variables). Remark: Management of attachments will be available in a future update. | Title | Character string | Document title (only if this information is available in the PDF document). This property is available in read-only. | Value | Character string or Buffer | PDF document. This property can correspond to: - the path of the PDF document,
- the buffer containing the PDF document.
| PDFVersion | Character string | Version of the PDF standard used in the PDF document. This property is available in read-only. | Remark: These properties can be handled by using one of the following syntaxes: - <Variable name>..<Property name>
- <Variable name>.<Property name>
Remarks - To initialize the pdfDocument variable, simply assign a string or (buffer) containing a PDF file. It is then possible to modify the document (by adding attachments or setting a password, for example) and then save it again by calling PDFSave.
- It is possible to delete or add pages to a document using array management functions (Add, Delete, ... on the array of pdfPage variables). Similarly, it is possible to add or delete attachments.
WLanguage functions that use docDocument variables
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |