ReportLabのdrawImageメソッドで[expected … not PngImageFile]エラーが表示される場合の対処法

Pythonで利用できるPDF操作ライブラリ[ReportLab]で[drawImage]メソッドでPNG画像をPDFファイルに挿入する場合に[TypeError: expected str, bytes or os.PathLike object, not PngImageFile]エラーが表示される場合の対処法を備忘録的に投稿します。

続きを読む ReportLabのdrawImageメソッドで[expected … not PngImageFile]エラーが表示される場合の対処法