updateInfo method

void updateInfo({
  1. String? title,
  2. String? author,
  3. String? creator,
  4. String? subject,
  5. String? keywords,
  6. String? producer,
})

Updates /Info metadata fields.

Implementation

void updateInfo({
  String? title,
  String? author,
  String? creator,
  String? subject,
  String? keywords,
  String? producer,
}) {
  if (_info != null) {
    _info!.inUse = false;
  }
  _info = PdfInfo(
    this,
    title: title,
    author: author,
    creator: creator,
    subject: subject,
    keywords: keywords,
    producer: producer,
  );
}