type is used to define all the advanced characteristics of an attachment in a PDF document. The characteristics of this attachment can be defined and changed using different WLanguage properties.
Thus, it is possible to extract the content of an attachment, add or delete an attachment to a PDF document.
: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable
MyPDF is pdfDocument = "test.pdf"
FOR EACH AnAttachment OF MyPDF.Attachment
Properties specific to the description of pdfAttachment variables
The following properties can be used to handle a PDF attachment:
|Property name||Type used||Effect|
|Content||Buffer||Content of attachment.|
|DateCreated||DateTime||Attachment creation date.|
This constant corresponds to "CreationDate" in previous versions.
|DateModified||DateTime||Attachment last modification date.|
This constant corresponds to "ModificationDate" in previous versions.
|Name ||Character string||Name of the attachment.|
Unit examples (WINDEV): PDFDocument type