File size: 618 Bytes
ee0c434
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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.