langchain_community.document_loaders.parsers.pdf.PyPDFParser¶

class langchain_community.document_loaders.parsers.pdf.PyPDFParser(password: Optional[Union[str, bytes]] = None, extract_images: bool = False)[source]¶

Load PDF using pypdf

Methods

__init__([password, extract_images])

lazy_parse(blob)

Lazily parse the blob.

parse(blob)

Eagerly parse the blob into a document or documents.

__init__(password: Optional[Union[str, bytes]] = None, extract_images: bool = False)[source]¶
lazy_parse(blob: Blob) Iterator[Document][source]¶

Lazily parse the blob.

parse(blob: Blob) List[Document]¶

Eagerly parse the blob into a document or documents.

This is a convenience method for interactive development environment.

Production applications should favor the lazy_parse method instead.

Subclasses should generally not over-ride this parse method.

Parameters

blob – Blob instance

Returns

List of documents