Spaces:
Sleeping
Sleeping
A newer version of the Streamlit SDK is available:
1.40.1
extract_pdf_section
Extracts a specified section from a PDF file and saves it as a new PDF.
Version
1.0.0
Usage:
extract_pdf_section('input.pdf', 2, 5, 'output.pdf')
Parameters:
pdf_path (string): The path to the PDF file. Required: True start_page (integer): The starting page of the section to extract. Required: True end_page (integer): The ending page of the section to extract. Required: True output_path (string): The path to save the extracted section as a new PDF file. Required: True
Returns:
output_path (string): The path to the extracted section PDF file.