add method

int add(
  1. PdfAttachment attachment
)

Add PdfAttachment in the specified attachment collection.

Returns position of the inserted attachment.

Implementation

int add(PdfAttachment attachment) {
  return _helper.add(attachment);
}