pdf2imgs
pdf2imgs(stream: Union[str, Path, bytes]) -> Union[List[np.ndarray], None]
- 
説明:PDF ファイルを NumPy 形式の画像リストに変換します。
 - 
パラメータ
- stream (
Union[str, Path, bytes]):PDF ファイルのパスまたはバイナリデータ。 
 - stream (
 - 
戻り値
- List[np.ndarray]:PDF ファイルの各ページを NumPy 画像としてリストで返します。失敗した場合は None を返します。
 
 - 
使用例
import capybara as cb
imgs = cb.pdf2imgs('sample.pdf')