compass.services.cpu.read_pdf_doc#
- async read_pdf_doc(pdf_bytes, **kwargs)[source]#
Read PDF file from bytes in a Process Pool.
- Parameters:
pdf_bytes (
bytes
) – Bytes containing PDF file.**kwargs – Keyword-value arguments to pass to
elm.web.document.PDFDocument
initializer.
- Returns:
elm.web.document.PDFDocument
– PDFDocument instances with pages loaded as text.