AttachmentAnnotationModel Data Type

An attachment annotation in the PDF document.

Properties
name data type description
attachment AttachmentModel The embedded file. This should be left empty when creating a new attachment annotation.
Properties inherited from AnnotationModel
link LinkModel The link to this annotation.
name string The annotation name, a text string uniquely identifying it among all the annotations on its page.
contents string The contents associated with the annotation.
creator string The annotation's creator.
modifiedDate string The date when the annotation was most recently modified. (ISO-8601 format)
subject string The annotation's subject.
subtype string The annotation's subtype.
rectangle RectangleModel The annotation's bounds.
pageIndex number The index of the page that contains the annotation.

Example

{
  "attachment" : {
    "fileName" : "...",
    "size" : 12345,
    "creationDate" : 12345,
    "modDate" : 12345,
    "description" : "...",
    "relationship" : "...",
    "link" : {
      "rel" : "...",
      "href" : "..."
    },
    "content" : {
      "rel" : "...",
      "href" : "..."
    }
  },
  "link" : {
    "rel" : "...",
    "href" : "..."
  },
  "name" : "...",
  "contents" : "...",
  "creator" : "...",
  "modifiedDate" : "...",
  "subject" : "...",
  "subtype" : "...",
  "rectangle" : {
    "x" : 12345.0,
    "y" : 12345.0,
    "width" : 12345.0,
    "height" : 12345.0
  },
  "pageIndex" : 12345
}