buildImage method
Implementation
@override
PdfImage buildImage(Context context, {int? width, int? height}) {
if (width == null) {
return PdfImage.fromImage(context.document, image: _image);
}
final resized = im.copyResize(_image, width: width);
return PdfImage.fromImage(context.document, image: resized);
}