Qu

pdf.split_at

Builtin index · File I/O

result = pdf.split_at(src, index)

Input: src, index · Output: result

What it is

Splits src into exactly two documents at index (numbered from 1): the first holds pages 1..index, the second index..page_count. Both halves must come out non-empty -- index must be strictly between 1 and the page count, refused by name otherwise.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = pdf.split_at(src, index)
src —not documented yet
index —not documented yet
result List or Vec
Returns a List of exactly 2 elements, each a Vec of bytes.

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.