CPDFImageData.fromPath constructor

CPDFImageData.fromPath(
  1. String filePath
)

Create from file path example: '/data/user/0/com.example.app/cache/image.png'

Implementation

factory CPDFImageData.fromPath(String filePath) {
  return CPDFImageData._(
    type: CPDFImageType.filePath,
    data: filePath,
  );
}