deleteFile method

void deleteFile()

Deletes the file related to this PDFDoc. Throws an exception if the FileSystemEntity cannot be deleted.

Implementation

void deleteFile() {
  if (_file.existsSync()) {
    _file.deleteSync();
  }
}