class_docstr: Read a document from multiple extensions
class_docstr_tok: ["Read","a","document","from","multiple","extensions"]
docstr: Read a PDF file
  
  >>> from doctr.io import DocumentFile
  >>> doc = DocumentFile.from_pdf("path/to/your/doc.pdf")
  
  Args:
  ----
      file: the path to the PDF file or a binary stream
      **kwargs: additional parameters to :meth:`pypdfium2.PdfPage.render`
  
  Returns:
  -------
      the list of pages decoded as numpy ndarray of shape H x W x 3
docstr_tok: ["Read","a","PDF","file",">",">",">","from","doctr.io","import","DocumentFile",">",">",">","doc","=","DocumentFile.from_pdf","(","``","path\/to\/your\/doc.pdf","''",")","Args",":","--","--","file",":","the","path","to","the","PDF","file","or","a","binary","stream","*","*","kwargs",":","additional","parameters","to",":","meth",":","`","pypdfium2.PdfPage.render","`","Returns",":","--","--","--","-","the","list","of","pages","decoded","as","numpy","ndarray","of","shape","H","x","W","x","3"]
code: def from_pdf(cls, file: AbstractFile, **kwargs) -> List[np.ndarray]:
      """Read a PDF file
  
      >>> from doctr.io import DocumentFile
      >>> doc = DocumentFile.from_pdf("path/to/your/doc.pdf")
  
      Args:
      ----
          file: the path to the PDF file or a binary stream
          **kwargs: additional parameters to :meth:`pypdfium2.PdfPage.render`
  
      Returns:
      -------
          the list of pages decoded as numpy ndarray of shape H x W x 3
      """
      return read_pdf(file, **kwargs)
  
file_path: doctr/doctr/io/reader.py
imports: from pathlib import Path
  from typing import List, Sequence, Union
  import numpy
  from doctr.utils.common_types import AbstractFile
  from .html import read_html
  from .image import read_img_as_numpy
  from .pdf import read_pdf
label_desc: Use image node_id 1 for calling the DocumentFile obj's underlying member method code with example usage: obj.from_pdf(cls, file) and returns: read_pdf