Splitter class

Splitter class

Provides methods intended to split the documents into parts using different criteria.

Inheritance: SplitterProcessor

Methods

NameDescription
create(context)Creates new instance of the splitter processor.
execute()Execute the processor action.
(Inherited from Processor)
extract_pages(input_file_name, output_file_name, start_page_index, page_count)Extracts a specified range of pages from a document file and saves the extracted pages to a new file. The output file format is determined by the extension of the output file name.
extract_pages(input_file_name, output_file_name, save_format, start_page_index, page_count)Extracts a specified range of pages from a document file and saves the extracted pages to a new file using the specified save format.
extract_pages(input_file_name, output_file_name, save_options, start_page_index, page_count)Extracts a specified range of pages from a document file and saves the extracted pages to a new file using the specified save format.
extract_pages(input_stream, output_stream, save_format, start_page_index, page_count)Extracts a specified range of pages from a document stream and saves the extracted pages to an output stream using the specified save format.
extract_pages(input_stream, output_stream, save_options, start_page_index, page_count)Extracts a specified range of pages from a document stream and saves the extracted pages to an output stream using the specified save format.
from_file(input)Specifies input document for processing.
(Inherited from Processor)
from_file(input, load_options)Specifies input document for processing.
(Inherited from Processor)
from_stream(input)Specifies input document for processing.
(Inherited from Processor)
from_stream(input, load_options)Specifies input document for processing.
(Inherited from Processor)
remove_blank_pages(input_file_name, output_file_name)Removes empty pages from the document and saves the output. Returns a list of page numbers that were removed.
remove_blank_pages(input_file_name, output_file_name, save_format)Removes empty pages from the document and saves the output in the specified format. Returns a list of page numbers that were removed.
remove_blank_pages(input_file_name, output_file_name, save_options)Removes empty pages from the document and saves the output in the specified format. Returns a list of page numbers that were removed.
remove_blank_pages(input_stream, output_stream, save_format)Removes blank pages from a document provided in an input stream and saves the updated document to an output stream in the specified save format. Returns a list of page numbers that were removed.
remove_blank_pages(input_stream, output_stream, save_options)Removes blank pages from a document provided in an input stream and saves the updated document to an output stream in the specified save format. Returns a list of page numbers that were removed.
split(input_file_name, output_file_name, options)Splits a document into multiple parts based on the specified split options and saves the resulting parts to files. The output file format is determined by the extension of the output file name.
split(input_file_name, output_file_name, save_format, options)Splits a document into multiple parts based on the specified split options and saves the resulting parts to files in the specified save format.
split(input_file_name, output_file_name, save_options, options)Splits a document into multiple parts based on the specified split options and saves the resulting parts to files in the specified save format.
split(input_stream, save_format, options)Splits a document from an input stream into multiple parts based on the specified split options and returns the resulting parts as an array of streams in the specified save format.
split(input_stream, save_options, options)Splits a document from an input stream into multiple parts based on the specified split options and returns the resulting parts as an array of streams in the specified save format.
to_file(output)Specifies output file for the processor.
(Inherited from Processor)
to_file(output, save_options)Specifies output file for the processor.
(Inherited from Processor)
to_file(output, save_format)Specifies output file for the processor.
(Inherited from Processor)
to_stream(output, save_options)Specifies output stream for the processor.
(Inherited from Processor)
to_stream(output, save_format)Specifies output stream for the processor.
(Inherited from Processor)
to_streams(output, save_options)
(Inherited from Processor)
to_streams(output, save_format)
(Inherited from Processor)

See Also