agentchat.contrib.captainagent.tools.information_retrieval
agentchat.contrib.captainagent.tools.information_retrieval.extract_pdf_image
extract_pdf_image
Extracts images from a PDF file and saves them to the specified output directory.
Arguments:
pdf_path
str - The path to the PDF file.output_dir
str - The directory to save the extracted images.page_number
int, optional - The page number to extract images from. If not provided, extract images from all pages.